-
Everything below is about a new install. I have no existing data in the PVC, and in fact the PVC is recreated on each attempt because the namespace is empty before I do anything. I cloned the repo a few days ago, so I should have nearly the latest from main. I'm deploying to a Kubernetes cluster via Helm, and have a persistent problem getting the MongoDB pod to start. It come up the first time time with this log spew, and then restarts (for reasons I don't understand):
Then it crashes (or maybe just restarts) the pod and from that point on the pod tries to come up over and over and hits this:
Searching around for solutions to those errors of course led me here: #3972 I'm using Helm instead of docker compose, but the problem could have been the same, so I tried every major version of Bitnami MongoDB containers. Some of those were simple and I could just run them. Some of those have an issue with the permissions on the default Mongo config file, so I had to make a local version of the images to fix that, and then ran them. I tried everything V4 and above (because the Bitnami scripts seem to start failing when going back to MongoDB 3.6). None of that helped. With every version I still get one successful run, followed by N failed runs (depending on how long I let it keep retrying.) I can't find anywhere that the Helm charts pre-populate the PVC with the raw wiretiger files. As near as I can tell those are being created by MongoDB itself, and then after it restarts, it chokes on its own files. I've more or less run out of things to try at this point. I would really appreciate any help you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This turned out to be caused by a mismatch between the uid/gid on the filesystem used by the PVC for MongoDB and the IDs that Bitnami really wants to use. (1001:1001) I used Leaving these breadcrumbs for the next person and closing this one. Whatever issues remain are unlikely to be related to MongoDB filesystem shenanigans. |
Beta Was this translation helpful? Give feedback.
This turned out to be caused by a mismatch between the uid/gid on the filesystem used by the PVC for MongoDB and the IDs that Bitnami really wants to use. (1001:1001) I used
containerSecurityContext
in values.yaml to tell Bitnami to use the filesystem IDs and now MongoDB and LibreChat are starting up!Leaving these breadcrumbs for the next person and closing this one. Whatever issues remain are unlikely to be related to MongoDB filesystem shenanigans.