Netbox-docker won't start (unable to start service init-netbox-config: command exited 1) #967
Replies: 2 comments
-
Same issue, but no luck overcoming it yet. Plain vanilla brand new postgres docker container, using the defaults from the official site. Have tried forcing SSL with no luck, based on paths within the postgres container. docker run -it --entrypoint /bin/bash postgres ALTER SYSTEM SET ssl_cert_file TO '/etc/ssl/certs/ssl-cert-snakeoil.pem'; |
Beta Was this translation helpful? Give feedback.
-
The SSL error ended up being a red herring. After wasting three hours on things last night, I decided to check the actual config files contained in the docker volume and quickly found the issue. The first time I went to start up the container I'd typoed the database port on the docker environment variables for the container, but had corrected that immediately after the first failure. Apparently updating the environment variables for subsequent runs doesn't update the config file even if you repull/redeploy the image. So I ended up just wiping the original config from the volume and letting it start over from scratch. This time it seems to be actually doing stuff. |
Beta Was this translation helpful? Give feedback.
-
I have problems setting up netbox on docker...
when I start the docker I receive this error right at the beginning:
as far as I can tell it has something to do with django wanting to establish an ssl connection with the postgresql db... this however fails and the initialization is exited...
unfortunately, I couldn't find any documentation about netbox requiring ssl to access postgres and I'm not sure how to set it up with my existing postgres instance...
any kind of help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions