-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Potential bug on Ubuntu 14 #4
Comments
When i run start.sh i get the following message:
I'm on Ubuntu 16.04 LTS. |
Same thing here. Ubuntu 16.04 LTS |
Hi @ElijahLynn interesting that you mention the environment variables - what makes you think they might not be ready in time? A timing issue could indeed be the root cause as it seems inconsistent and doesn't affect many users |
Hi @dwmkerr, I say that because after the container is started, the users_service user is present and can login with the password specified. At least that is what I remember a week or so ago. I will double check. |
Yes, immediately after I get the error messages in #4 (comment) I run I also just upgraded to Docker version 1.11.2, build b9f10c9. |
I can also run the command in the script |
Okay, so it appears that if we add a |
Maybe some systems are just faster at initializing the container and MySQL and that is why some have the issue and some don't. Odd though, I am on a pretty fast system, 8 core, 32GB ram, Intel SSD etc. Maybe my config is not optimal if this is the culprit. |
Well done for finding a solution @ElijahLynn - I'll update the write-up and code |
Cool, it may not work on some systems that are slower, maybe put a comment in there saying some may need to increase the sleep if they get access denied errors. |
Not specific to Ubuntu. This also happens on Docker for Mac 1.12. Adding the sleep command helps. |
@ElijahLynn thanks, I'm on OSX and adding that sleep solved the issue for me. |
Bugs out for me on step 2. Sleep doesn't do anything. This is what I've added to my start.sh. (I'm on a macbook air) |
|
Correction, |
It seems there is a bug affecting some people, see:
http://www.dwmkerr.com/learn-docker-by-building-a-microservice/#comment-2716205460
For details.
Possible things to check:
The text was updated successfully, but these errors were encountered: