Netbox won't start with empty database #8307

Closed
opened 2025-12-29 20:35:09 +01:00 by adam · 1 comment
Owner

Originally created by @tobiasge on GitHub (Jul 7, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.5.5

Python version

3.11

Steps to Reproduce

  1. Create new empty database
  2. Configure Netbox to use that database
  3. Run "manage.py check" or "manage.py migrate"

Expected Behavior

Tables are being created

Observed Behavior

An exception occurs, because the table for the Contenttypes doesn't exists yet.
Logs can be found here: https://github.com/netbox-community/netbox-docker/actions/runs/5483212436/jobs/9989301710#step:7:62
If I revert the PR #11709 Netbox starts as expected.

Originally created by @tobiasge on GitHub (Jul 7, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.5.5 ### Python version 3.11 ### Steps to Reproduce 1. Create new empty database 2. Configure Netbox to use that database 3. Run "manage.py check" or "manage.py migrate" ### Expected Behavior Tables are being created ### Observed Behavior An exception occurs, because the table for the Contenttypes doesn't exists yet. Logs can be found here: https://github.com/netbox-community/netbox-docker/actions/runs/5483212436/jobs/9989301710#step:7:62 If I revert the PR #11709 Netbox starts as expected.
adam added the type: bugstatus: acceptedseverity: high labels 2025-12-29 20:35:09 +01:00
adam closed this issue 2025-12-29 20:35:09 +01:00
Author
Owner

@candlerb commented on GitHub (Jul 8, 2023):

I wonder how this was able to slip past CI tests?

@candlerb commented on GitHub (Jul 8, 2023): I wonder how this was able to slip past CI tests?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8307