markdegrootnl / dockerfiles

Repository for my dockerfiles https://hub.docker.com/u/markdegroot
ISC License
14 stars 6 forks source link

Unifi Protect Container doesn't start #1

Closed icaroscherma closed 4 years ago

icaroscherma commented 4 years ago

Docker log output:

database exists
Error: Config owner (postgres:101) and data owner (root:0) do not match, and config owner is not root

Then I deleted and re-created the container and now the logs it's like:

image


Is it related to user permissions on the volumes?


Edit: I got it working if I don't link the postgres database to a volume :/


Edit2: To fix my main issue: Instead of linking the volume to /var/lib/postgresql/10/main, just link to /var/lib/postgresql and the permissions will be fixed on the first start.

Other issue that will show up later if you just use the port mapping is that the docker need to have external internet access, (tip from https://github.com/iamjamestl/docker-unifi-protect ), so maybe it's better to just use a bridge mode on the container. So if you get a blue screen saying something like connecting to your nvr..., it's the port mapping issue.

markdegrootnl commented 4 years ago

Hi @icaroscherma,

Good to hear you've managed to solve the issue.

Also thanks for the bridge/port-forward information. We've had some users stuck at connecting to your nvr... while others never had the issue. Good to know that it might be related to the external internet access.