Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL doesn't start on Windows with Docker Toolbox #382

Closed
bgultekin opened this issue Sep 18, 2018 · 8 comments
Closed

MySQL doesn't start on Windows with Docker Toolbox #382

bgultekin opened this issue Sep 18, 2018 · 8 comments
Assignees

Comments

@bgultekin
Copy link

ISSUE TYPE

  • Bug Report

OS / ENVIRONMENT

  1. Host operating system: Windows 10 Home
  2. Native Docker or Docker Toolbox: Docker Toolbox
  3. Docker version: 18.03.0-ce, build 0520e24302
  4. Docker Compose version: 1.20.1, build 5d8c71b2
  5. What containers are running: mysql
  6. Container versions: mysql 5.7 (I also tried with 5.6 and 8.0)

SUMMARY

When I try to start mysql with/without httpd, php, redis, it doesn't start. When I check its state with docker-compose ps, I see "Exit 3". Other containers works fine.

I deleted volumes and tried again, didn't work.
I tried with different mysql versions, didn't work.

STEPS TO REPRODUCE

  1. Install docker toolbox on windows 10 home edition
  2. Run Docker QuickStart Terminal
  3. Try to up mysql by docker-compose up mysql
  4. It will exit

EXPECTED BEHAVIOUR

It should start.

ACTUAL BEHAVIOUR

I doesn't start. When I try to start only mysql with docker-compose --verbose up mysql, I see the following output.

