-
-
Notifications
You must be signed in to change notification settings - Fork 654
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 not Starting #490
Comments
@danemorgan I cannot see any errors in your docker-compose log output nor do I see that MySQL shuts down. It might be related to this issue: #473 Which is about Docker versoin 2.x. Can you downgrade to Docker version 1.x again and see if this resolved your problem? |
What about option 3 from #473? The only real issue here is that I would have to restore my databases, right? I have multiple redundancies for this and ultimately all of these databases are periodically written over from their production versions on live servers. I'm reluctant to try reverting Docker for a couple of reasons. First, it has been a multiday process each time I've done it in the past, often involving resetting my machine, largely down to a number of crazy things involved in getting the system to share the drive. Second, because I went to Docker to see about getting a copy of the last 1.x and all I can find are forum posts saying that they do not make previous versions available for Windows users. If you really need that done, I could try, but I would need to limp along with working from staging sites instead of my development sites to get some time sensitive work done and do that next week. |
Yes, option 3 is the preferred way and you will probably wanna stay on that branch until merge to master. I wasn't sure if you do have backups in place. Let me know how this works out for you. Be warned, that I regularly force-push to that branch due to rebase from master. |
One quick question. I usually do If the databases are in the docker volumes, will I need to restore them every time I run |
I am on the docker-volumes branch now and there is no change in the results. I'm attaching a new docker-compose log. There is no
|
|
|
No, its the same behaviour as now. Data persists. You should probably do a
and then import the data for the new branch. |
|
I did
Now the Devilbox dashboard loads correctly, but the MySQL service is still not started. The log shows
But the dashboard database page says |
Do you have any custom |
Looks like MySQL was already initialized and did not start from scratch, or is this just a second run?
|
Yes. The first thing I did when I checked out the new branch was to diff the environment file. I have attached my file here. I cannot. I get this. ''' docker ps also shows no MySQL container
|
|
I get this, but after a half hour, I still do not get the command prompt back. I have to close the terminal window and restart. When I restart the terminal there is a mariadb container. |
MariaDB 10.3 works as expected. So does this mean there is something wrong with the 5.5.59 files on my computer? How can I overwrite those? |
If live sites are using 5.5.59 and I am using 10.3 on these dev copies, does it matter? The database is never sent from dev to lie, only from live to dev. |
Shouldn't matter, except that you might have slightly more features. You can also try a version which comes directly after 5.5.59, such as 10.0 for MariaDB or give MySQL 5.5 a go as well. In the meantime I will figure out how to integrate official MySQL/MariaDB/Percona Docker images instead of self-built ones. |
@danemorgan could you try out the release branch: #416 Please pay special attention to the instructions in the PR description. |
@danemorgan any updates from your side? |
@danemorgan see also here: #542 |
@danemorgan this error will be fixed in: #416 This is going to be merged in a couple of hours. |
ISSUE TYPE
Checklist
[ x ]
.env
file is attachedcsm.env.zip
docker-compose.override.yml
is attached (if it exists) N/ACustom configs from
cfg/
dir are attached (if customized) N/A[ x ]
docker-compose logs
andlog/
output is addeddocker-compose-logs.txt
[ x ] I've looked through the docs: https://devilbox.readthedocs.io/en/latest/
[x ] I've looked through existing issues: https://github.com/cytopia/devilbox/issues
OS / ENVIRONMENT
SUMMARY
This afternoon docker-compose up failed to start my containers. This has happened in the past and I would pull the latest update from git, update my environment file, reboot my computer and everything would start working again after it pulled some new PHP or MySQL images.
Today, though, it seems like everything is coming up except MySQL. WordPress complains about not reaching the database, and the MySQL circle in the devilbox dashboard is grayed out.
Additionally the dashboard loads, prints three warnings, and then prints the second and third warnings in a loop until, a few minutes later it loads a 502 Gateway error.
STEPS TO REPRODUCE
Run docker-compose up -d bind httpd php mysql and try to lad a website or open the Devilbox dashboard.
EXPECTED BEHAVIOUR
the docker containers start up and I start working on the websites in it.
ACTUAL BEHAVIOUR
it seems like everything is coming up except MySQL. WordPress complains about not reaching the database, and the MySQL circle in the devilbox dashboard is grayed out.
Additionally the dashboard loads, prints three warnings, and then prints the second and third warnings in a loop until, a few minutes later it loads a 502 Gateway error.
docker-compose up -d bind httpd php mysql
λ ls -la
total 318
drwxr-xr-x 1 DM 197609 0 Jan 30 21:20 ./
drwxr-xr-x 1 DM 197609 0 Jan 30 20:55 ../
drwxr-xr-x 1 DM 197609 0 Jun 28 2018 .devilbox/
-rw-r--r-- 1 DM 197609 2445 Jan 30 16:59 .editorconfig
-rw-r--r-- 1 DM 197609 18132 Jan 30 20:55 .env
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 .git/
drwxr-xr-x 1 DM 197609 0 Aug 19 01:50 .github/
-rw-r--r-- 1 DM 197609 3656 Jan 30 16:59 .gitignore
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 .tests/
-rw-r--r-- 1 DM 197609 9510 Jan 30 16:59 .travis.yml
-rw-r--r-- 1 DM 197609 894 Aug 19 01:50 CONTRIBUTING.md
-rw-r--r-- 1 DM 197609 1064 Jun 28 2018 LICENSE.md
-rw-r--r-- 1 DM 197609 55056 Jan 30 16:59 README.md
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 autostart/
drwxr-xr-x 1 DM 197609 0 Jul 18 2018 backups/
drwxr-xr-x 1 DM 197609 0 Jun 28 2018 bash/
drwxr-xr-x 1 DM 197609 0 Jul 20 2018 ca/
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 cfg/
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 compose/
drwxr-xr-x 1 DM 197609 0 Dec 13 10:24 data/
-rw-r--r-- 1 DM 197609 91181 Jan 30 21:19 docker-compose-logs.txt
-rw-r--r-- 1 DM 197609 743 Jun 28 2018 docker-compose.override.yml-example
-rw-r--r-- 1 DM 197609 12815 Jan 30 16:59 docker-compose.yml
drwxr-xr-x 1 DM 197609 0 Jan 30 16:59 docs/
-rw-r--r-- 1 DM 197609 18081 Jan 30 16:59 env-example
drwxr-xr-x 1 DM 197609 0 Jan 30 21:00 log/
drwxr-xr-x 1 DM 197609 0 Jan 22 03:42 mail/
drwxr-xr-x 1 DM 197609 0 Jun 28 2018 mod/
-rw-r--r-- 1 DM 197609 86 Jan 30 16:59 shell.bat
-rwxr-xr-x 1 DM 197609 59 Jun 28 2018 shell.sh*
-rwxr-xr-x 1 DM 197609 2375 Aug 19 01:50 update-docker.sh*
λ ls -la ../projects/csm
total 49
drwxr-xr-x 1 DM 197609 0 Jan 30 21:12 ./
drwxr-xr-x 1 DM 197609 0 Aug 15 10:06 ../
drwxr-xr-x 1 DM 197609 0 Jan 23 09:55 .assets/
drwxr-xr-x 1 DM 197609 0 Aug 8 07:15 .documents/
drwxr-xr-x 1 DM 197609 0 Jul 7 2018 caninejournal/
drwxr-xr-x 1 DM 197609 0 Aug 9 00:37 csm-plugins/
-rw-r--r-- 1 DM 197609 18132 Jan 30 17:04 csm.env
-rw-r--r-- 1 DM 197609 5195 Jan 30 21:11 csm.env.zip
drwxr-xr-x 1 DM 197609 0 Jul 7 2018 earthsfriends/
drwxr-xr-x 1 DM 197609 0 Jul 7 2018 exploringlifesmysteries/
drwxr-xr-x 1 DM 197609 0 Jan 30 21:00 mongo/
drwxr-xr-x 1 DM 197609 0 Jul 22 2018 mysql/
drwxr-xr-x 1 DM 197609 0 Jul 7 2018 mywinston-salem/
drwxr-xr-x 1 DM 197609 0 Jan 30 21:00 pgsql/
drwxr-xr-x 1 DM 197609 0 Oct 28 15:14 safesmartliving/
drwxr-xr-x 1 DM 197609 0 Nov 29 16:20 test/
-rw-r--r-- 1 DM 197609 114 Jul 22 2018 up.sh
drwxr-xr-x 1 DM 197609 0 Dec 15 14:38 werockyourweb/
The text was updated successfully, but these errors were encountered: