[2024-01-22 12:11:47,980] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:48,480] INFO db - db connection established...
[2024-01-22 12:11:48,993] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:49,494] INFO db - db connection established...
[2024-01-22 12:11:50,007] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:50,507] INFO db - db connection established...
[2024-01-22 12:11:51,023] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
Expected Behavior
Connection to Mongo DB to succeed.
Steps To Reproduce
Setup controller as per documentation. Was able to restore from backups and migration from deprecated LSIO docker image. Few weeks later /usr/lib/unifi/logs/server.log reporting error with connection to MongoDB.
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 99
User GID: 100
───────────────────────────────────────
[custom-init] No custom files found, skipping...
Is there an existing issue for this?
Current Behavior
[2024-01-22 12:11:47,980] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:48,480] INFO db - db connection established...
[2024-01-22 12:11:48,993] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:49,494] INFO db - db connection established...
[2024-01-22 12:11:50,007] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
[2024-01-22 12:11:50,507] INFO db - db connection established...
[2024-01-22 12:11:51,023] ERROR db - Got error while connecting to db: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='unifi', password=, mechanismProperties=}
Expected Behavior
Connection to Mongo DB to succeed.
Steps To Reproduce
Setup controller as per documentation. Was able to restore from backups and migration from deprecated LSIO docker image. Few weeks later /usr/lib/unifi/logs/server.log reporting error with connection to MongoDB.
Verified that credentials work:
Connection string in /usr/lib/unifi/data/system.properties
statdb.mongo.uri=mongodb\://unifi\:<redacted>@192.168.111.46\:27017/unifi_stat?tls\=false
Environment
CPU architecture
x86-64
Docker creation
Container logs