-
-
Notifications
You must be signed in to change notification settings - Fork 60
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 mongodb authentication failing on new install #114
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
@tehbra1n I had also struggled with mongodb authentication when first setting up this container, mostly because I didn't read, understand and follow the instructions carefully enough (and I tried to use the js file with a root user).
Also I needed to add the database name in the init script as in For reference, this is my sh init script. I just ran it with version 8.3.32-ls55 on mondodb vs 7.0.12
|
I was having a similar issue as OP, but eventually noticed that adding a space before the password seemed to get me beyond that issue but into another. Timeouts, error creating bean, and tomcat not starting.. |
Here is my compose for mongodb. I feel like I overlooked something in the directions too but I'm just not seeing it. |
I tried your sh code for kicks and got two errors: unifi-db | /docker-entrypoint-initdb.d/init-mongo.sh: line 25: warning: here-document at line 8 delimited by end-of-file (wanted `EOF') I added the EOF at line 25 but the error at line 8 remains. |
Try new version of init-mongo.sh script. |
The latest version of the script worked. Thanks! |
still having issues.
|
It appears not to notice key or password. Verify indentations and that all required values are present. Also, try alphanumeric passwords of 8 length without any special characters. If it still does not want to start, then post your compose file. (Remember to nuke your mount directories between tests) |
After struggling with the same issues for a long time, I want to post my solution here. First step is to verify that the db unifi user credentials are working - I temporarily exposed unifi-db:27017 and used mongodb-compass to login with my defined credentials. Here was my first mistake: By running After completely cleaning the db directory and restarting the container, I was able to login as Next issue was This was solved by deleting all contents of the Lesson learned: Clean ALL mounted directories before trying a different configuration. |
Is there an existing issue for this?
Current Behavior
On starting unifi-network-application in a new install, I cannot log in to the controller using my credentials after importing my old controller config.
Expected Behavior
I should be able to log into the controller using my credentials from the old controller.
Steps To Reproduce
Install mongo and unifi-network-application following the readme. Start mongo and then unifi-network-application. I confirmed that the init script is run in the mongo container logs.
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: