Closed 5andr0 closed 4 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.
Can't find a bug in the code. Must've happend because of my power faults. -> closing
Is there an existing issue for this?
Current Behavior
My log file is full of
grep: /config/data/system.properties: binary file matches
The check in /etc/s6-overlay/s6-rc.d/svc-unifi-network-application/data/check#L3 fails, because either the init script or the app converted the settings file to binary (i never touched it).workaround fix:
WEB_PORT=$(grep --text 'unifi.https.port=' '/config/data/system.properties' | awk -F '=' '{print $2}')
UPDATE: just found out instead of the line
statdb.mongo.uri=mongodb\://unifi\:totallyrandom@unifi-db\:27017/unifi_stat?tls\=false
there's 1577 zero bytes followed by=
and newlineDeleting the file restores it with the correct
statdb.mongo.uri
line. Could've been caused on my end by a power fault. But I'll leave the issue open for now, might be a code bug.Expected Behavior
No response
Steps To Reproduce
Run a fresh container and wait for the error
Environment
CPU architecture
x86-64
Docker creation
Container logs