Permission issues on docker swarm with NFS (Operation not permitted) #738
Replies: 3 comments 2 replies
-
|
I guess one of the recent change could be d9efcb7 ? I also noted that some of the files are being reset to |
Beta Was this translation helpful? Give feedback.
-
|
I guess the error with |
Beta Was this translation helpful? Give feedback.
-
|
I don't think we've changed anything in the image that could've caused this behavior, but I wouldn't be surprised if MongoDB-on-NFS is not something that's very well-supported or heavily-tested. 😬 🙈 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have an issue with recent mongodb images.
I have a setup that might be a bit weird: docker swarm deploys mongo with a volume that uses the
localdriver, that points to a folder that is actually a mounted NFS share. The stack file is as follows:/appis a mounted NFS share, to my NAS.With
mongo:8.0.15, the container starts and is healthy, but all write transactions fail. For example:With the more recent image
mongo:8.2.2, the container does not even start, as opening the WiredTiger database file fails with 'Operation not permitted', even in read mode.I tried setting the user to
root:root,999:999and2000:2000. I tried changing the owner and permissions of/app/buildpath/datarecursively to any of those, it does not seem to change anything.My NFS share has the following options (server-side):
I'm using a mapall to root, so that might be a problem for mongo as well.
What I don't understand is that it used to work fine not too long ago, and those recent images seem to have changed something. I tried to look through existing issues but could not find anything recent.
Did something change recently? Is my use case not supported at all? Is that an already fixed problem (Sorry then! I could not find the solution through issues and forums)?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions