Update README.md mongo init instructions #19
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Update the instructions for initializing MongoDB, as the provided instructions led to errors when I followed them.
Benefits of this PR and context:
closes #12
How Has This Been Tested?
c91e20ea07438
unifi
database and one for theunifi_stats
database. This created two separate users in mongoDB,unifi.unifi
andunifi_stats.unifi
, with distinct UUIDs.unifi
database in mongo and attempt startup, but produced errors in the unifi server.log,not authorized on unifi_stat to execute command { listCollections: 1
.unifi.unifi
user to add{ 'role': 'readWrite', 'db': 'unifi_stat' }
allows the unifi server to start up successfully, but attempting to import my backup produced a new error in server.log:not authorized on unifi to execute command { dropDatabase: 1, $db: "unifi"
. Apparently importing a backup requires the ability to drop the database.dbOwner
instead ofreadWrite
for both databases, and finally was able to successfully import my backup and run the unifi-network-application image.Source / References:
None