-
Controller Versionv5.9.31 Describe Your Issue or QuestionCould someone give me a pointer why my MongoDB isn't starting (see container log below)? Expected BehaviorI'd expect the container (including Mongo) to start as usual Steps to ReproduceIf I knew how what changed, I'd probably change it back and it would be fixed. But here is what I did at a high level. The container has been working find until last night when it ran into problems because the disk on which it writes filled up. So the first thing I did was move all the volumes to an NFS share. When I relaunched the container after migration, I realized that I had accidentally misconfigured the nfs share to map all users as root (which obviously won't work when all existing files are owned by the omada user.). So I stopped the container, fixed the nfs share <nd restarted the container. It then had permission problems writing to some file, I think it was So, I am not sure whether the chowning was right or wrong, but it appears that Mongo is failing to start for some other reason, but I don't understand the logs, so I'd appreciate any pointer. Oh, forgot to mention that I then also remembered why I didn't previously use an nfs share for the volumes: MongoDB doesn't like nfs shares and from what I read, it is highly discouraged. So I mounted additional space via iSCSI instead. The iSCSI storage works fine with another container, so I don't think the issue is there. How You're Launching the Container
Container Logs
Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you grab the MongoDB logs from |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Thanks for that pointer. So stupid I didn't think about checking the MongoDB logs. (I think it was because I assumed that they were included in the container logs. I shall change the setting to make it so for the future...)
So, as I looked at the logs, it was immediately evident that there was a permissions problem:
I don't quite understand why
wiredtiger_kv_engine.cpp
came up there, but when I chowned the wiredtiger log file in the journal dir from root to omada, the container started as usual. Yay!So it must really have been that nfs misconfiguration that messed up things by having the container write as root.
I was a bit hesitant to just recursively chown all of the mounted volumes b…