netbox-community / netbox-docker

🐳 Docker Image of NetBox

Home Page:https://github.com/netbox-community/netbox-docker/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERR_CONNECTION_FAILED - Port 443

deanfourie1 opened this issue · comments

Current Behavior

Everything starts, all containers start without errors and a docker container ls -a shows it bound to 0.0.0.0:443 however, I cannot connect in browser.

I had this working with an older version of netbox.

Expected Behavior

Connect to netbox with a insecure SSL connection.

Instead I receive a ERR_CONNECTION_REFUSED error.

root@netbox:/home/netbox-docker# docker container ls -a
CONTAINER ID   IMAGE                               COMMAND                  CREATED          STATUS                            PORTS                                     NAMES
8cbca7ed395e   netboxcommunity/netbox:v3.7-2.8.0   "/usr/bin/tini -- /o…"   12 minutes ago   Up 5 seconds (health: starting)                                             netbox-docker-netbox-housekeeping-1
b3a5bbe3582c   netboxcommunity/netbox:v3.7-2.8.0   "/usr/bin/tini -- /o…"   12 minutes ago   Up 5 seconds (health: starting)                                             netbox-docker-netbox-worker-1
9754a8aaec2f   netboxcommunity/netbox:v3.7-2.8.0   "/usr/bin/tini -- /o…"   12 minutes ago   Up 41 seconds (healthy)           0.0.0.0:443->8080/tcp, :::443->8080/tcp   netbox-docker-netbox-1
a42379ff62f9   redis:7-alpine                      "docker-entrypoint.s…"   12 minutes ago   Up 42 seconds                     6379/tcp                                  netbox-docker-redis-cache-1
2e124ef7b96d   postgres:16-alpine                  "docker-entrypoint.s…"   12 minutes ago   Up 42 seconds                     5432/tcp                                  netbox-docker-postgres-1
6434a4f35d7c   redis:7-alpine                      "docker-entrypoint.s…"   12 minutes ago   Up 42 seconds                     6379/tcp                                  netbox-docker-redis-1

Docker Compose Version

2.21.0

Docker Version

Client: Docker Engine - Community
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:08:17 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.26
  GitCommit:        3dd1e886e55dd695541fdcd67420c2888645a495
 runc:
  Version:          1.1.10
  GitCommit:        v1.1.10-0-g18a0cb0
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

The git Revision

f1ca9ab

The git Status

root@netbox:/home/netbox-docker# git status
On branch release
Your branch is up to date with 'origin/release'.

nothing to commit, working tree clean

Startup Command

docker compose up -d

NetBox Logs

root@netbox:/home/netbox-docker# docker compose up
[+] Running 6/0
 ✔ Container netbox-docker-redis-1                Created                                                                                                                                     0.0s 
 ✔ Container netbox-docker-redis-cache-1          Created                                                                                                                                     0.0s 
 ✔ Container netbox-docker-postgres-1             Created                                                                                                                                     0.0s 
 ✔ Container netbox-docker-netbox-1               Created                                                                                                                                     0.0s 
 ✔ Container netbox-docker-netbox-worker-1        Created                                                                                                                                     0.0s 
 ✔ Container netbox-docker-netbox-housekeeping-1  Created                                                                                                                                     0.0s 
Attaching to netbox-docker-netbox-1, netbox-docker-netbox-housekeeping-1, netbox-docker-netbox-worker-1, netbox-docker-postgres-1, netbox-docker-redis-1, netbox-docker-redis-cache-1
netbox-docker-redis-1                | 1:C 02 Jan 2024 22:25:02.365 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
netbox-docker-redis-1                | 1:C 02 Jan 2024 22:25:02.365 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
netbox-docker-redis-1                | 1:C 02 Jan 2024 22:25:02.365 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
netbox-docker-redis-1                | 1:C 02 Jan 2024 22:25:02.365 * Configuration loaded
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.365 * monotonic clock: POSIX clock_gettime
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.369 * Running mode=standalone, port=6379.
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.370 * Server initialized
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * Reading RDB base file on AOF loading...
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * Loading RDB produced by version 7.2.3
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * RDB age 1571 seconds
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * RDB memory usage when created 0.83 Mb
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * RDB is base AOF
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * Done loading RDB, keys loaded: 0, keys expired: 0.
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.371 * DB loaded from base file appendonly.aof.1.base.rdb: 0.001 seconds
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.380 * DB loaded from incr file appendonly.aof.1.incr.aof: 0.009 seconds
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.380 * DB loaded from append only file: 0.010 seconds
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.380 * Opening AOF incr file appendonly.aof.1.incr.aof on server start
netbox-docker-redis-1                | 1:M 02 Jan 2024 22:25:02.380 * Ready to accept connections tcp
netbox-docker-postgres-1             | 
netbox-docker-postgres-1             | PostgreSQL Database directory appears to contain a database; Skipping initialization
netbox-docker-postgres-1             | 
netbox-docker-postgres-1             | 2024-01-02 22:25:02.495 UTC [1] LOG:  starting PostgreSQL 16.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
netbox-docker-postgres-1             | 2024-01-02 22:25:02.506 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
netbox-docker-postgres-1             | 2024-01-02 22:25:02.506 UTC [1] LOG:  listening on IPv6 address "::", port 5432
netbox-docker-redis-cache-1          | 1:C 02 Jan 2024 22:25:02.514 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
netbox-docker-redis-cache-1          | 1:C 02 Jan 2024 22:25:02.514 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
netbox-docker-redis-cache-1          | 1:C 02 Jan 2024 22:25:02.514 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
netbox-docker-redis-cache-1          | 1:C 02 Jan 2024 22:25:02.514 * Configuration loaded
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.514 * monotonic clock: POSIX clock_gettime
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.515 * Running mode=standalone, port=6379.
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.515 * Server initialized
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.516 * Loading RDB produced by version 7.2.3
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.516 * RDB age 29 seconds
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.516 * RDB memory usage when created 0.95 Mb
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.516 * Done loading RDB, keys loaded: 2, keys expired: 0.
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.516 * DB loaded from disk: 0.001 seconds
netbox-docker-redis-cache-1          | 1:M 02 Jan 2024 22:25:02.517 * Ready to accept connections tcp
netbox-docker-postgres-1             | 2024-01-02 22:25:02.520 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
netbox-docker-postgres-1             | 2024-01-02 22:25:02.527 UTC [24] LOG:  database system was shut down at 2024-01-02 22:24:33 UTC
netbox-docker-postgres-1             | 2024-01-02 22:25:02.541 UTC [1] LOG:  database system is ready to accept connections
netbox-docker-netbox-1               | ↩️ Skip creating the superuser
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-docker-netbox-1               | ✅ Initialisation is done.
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [warn] 6#6 Unit is running unprivileged, then it cannot use arbitrary user and group.
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 6#6 unit 1.31.1 started
netbox-docker-netbox-1               | ⏳ Waiting for control socket to be created... (1/10)
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 11#11 discovery started
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [notice] 11#11 module: python 3.11.4 "/usr/lib/unit/modules/python3.11.unit.so"
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 6#6 controller started
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [notice] 6#6 process 11 exited with code 0
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 14#14 router started
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 14#14 OpenSSL 3.0.8 7 Feb 2023, 30000080
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 15#15 "netbox" prototype started
netbox-docker-netbox-1               | 2024/01/02 22:25:16 [info] 16#16 "netbox" application started
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-docker-netbox-1               | 2024/01/02 22:25:18 [info] 37#37 "netbox" application started
netbox-docker-netbox-1               | ⚙️ Applying configuration from /etc/unit/nginx-unit.json
netbox-docker-netbox-1               | ✅ Unit configuration loaded successfully
netbox-docker-netbox-1               | 2024/01/02 22:25:18 [notice] 6#6 process 10 exited with code 0
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-docker-netbox-1               | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-docker-netbox-1               | 127.0.0.1 - - [02/Jan/2024:22:25:22 +0000] "GET /api/ HTTP/1.1" 200 549 "-" "curl/7.88.1"
netbox-docker-netbox-1               | 127.0.0.1 - - [02/Jan/2024:22:25:36 +0000] "GET /api/ HTTP/1.1" 200 549 "-" "curl/7.88.1"
netbox-docker-netbox-housekeeping-1  | Interval set to 86400 seconds
netbox-docker-netbox-housekeeping-1  | Tue Jan  2 22:25:38 UTC 2024
netbox-docker-netbox-worker-1        | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-docker-netbox-housekeeping-1  | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-docker-netbox-worker-1        | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-docker-netbox-worker-1        | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-docker-netbox-worker-1        | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-docker-netbox-housekeeping-1  | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-docker-netbox-housekeeping-1  | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-docker-netbox-housekeeping-1  | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-docker-netbox-worker-1        | No queues have been specified. This process will service the following queues by default: high, default, low
netbox-docker-netbox-worker-1        | 22:25:48 Worker rq:worker:c933403323d345288f23b2ace2a6ab67 started with PID 6, version 1.15.1
netbox-docker-netbox-worker-1        | 22:25:48 Subscribing to channel rq:pubsub:c933403323d345288f23b2ace2a6ab67
netbox-docker-netbox-worker-1        | 22:25:48 *** Listening on high, default, low...
netbox-docker-netbox-housekeeping-1  | [*] Clearing expired authentication sessions
netbox-docker-netbox-worker-1        | 22:25:48 Scheduler for low, high, default started with PID 8
netbox-docker-netbox-housekeeping-1  |  Sessions cleared.
netbox-docker-netbox-housekeeping-1  | [*] Checking for expired changelog records
netbox-docker-netbox-housekeeping-1  |  No expired records found.
netbox-docker-netbox-housekeeping-1  | [*] Checking for expired jobs
netbox-docker-netbox-housekeeping-1  |  No expired records found.
netbox-docker-netbox-housekeeping-1  | [*] Checking for latest release
netbox-docker-netbox-housekeeping-1  |  Latest release: 3.7.0
netbox-docker-netbox-housekeeping-1  | Finished.
netbox-docker-netbox-1               | 127.0.0.1 - - [02/Jan/2024:22:25:55 +0000] "GET /api/ HTTP/1.1" 200 549 "-" "curl/7.88.1"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:05 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:08 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:08 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 172.16.101.16 - - [02/Jan/2024:22:26:08 +0000] "-" 400 54 "-" "-"
netbox-docker-netbox-1               | 127.0.0.1 - - [02/Jan/2024:22:26:09 +0000] "GET /api/ HTTP/1.1" 200 549 "-" "curl/7.88.1"

Content of docker-compose.override.yml

root@netbox:/home/netbox-docker# cat docker-compose.override.yml
version: '3.4'
services:
  netbox:
    ports:
      - 443:8080