Closed JGNi closed 5 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Did you setup the mongodb container as per our readme?
Did you setup the mongodb container as per our readme?
No. I've now read it. I'm not sure I understand how it's done?
I am also confused on the mongodb ... I've never had to setup a mongo container before. can someone ELI5 the process?
More specifically, I am not understanding the attachment point for mongodb
/path/to/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
I understand my file, but ":/docker-entrypoint-initdb.d/init-mongo.js:ro" is confusing me when trying to create the path inside the mongodb container
Mongodb is a database like mysql, mariadb, etc.
Previously our unifi container had mongodb built in. However, due to version mismatches, we are no longer able to bundle it with unifi. So you need to set one up separately. The init-mongo.js file is an initialization config file we suggest so the necessary database and user for unifi is created in mongodb on first run and then unifi can connect to it and use it.
Keep in mind that it's unusual for us to bundle the db in (unless it's sqlite). So now it's more in line with the rest of our images where the db is external.
Closing this thread. If you're confused about the readme instructions and need help, feel free to stop by our discord.
@aptalca could that message possibly be included into the deprecation notice? That it's due to version mismatches?
That repo is archived. We had numerous notices about it. https://info.linuxserver.io/issues/2024-01-01-unifi-controller/
Is there an existing issue for this?
Current Behavior
I'm to newbie in this, to understand if this has been adressed before. But then please let me know.
I get the following in my unRAID installation.
─────────────────────────────────────── GID/UID ───────────────────────────────────────
User UID: 99 User GID: 100 ───────────────────────────────────────
Waiting for MONGO_HOST unifi-db to be reachable. Defined MONGO_HOST unifi-db is not reachable, cannot proceed.
Expected Behavior
Container running, so that I can open the GUI
Steps To Reproduce
Installed it from app store in unRAID, and ran it with default settings + MongoDB password
Environment
CPU architecture
x86-64
Docker creation
Container logs