(Sry for my english. Not a native speaker)
Hy guys,
here's what i found out. i had same issuse with the authentiction problems. nothings works. i did everthing as describe in the post earlier. I setup the init script, setup the username and password in the docker variables etc
then i had a hunch. in the container unifi-network-application there this file "system.properties" at "/usr/lib/unifi/data". You can access this via console and read the content via cat command.
in there, it seems is the mongodb connection string
"db.mongo.uri=mongodb\://unifi\:<PW>@<IP>\:27017/unifi?tls\=false"
And it seems that not all variables from the docker config in unraid get passthrough to the contianer. Especially: dbname and password. Because in there is the default password: 12345678 and DB-Name: unifi
So no wonder, there is autentication errors. my authentication data which i setup up in the init script and dbname, which i also set in the docker config, got never used.
Dont know what else is not getting through. But i set the values in my initscript to these from the system.properties and it works!
I guess the problem is somewhere in the process where the variable should be set in the container, what do you guys thinks?
Hope this helps somebody.