netbox-community / netbox-docker

🐳 Docker Image of NetBox
https://github.com/netbox-community/netbox-docker/wiki
Apache License 2.0
1.88k stars 873 forks source link

Fails to start on download latest version #1317

Closed jseifeddine closed 2 months ago

jseifeddine commented 2 months ago

Current Behavior

netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (6s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (9s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (12s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (15s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (18s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (21s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (24s / 30s) netbox-1 | django.db.utils.OperationalError: [Errno -2] Name or service not known netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ] netbox-1 | ⏳ Waiting on DB... (27s / 30s) netbox-1 | ❌ Waited 30s or more for the DB to become ready.

Expected Behavior

Working

Docker Compose Version

Docker version 27.2.1, build 9e34c9b

Docker Version

Client: Docker Engine - Community
 Version:           27.2.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        9e34c9b
 Built:             Fri Sep  6 12:08:06 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.2.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       8b539b8
  Built:            Fri Sep  6 12:08:06 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.21
  GitCommit:        472731909fa34bd7bc9c087e4c27943f9835f111
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

The git Revision

commit 5add31ee7a55da8872efaa95278037a0e34020d5 (HEAD -> release, tag: 3.0.1, origin/release, origin/HEAD)

The git Status

On branch release
Your branch is up to date with 'origin/release'.

Startup Command

docker compose up -d

NetBox Logs

netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (6s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (9s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (12s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (15s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (18s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (21s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (24s / 30s)
netbox-1       | django.db.utils.OperationalError: [Errno -2] Name or service not known
netbox-1       | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1       | ⏳ Waiting on DB... (27s / 30s)
netbox-1       | ❌ Waited 30s or more for the DB to become ready.

Content of docker-compose.override.yml

cat docker-compose.override.yml 
services:
  netbox:
    ports:
      - 8000:8080