-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[BUG] README.md wrong for Mongo 7 #93
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
The readme is correct and it worked for a lot of people including several team members. |
@metron2 were you perchance using the bitnami mongodb helm chart or image? I was having the same exact problem, even tried going back to a chart version that used a 6.x mongodb. Your suggestion resolved the issue for me. |
I'm using To be honest, I dislike that chart already and I don't want a replicaset. I just wrote a deployment yaml for the official image instead. It was easier to change the initialization javascript to grant the same unifi user permission both databases. I found this advice on this repo but for a different version of mongodb. |
Here's the deployment I'm using. I'm using fluxcd to automatically patch everything, but it's looking for
|
Looks like you guys missed this part in the readme:
Locking this thread so as not to confuse other users with conflicting info. |
Is there an existing issue for this?
Current Behavior
If you follow the current instructions, unifi can't connect to the unifi_stat database on startup. The correct init-db.js is:
db.getSiblingDB("unifi").createUser({user: "unifi", pwd: "password", roles: [{role: "dbOwner", db: "unifi"}, {role: "dbOwner", db: "unifi_stat"}]});
Expected Behavior
This should work
Steps To Reproduce
Follow the readme using mongo:7
Environment
- OS: OpenSuse tumbleweed
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: