Skip to content

warnings.warn(f"Routing database query for {model} before branching support is initialized.") #428

@stefanoparis-mgh

Description

@stefanoparis-mgh

Plugin Version

v0.4.6

NetBox Version

v4.5.5

Python Version

13.13.5

Steps to Reproduce

Start netbox service and load dashboard

Expected Behavior

No warning messages in log

Observed Behavior

Warning messages in log "systemctl status netbox"

with plugin disabled no warning messages appear in log

/opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 19 10:22:34 snipe-it gunicorn[74205]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 19 10:22:35 snipe-it gunicorn[74206]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 19 10:22:35 snipe-it gunicorn[74206]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 19 10:22:35 snipe-it gunicorn[74206]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 19 10:22:35 snipe-it gunicorn[74206]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 19 10:22:35 snipe-it gunicorn[74203]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 19 10:22:35 snipe-it gunicorn[74203]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 19 10:22:35 snipe-it gunicorn[74203]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 19 10:22:35 snipe-it gunicorn[74203]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions