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

'NoneType' object has no attribute '_meta'

illgetmine16 opened this issue · comments

Current Behavior

When going to Admin > Current Config I receive the error below. It was noted and fixed here:
netbox-community/netbox#13622

<class 'AttributeError'>

'NoneType' object has no attribute '_meta'

Python version: 3.11.4
NetBox version: 3.6.0
Plugins: None installed

Expected Behavior

Should be able to retrieve configuration.

Docker Compose Version

Docker Compose version v2.20.2

Docker Version

Client: Docker Engine - Community
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:35:18 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:18 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

The git Revision

Client: Docker Engine - Community Version: 24.0.5 API version: 1.43 Go version: go1.20.6 Git commit: ced0996 Built: Fri Jul 21 20:35:18 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.6 Git commit: a61e2b4 Built: Fri Jul 21 20:35:18 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0

The 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

NetBox Logs

🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
✅ Initialisation is done.
⏳ Waiting for control socket to be created... (1/10)
2023/08/31 16:26:23 [warn] 7#7 Unit is running unprivileged, then it cannot use arbitrary user and group.
2023/08/31 16:26:23 [info] 7#7 unit 1.30.0 started
2023/08/31 16:26:23 [info] 20#20 discovery started
2023/08/31 16:26:23 [notice] 20#20 module: python 3.11.2 "/usr/lib/unit/modules/python3.11.unit.so"
2023/08/31 16:26:23 [info] 7#7 controller started
2023/08/31 16:26:23 [notice] 7#7 process 20 exited with code 0
2023/08/31 16:26:23 [info] 22#22 router started
2023/08/31 16:26:23 [info] 22#22 OpenSSL 3.0.8 7 Feb 2023, 30000080
⚙️ Applying configuration from /etc/unit/nginx-unit.json
2023/08/31 16:26:24 [info] 25#25 "netbox" prototype started
2023/08/31 16:26:24 [info] 26#26 "netbox" application started
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
✅ Unit configuration loaded successfully
2023/08/31 16:26:26 [notice] 7#7 process 18 exited with code 0
2023/08/31 16:26:34 [info] 30#30 "netbox" application started
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
2023/08/31 16:26:38 [info] 38#38 "netbox" application started
10.81.10.199 - - [31/Aug/2023:16:26:38 +0000] "GET /core/config/ HTTP/1.1" 500 1638 "http://1.1.1.1:8080/users/users/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'

Content of docker-compose.override.yml

version: '3.4'
services:
  netbox:
    ports:
    - 8080:8080

Bug is in Netbox and will be fixed in the next release.