From fb22a198934f8e725cf6bd78c2abd995deb98ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Mon, 13 Aug 2018 15:37:06 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Added=20nginx=20troublesho?= =?UTF-8?q?oting=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 9e607d0..23287f3 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,32 @@ If your issue is not here, look through [the existing issues][issues] and eventu * To create a database backup run `docker-compose exec postgres sh -c 'pg_dump -cU $POSTGRES_USER $POSTGRES_DB' | gzip > db_dump.sql.gz` * To restore that database backup run `gunzip -c db_dump.sql.gz | docker exec -i $(docker-compose ps -q postgres) sh -c 'psql -U $POSTGRES_USER $POSTGRES_DB'`. +### Nginx doesn't start + +As a first step, stop your docker-compose setup. +Then locate the `netbox-nginx-config` volume and remove it: + +```bash +# Stop your local netbox-docker installation +$ docker-compose down + +# Find the volume +$ docker volume ls | grep netbox-nginx-config +local netbox-docker_netbox-nginx-config + +# Remove the volume +$ docker volume rm netbox-docker_netbox-nginx-config +netbox-docker_netbox-nginx-config +``` + +Now start everything up again. + +If this didn't help, try to see if there's anything in the logs indicating why nginx doesn't start: + +```bash +$ docker-compose logs -f nginx +``` + ### Getting a "Bad Request (400)" > When connecting to the NetBox instance, I get a "Bad Request (400)" error.