-
Notifications
You must be signed in to change notification settings - Fork 619
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
Mongo 3.0 now failing at start as of 2 days ago #150
Comments
I believe it is due to the introduction of processManagement: { fork: true } as a default - Previous version of container:
New version of container (terminates):
|
Since these are uninitialized containers, then it is by design: mongo/3.0/docker-entrypoint.sh Lines 70 to 125 in 23b4483
bindIp: "127.0.0.1" seen in your logs), process user setup, and scripts from /docker-entrypoint-initdb.d/ and then stop mongod and let it start naturally as the main process of the container (exec "$@" at the end of the script).
Does the container actually stop? Is there an error we fail to account for? |
The container actually stops. Backing off to mongo:3.0.12 it works. 3.0.14:
I think it has to do with the creation of the items in the data directory; when I run 3.0.12 this is the full output:
If I then stop that and run v3.0.14 on top of that same data/mongo directory it starts up. So perhaps something about creating the nsfile, datafile, and/or tempdir from scratch isn't working right in the newer entrypoint. |
Huh, this is sounding/looking similar to the issue I could only reproduce on 3.2: mongo/3.2/docker-entrypoint.sh Lines 76 to 80 in 23b4483
if ! "${mongo[@]}" 'admin' --eval 'quit(0)' &> /dev/null; then
# TODO figure out why only MongoDB 3.2 seems to exit from "--fork" before it's actually listening
# (adding "sleep 0.01" was sufficient on Tianon's local box, hence this tiny "retry up to one time")
sleep 5
fi |
@tianon what if we do a retry loop on all of the mongo versions like mysql and use |
Fixed it for me, thanks! |
Since the new rev of mongo:3.0 with Dockerfile and entrypoint change a couple days ago, our mongo containers have started failing with a log message about "parent exiting":
The "child process started successfully, parent exiting" line is new; old logs from when it worked are identical except for that line (and of course subsequent lines from the container staying up). If the entrypoint process is really going away I can understand why the container dies, of course.
We're running it pretty much vanilla, e.g.
Is this something I can work around on my end?
Thanks,
Ernest
The text was updated successfully, but these errors were encountered: