pducharme / UniFi-Video-Controller

Docker for Unifi-Video Controller (Ubiquiti Networks)
199 stars 105 forks source link

Setup wizard runs on reboot #25

Closed vladionescu closed 7 years ago

vladionescu commented 7 years ago

When rebuilding the container or simply restarting it (docker rm && docker run) I am sent through the setup wizard and prompted to load a backup.

I don't change anything between runs, the container is managed as a systemd unit. The same dir is mounted for the data volume each time and it contains what you would expect but the system.properties file is written fresh each time with the following (uuid and date change of course):

# unifi-video v3.6.1
#Tue Apr 25 02:44:15 UTC 2017
is_default=true
uuid=a8350f0f-a5d1-49a4-9774-a944a0b65d07
# app.http.port = 7080
# app.https.port = 7443
# ems.liveflv.port = 6666
# ems.livews.port = 7445
# ems.livewss.port = 7446
# ems.rtmp.port = 1935
# ems.rtsp.port = 7447

Why does this happen? It makes restarting a pain if I have to dig out a backup from the data dir and reload it each time.

vladionescu commented 7 years ago

Not entirely certain why, but this behavior has stopped. My config must have been corrupt.