compose.config.config.find: Using configuration files: .\docker-compose.yml
docker.utils.config.find_config_file: Trying paths: ['C:\\Users\\Bilal\\.docker\\config.json', 'C:\\Users\\Bilal\\.dockercfg']
docker.utils.config.find_config_file: No config file found
docker.utils.config.find_config_file: Trying paths: ['C:\\Users\\Bilal\\.docker\\config.json', 'C:\\Users\\Bilal\\.dockercfg']
docker.utils.config.find_config_file: No config file found
urllib3.connectionpool._new_conn: Starting new HTTPS connection (1): 192.168.99.100
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/version HTTP/1.1" 200 545
compose.cli.command.get_client: docker-compose version 1.20.1, build 5d8c71b2
docker-py version: 3.1.4
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2k  26 Jan 2017
compose.cli.command.get_client: Docker base_url: https://192.168.99.100:2376
compose.cli.command.get_client: Docker version: Platform={'Name': ''}, Components=[{'Name': 'Engine', 'Version': '18.06.1-ce', 'Details': {'ApiVersion': '1.38', 'Arch': 'amd64', 'BuildTime': '2018-08-21T17:28:38.000000000+00:00', 'Experimental': 'false', 'GitCommit': 'e68fc7a', 'GoVersion': 'go1.10.3', 'KernelVersion': '4.9.93-boot2docker', 'MinAPIVersion': '1.12', 'Os': 'linux'}}], Version=18.06.1-ce, ApiVersion=1.38, MinAPIVersion=1.12, GitCommit=e68fc7a, GoVersion=go1.10.3, Os=linux, Arch=amd64, KernelVersion=4.9.93-boot2docker, BuildTime=2018-08-21T17:28:38.000000000+00:00
compose.cli.verbose_proxy.proxy_callable: docker info <- ()
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/info HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker info -> {'Architecture': 'x86_64',
 'BridgeNfIp6tables': True,
 'BridgeNfIptables': True,
 'CPUSet': True,
 'CPUShares': True,
 'CgroupDriver': 'cgroupfs',
 'ClusterAdvertise': '',
 'ClusterStore': '',
 'ContainerdCommit': {'Expected': '468a545b9edcd5932818eb9de8e72413e616e86e',
                      'ID': '468a545b9edcd5932818eb9de8e72413e616e86e'},
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('devilbox_app_net')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/networks/devilbox_app_net HTTP/1.1" 200 1332
compose.cli.verbose_proxy.proxy_callable: docker inspect_network -> {'Attachable': True,
 'ConfigFrom': {'Network': ''},
 'ConfigOnly': False,
 'Containers': {'0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d': {'EndpointID': '47e0b92be0dd9a22f487d0a833d1365ea219c17962b8d79da0e2cc71fee6c502',
                                                                                     'IPv4Address': '172.16.238.100/24',
                                                                                     'IPv6Address': '',
                                                                                     'MacAddress': '02:42:ac:10:ee:64',
                                                                                     'Name': 'devilbox_bind_1'},
                '42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969': {'EndpointID': '4fb5ead04ba2572905629eb277113a9595e07c5dbb0146d52d768aa1b0559f11',
                                                                                     'IPv4Address': '172.16.238.11/24',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=False, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=0&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 3 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=bind', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dbind%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1304
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=php', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dphp%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=httpd', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dhttpd%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=mysql', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dmysql%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 2038
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('cytopia/bind:0.15')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/cytopia/bind:0.15/json HTTP/1.1" 200 1929
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('devilbox/php-fpm:7.2-work-0.37')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/devilbox/php-fpm:7.2-work-0.37/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('devilbox/nginx-stable:0.22')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/devilbox/nginx-stable:0.22/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('cytopia/mysql-5.7:latest')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/cytopia/mysql-5.7:latest/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=bind', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dbind%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1304
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('cytopia/bind:0.15')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/cytopia/bind:0.15/json HTTP/1.1" 200 1929
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/0d8b0469571d565609149b2aa12e0e8857522bdc91f8d1ec392a6050ba8bb73d/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=php', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dphp%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('devilbox/php-fpm:7.2-work-0.37')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/devilbox/php-fpm:7.2-work-0.37/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/964c6cf4513a341e232aafa550637eb4594ffe57524d90d88ca49172f79ad372/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=httpd', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dhttpd%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('devilbox/nginx-stable:0.22')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/devilbox/nginx-stable:0.22/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/42aa6d15407fcdaaa5de12c0fcc636239501bef831a16aa82703fd516e21d969/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_ENTRYPOINT=1',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.service=mysql', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.service%3Dmysql%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 2038
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('cytopia/mysql-5.7:latest')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/images/cytopia/mysql-5.7:latest/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': '"cytopia" <cytopia@everythingcli.org>',
 'Comment': '',
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888')
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
compose.parallel.feed_queue: Pending: {<Service: mysql>, <Service: httpd>, <Service: bind>, <Service: php>}
compose.parallel.feed_queue: Starting producer thread for <Service: bind>
compose.service.execute_convergence_plan: devilbox_bind_1 is up-to-date
compose.parallel.parallel_execute_iter: Finished processing: <Service: bind>
compose.parallel.feed_queue: Pending: {<Service: mysql>, <Service: php>, <Service: httpd>}
compose.parallel.feed_queue: Starting producer thread for <Service: php>
compose.service.execute_convergence_plan: devilbox_php_1 is up-to-date
compose.parallel.parallel_execute_iter: Finished processing: <Service: php>
compose.parallel.feed_queue: Pending: {<Service: mysql>, <Service: httpd>}
compose.parallel.feed_queue: Starting producer thread for <Service: httpd>
compose.service.execute_convergence_plan: devilbox_httpd_1 is up-to-date
compose.parallel.parallel_execute_iter: Finished processing: <Service: httpd>
compose.parallel.feed_queue: Pending: {<Service: mysql>}
compose.parallel.feed_queue: Starting producer thread for <Service: mysql>
Starting devilbox_mysql_1 ...
compose.parallel.feed_queue: Pending: {<Container: devilbox_mysql_1 (934256)>}
compose.parallel.feed_queue: Starting producer thread for <Container: devilbox_mysql_1 (934256)>
compose.cli.verbose_proxy.proxy_callable: docker attach <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888', stdout=True, stderr=True, stream=True)
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "POST /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/attach?logs=0&stdout=1&stderr=1&stream=1 HTTP/1.1" 101 0
urllib3.connectionpool._new_conn: Starting new HTTPS connection (2): 192.168.99.100
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker attach -> <generator object frames_iter at 0x000001D408C45D00>
compose.cli.verbose_proxy.proxy_callable: docker start <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888')
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "POST /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/start HTTP/1.1" 204 0
compose.cli.verbose_proxy.proxy_callable: docker start -> None
Starting devilbox_mysql_1 ... done
compose.parallel.feed_queue: Pending: set()
compose.parallel.parallel_execute_iter: Finished processing: <Service: mysql>
compose.parallel.feed_queue: Pending: set()
Attaching to devilbox_mysql_1
compose.cli.verbose_proxy.proxy_callable: docker events <- (filters={'label': ['com.docker.compose.project=devilbox', 'com.docker.compose.oneoff=False']}, decode=True)
mysql_1  | [INFO] Setting docker timezone to: Europe/Berlin
mysql_1  | root $ urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/events?filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddevilbox%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
rm /etc/localtimecompose.cli.verbose_proxy.proxy_callable: docker events -> <generator object APIClient._stream_helper at 0x000001D408C45410>

mysql_1  | root $ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
mysql_1  | [INFO] Docker date set to: Tue Sep 18 23:16:26 CEST 2018
mysql_1  | [INFO] Setting MySQL: [mysqld] general-log=0
mysql_1  | root $ sed -i'' 's|\[mysqld\]|\[mysqld\]
mysql_1  | general-log = 0|g' /etc/my.cnf.d/logging.cnf
mysql_1  | [INFO] Setting MySQL: [client] socket=/tmp/mysql/mysqld.sock
mysql_1  | root $ sed -i'' 's|\[client\]|\[client\]
mysql_1  | socket = /tmp/mysql/mysqld.sock|g' /etc/my.cnf.d/socket.cnf
mysql_1  | [INFO] Setting MySQL: [mysql] socket=/tmp/mysql/mysqld.sock
mysql_1  | root $ sed -i'' 's|\[mysql\]|\[mysql\]
mysql_1  | socket = /tmp/mysql/mysqld.sock|g' /etc/my.cnf.d/socket.cnf
mysql_1  | [INFO] Setting MySQL: [mysqld] socket=/tmp/mysql/mysqld.sock
mysql_1  | root $ sed -i'' 's|\[mysqld\]|\[mysqld\]
mysql_1  | socket = /tmp/mysql/mysqld.sock|g' /etc/my.cnf.d/socket.cnf
mysql_1  | root $ chown mysql:mysql /tmp/mysql
mysql_1  | root $ chmod 0777 /tmp/mysql
mysql_1  | root $ chown -R mysql:mysql /var/lib/mysql/
mysql_1  | root $ chown -R mysql:mysql /var/lib/mysql
mysql_1  | root $ chown -R mysql:mysql /var/log/mysql
mysql_1  | root $ chown -R mysql:mysql /var/run/mysqld
mysql_1  | root $ chown -R mysql:mysql /var/sock/mysqld
mysql_1  | root $ chmod 0775 /var/lib/mysql/
mysql_1  | root $ chmod 0775 /var/lib/mysql
mysql_1  | root $ chmod 0775 /var/log/mysql
mysql_1  | root $ chmod 0775 /var/run/mysqld
mysql_1  | root $ chmod 0775 /var/sock/mysqld
mysql_1  | root $ find /var/log/mysql/ -type f -exec chmod 0664 {} \;
mysql_1  | [INFO] No existing MySQL data directory found. Setting up MySQL for the first time.
compose.cli.verbose_proxy.proxy_callable: docker wait <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888')mysql_1  |
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888')
urllib3.connectionpool._new_conn: Starting new HTTPS connection (3): 192.168.99.100
root $ mysqld --initialize-insecure --datadir=/var/lib/mysql/ --user=mysqlurllib3.connectionpool._new_conn: Starting new HTTPS connection (4): 192.168.99.100

urllib3.connectionpool._make_request: https://192.168.99.100:2376 "POST /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/wait HTTP/1.1" 200 30
urllib3.connectionpool._make_request: https://192.168.99.100:2376 "GET /v1.24/containers/93425615e0c976cb4625b06d29c62d659cc10af7580e68ecc2be742a8f141888/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker wait -> {'Error': None, 'StatusCode': 3}
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'ArgsEscaped': True,
            'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['/docker-entrypoint.sh'],
            'Env': ['DEBUG_COMPOSE_ENTRYPOINT=1',
...
devilbox_mysql_1 exited with code 3

OTHER INFORMATION

When I try second time it exits with the following error.

mysql_1  | 2018-09-18T21:22:21.669460Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
mysql_1  | 2018-09-18T21:22:21.669862Z 0 [ERROR] Aborting

When I delete folders and try again, It exits with the same output like first time.

Thanks for great tool 👍.

@bgultekin
Copy link
Author

I solved the issue. It was related to some inconsistency between linux and windows filesystem. That's why I needed to create volume and modify docker-compose.yml file like mentioned at the docker forum.

Here is what I did to make it work. This is a little bit dirty way but it worked.

  1. Created a volume by this command docker volume create --name devilbox-mysql -d local
  2. In docker-compose.yml file inside devilbox folder I changed this ${HOST_PATH_MYSQL_DATADIR}/${MYSQL_SERVER}:/var/lib/mysql:rw${MOUNT_OPTIONS} with this devilbox-mysql:/var/lib/mysql:Z
  3. Again in docker-compose.yml file, added this to end of the file (volumes should be at root level not under any other config parameter)
volumes:
  devilbox-mysql:
    external: true

@cytopia
Copy link
Owner

cytopia commented Sep 22, 2018

@bgultekin thanks for digging into this. I've created a PR which should resolve the issue. Please try it out and let me know if it fixes the above issue on Windows:

#383

@cytopia cytopia self-assigned this Sep 22, 2018
@bgultekin
Copy link
Author

It seems working. I had just one issue and I sent a patch request for that. Thanks.

@cytopia
Copy link
Owner

cytopia commented Sep 22, 2018

Good to know. I will keep this PR open for some time, as it will make the current MySQL, PostgreSQL and MongoDB data unavailable for current users.

I will rebase all new upstream changes into this branch until its been merged.

@pavan1407
Copy link

pavan1407 commented Jan 24, 2019

I am getting same issue in windows.
When I check state with docker-compose ps showing exit 1. Other containers are working fine.

@cytopia
Copy link
Owner

cytopia commented Jan 27, 2019

@pavan1407 can you also checkout the following PR which should resolve your issue: #383

cytopia added a commit that referenced this issue Feb 10, 2019
* docker-volumes:
  Clean up docker-compose.yml
  Ensure mail uses a Docker volume
  Remove unecessary data dirs
  Update container versions
  Ensure default values are used for mounted data directories as well
  Refs #175, Refs #382 Use Docker volumes instead of data directories
cytopia added a commit that referenced this issue Feb 12, 2019
* Refs #175, Refs #382 Use Docker volumes instead of data directories

* Ensure default values are used for mounted data directories as well

* Update container versions

* Remove unecessary data dirs

* Ensure mail uses a Docker volume

* Clean up docker-compose.yml

* Adjust project files: CHANGELOG, CONTRIBUTING and UPDATING

* Refs: #501 #448 Use Official MySQL, MariaDB and Percona images

* Ensure Docker Compose examples use Docker volumes

* Fix gitignore

* Bump version

* Update Changelog

* Update container versions

* Ensure mail uses a Docker volume

* Refs: #501 #448 Use Official MySQL, MariaDB and Percona images

* Ensure Docker Compose examples use Docker volumes

* Fix gitignore

* Bump version

* Update Changelog

* Fix Docker image update script

* Remove obsolete configuration directories

* Bump version date

* Fix fetching Memcached keys

* Show the usage of Docker volumes in intranet

* Be more verbose on connection tests
@skoria
Copy link

skoria commented Jul 11, 2019

I am getting what seems to be a similar issue, and have tried various maria and mysql images so far. They all have this innodb related error:
mysql_1 | 190711 16:12:26 [Note] mysqld (mysqld 5.5.63-MariaDB-1~trusty) starting as process 1 ...
mysql_1 | 190711 16:12:26 InnoDB: The InnoDB memory heap is disabled
mysql_1 | 190711 16:12:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
mysql_1 | 190711 16:12:26 InnoDB: Compressed tables use zlib 1.2.8
mysql_1 | 190711 16:12:26 InnoDB: Using Linux native AIO
mysql_1 | 190711 16:12:27 InnoDB: Initializing buffer pool, size = 256.0M
mysql_1 | 190711 16:12:27 InnoDB: Completed initialization of buffer pool
mysql_1 | InnoDB: Error: checksum mismatch in data file ./ibdata1
mysql_1 | 190711 16:12:27 InnoDB: Could not open or create data files.
mysql_1 | 190711 16:12:27 InnoDB: If you tried to add new data files, and it failed here,
mysql_1 | 190711 16:12:27 InnoDB: you should now edit innodb_data_file_path in my.cnf back
mysql_1 | 190711 16:12:27 InnoDB: to what it was, and remove the new ibdata files InnoDB created
mysql_1 | 190711 16:12:27 InnoDB: in this failed attempt. InnoDB only wrote those files full of
mysql_1 | 190711 16:12:27 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
mysql_1 | 190711 16:12:27 InnoDB: remove old data files which contain your precious data!
mysql_1 | 190711 16:12:27 [ERROR] Plugin 'InnoDB' init function returned error.
mysql_1 | 190711 16:12:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
mysql_1 | 190711 16:12:27 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1 | 190711 16:12:27 [ERROR] Unknown/unsupported storage engine: InnoDB
mysql_1 | 190711 16:12:27 [ERROR] Aborting
mysql_1 |
mysql_1 | 190711 16:12:27 [Note] mysqld: Shutdown complete

@masiorama
Copy link

@skoria did you manage to fix it? I am experiencing the same issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants