-
-
Notifications
You must be signed in to change notification settings - Fork 61
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] Changing mongo server host has no effect #124
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
NOTE: the host is defined in system.properties, updating that fixes the issue. I wonder if it's worth having a script that'll update that when the env var changes? |
Trying to substitute values in a live system.properties on every start is not worth the risk of breaking installs where people have done something unexpected, which is why we don't do it. |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
Don't use environment variables. There's a file at the path /usr/lib/unifi/data called system.properties, which is configured through variables. However, if you configure it for the first time, it seems like the changes don't take effect. What I did was mount a volume with the configuration of that file, and problem solved! |
Is there an existing issue for this?
Current Behavior
Even after updating MONGO_HOST and restarting, the container continues to connect to the old MongoDB host, ignoring the new host specified.
Expected Behavior
After changing MONGO_HOST, the container should connect to the newly defined MongoDB host upon restart, rather than continuing to use the old one.
Steps To Reproduce
Environment
CPU architecture
arm64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: