You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the latest docker image (image id: a440572ac3c1 / tag 6.0.4 or latest) by using docker compose the process fails with the following error: ERROR: child process failed, exited with 51
Reacted by Uladzimir Mitskevich, William Spader, Shaun Rasmusen, mdadoua, johnybx, Tom Lindelius, Artyom Belousov, zhangzhixing, lynomet, Johnny and 4 more
It began with version 6.0.4. This seems to be when Ubuntu was switched from focal to jammy. Versions 6.03 and 6.0.4-focal both work without this issue.
It is the mongod command in docker-entrypoint.sh that is exiting with code 51. This is the output from manually running the mongod command:
# mongod --bind_ip 127.0.0.1 --port 27017 --tlsMode disabled --logpath /data/db/docker-initdb.log --logappend --pidfilepath /tmp/docker-entrypoint-temp-mongod.pid --fork
about to fork child process, waiting until server is ready for connections.
forked process: 44
ERROR: child process failed, exited with 51
To see additional information in this output, start without the "--fork" option.
I thought it might have something to do with filesystem, but one system has xfs and another has ext4 on the partition where the volume is. They both fail.
When starting a container with 6.0.4 with a previously created and working data_db volume, there is this error instead:
Confirmed that the issue does not happen with docker option --security-opt seccomp=unconfined.
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, ...}, 88) = -1 EPERM (Operation not permitted)
Thanks for confirming. clone3 is a newer syscall used in Ubuntu Jammy and the seccomp profile used by docker defaults to blocking syscalls that it doesn't know about (the eperm). Please update docker and libseccomp on the host in order to run jammy based images (tianon/docker-brew-ubuntu-core#236)
This is similar to the issue in Alpine 3.14 images when they started using a new syscall:
The "correct" solution is to update Docker, runc, and libseccomp on your host, but downgrading is a fine temporary solution (I wouldn't recommend it long term or for production workloads since we aren't actively maintaining that focal image anymore).
Activity
willspader commentedon Feb 6, 2023
Same problem w/ tags 6.0 and 6.0.4 here. I picked tag 5.0 randomly and it worked.
tianon commentedon Feb 8, 2023
Any other logs you can provide that might be helpful? A more reliable reproducer? (I'm not able to reproduce myself 🙈)
u8675309 commentedon Feb 9, 2023
This is happening to us also.
It began with version 6.0.4. This seems to be when Ubuntu was switched from
focaltojammy. Versions6.03and6.0.4-focalboth work without this issue.It is the mongod command in docker-entrypoint.sh that is exiting with code 51. This is the output from manually running the mongod command:
Without the --fork:
I thought it might have something to do with filesystem, but one system has xfs and another has ext4 on the partition where the volume is. They both fail.
When starting a container with 6.0.4 with a previously created and working data_db volume, there is this error instead:
tianon commentedon Feb 9, 2023
I wonder if https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64 got a bump in requirements but it wasn't documented yet? 😬
Can someone who can reproduce run
straceon the process orgdbthe core dump to help narrow down what's happening?yosifkit commentedon Feb 9, 2023
🤔 This is possibly host
libseccomprelated like tianon/docker-brew-ubuntu-core#236 and docker-library/tomcat#269 (comment). Can someone who can reproduce try running with--security-opt seccomp=unconfinedand see if it works?u8675309 commentedon Feb 9, 2023
The 22:20:24.297 message is "Multi threading initialized". Then the .298 messages are the "Writing fatal message" ones.
u8675309 commentedon Feb 9, 2023
Confirmed that the issue does not happen with docker option
--security-opt seccomp=unconfined.It also does not happen with
but does happen with
yosifkit commentedon Feb 9, 2023
Thanks for confirming.
clone3is a newer syscall used in Ubuntu Jammy and the seccomp profile used by docker defaults to blocking syscalls that it doesn't know about (theeperm). Please updatedockerandlibseccompon the host in order to runjammybased images (tianon/docker-brew-ubuntu-core#236)This is similar to the issue in Alpine 3.14 images when they started using a new syscall:
lindelius commentedon Feb 13, 2023
Same issue when running containers on CircleCI... Switching to
mongo:6.0-focalfixed it 👍patrickacioli commentedon Feb 25, 2023
Same problem here and as @lindelius comment, switching to
mongo:6.0-focalfixed it.tianon commentedon Mar 3, 2023
The "correct" solution is to update Docker, runc, and libseccomp on your host, but downgrading is a fine temporary solution (I wouldn't recommend it long term or for production workloads since we aren't actively maintaining that
focalimage anymore).GemsGame commentedon Apr 24, 2024
it's very helpful thanks