-
Notifications
You must be signed in to change notification settings - Fork 649
Pull request #161 seems to have broken MongoDB 3.4 Docker image for me #164
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
Comments
Seems it broken for me too,
|
Experience exactly the same problems as @faustman. I mounted a host directory as a data volume for /data (I'm running the container from a bamboo |
The references to Can you please provide the full failing container logs (preferably with a full |
docker run line was: |
So there some debug info:
Hope that helpful. |
Getting same issue with
|
Running with user set to mongodb still fails for me with same error. |
We added some fixes in #167 to hopefully account for this; can you pull and see if the latest image works for you? Unfortunately we don't yet have a good way to have the You should be able to work around the new additions by setting We are trying to fix any bugs caused by adding the |
Thanks, but I'm not actually building my own docker image. I'm using a public demo (not under my control) that is using the mongo:3.4 docker image. I believe the test I did today which failed would have pulled in #167 as part of mongo:3.4. Right? |
@rberlind if it did a I've tried CentOS 7, Ubuntu 16.04, and Ubuntu 14.04, stock configurations (SELinux, AppArmor, kernel, etc), and cannot reproduce the failures described. 😞 Anyone have any tips for reproducing? (or have a throwaway system that exhibits the issue that they'd be willing/able to get me access to so I can debug and figure out a fix?) |
We have the issue on our CI servers, which run docker 1.9.1(because of https://bugzilla.redhat.com/show_bug.cgi?id=1346167). The issue does not show up on my developer workstation, which runs docker 1.13.1. Our current workaround is to replace "mongodb:3" with "mongodb:3.2.10" in the CI configuration for our applications that use mongodb.
|
@tianon is there a way I can contact you privately? Maybe I can help you debug that issue. |
@elouanKeryell-Even yeah, I'm @jperville hmm, I wonder if Docker 1.9 isn't setting up something AppArmor-related in the same way as more recent versions? |
Ok, I've reproduced. I had to get a little crazy to do so (Ubuntu 14.04 and Docker 1.9.1), but here we go: root@ubuntu:~# docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
root@ubuntu:~# docker run -it --rm mongo
Unable to find image 'mongo:latest' locally
latest: Pulling from library/mongo
46fb18fe2b28: Pull complete
6663ec33e418: Pull complete
a6364f26734e: Pull complete
4b208dafe437: Pull complete
03508c869c20: Pull complete
dc11d2b6d89e: Pull complete
dc99e3401f88: Pull complete
9da419f53201: Pull complete
51e3dc891d7d: Pull complete
f9bee0a48714: Pull complete
b5157dc51f09: Pull complete
5937baf8ba1f: Pull complete
f1ccdda06994: Pull complete
cb890acc553e: Pull complete
63a3495fb354: Pull complete
dae54b472975: Pull complete
371f686c501e: Pull complete
5d84202328d2: Pull complete
2d38d4c16a00: Pull complete
d953c06809dc: Pull complete
559a3b2b592b: Pull complete
Digest: sha256:e8b292cca3cd3bb9ba09cd0cfbcbb81ec55cf7f6de3d389ad4e99e46b426dafd
Status: Downloaded newer image for mongo:latest
chown: cannot dereference '/proc/1/fd/1': Permission denied
chown: cannot dereference '/proc/1/fd/2': Permission denied
about to fork child process, waiting until server is ready for connections.
forked process: 18
ERROR: child process failed, exited with error number 1
root@ubuntu:~# docker run -it --rm mongo gosu mongodb bash
mongodb@92ff45ed6adb:/$ ls -l /proc/1/fd/1
ls: cannot read symbolic link /proc/1/fd/1: Permission denied
lrwx------ 1 mongodb mongodb 64 Apr 13 17:02 /proc/1/fd/1
mongodb@92ff45ed6adb:/$ echo hi >> /proc/1/fd/1
bash: /proc/1/fd/1: Permission denied
mongodb@92ff45ed6adb:/$ test -w /proc/1/fd/1 && echo yay || echo oh no
oh no
mongodb@92ff45ed6adb:/$ |
Ok, my planned workaround won't work with newer Docker versions -- I upgraded to 17.04, and now I can write to mongodb@f76e9ea37a0b:/data/db$ mongod --logpath /proc/1/fd/1 --logappend
2017-04-13T17:18:28.753+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed probe for "/proc/1/fd/1": Permission denied |
Ah, it uses Edit: ala: mongodb@9c72eaed7974:/$ readlink -f /proc/1/fd/1
mongodb@9c72eaed7974:/$ |
Honestly, I can't see how this ever worked. 😅 |
Ah, |
(For reference, the |
Interesting: mongodb@9c72eaed7974:/$ stat /proc/1/fd/1
File: '/proc/1/fd/1'stat: cannot read symbolic link '/proc/1/fd/1': Permission denied
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 24h/36d Inode: 13038 Links: 1
Access: (0700/lrwx------) Uid: ( 999/ mongodb) Gid: ( 999/ mongodb)
Access: 2017-04-13 17:20:56.548558557 +0000
Modify: 2017-04-13 17:20:51.440497742 +0000
Change: 2017-04-13 17:20:51.440497742 +0000
Birth: - (same error message we're getting!) |
About an hour ago, shortly after #161 was merged into the Docker 3.4 image by docker-library/official-images#2805, I found that I could not start newly deployed Docker image mongo:3.4 on the Apcera platform.
I get the errors:
[stdout] about to fork child process, waiting until server is ready for connections.
[stdout] forked process: 18
[stdout] ERROR: child process failed, exited with error number 1
[system-error] Process 'app' failed with status "exited(1)"
I would appreciate it if the MongoDB team could investigate whether the modifications to the script (which admittedly seem harmless) could have caused the problem.
Thanks,
Roger Berlind
Apcera
The text was updated successfully, but these errors were encountered: