Netbox v4.0.5 django-debug-toolbar==4.4.2 Delays of Several Seconds on each request #9817

Closed
opened 2025-12-29 21:23:08 +01:00 by adam · 2 comments
Owner

Originally created by @marsteel on GitHub (Jun 9, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.5

Python Version

3.10

Steps to Reproduce

Upgrade to Netbox v4.0.5 from v4.0.3
Click each items like SITES/Sites or RACKS/Racks, it takes ~10seconds for web browser to load result.

Expected Behavior

Upgrade to Netbox v4.0.5 from v4.0.3
Click each items like SITES/Sites or RACKS/Racks, it takes <1 seconds for web browser to load result.

Observed Behavior

Upgrade to Netbox v4.0.5 from v4.0.3
Click each items like SITES/Sites or RACKS/Racks, it takes ~10seconds for web browser to load result.

Originally created by @marsteel on GitHub (Jun 9, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.5 ### Python Version 3.10 ### Steps to Reproduce Upgrade to Netbox v4.0.5 from v4.0.3 Click each items like SITES/Sites or RACKS/Racks, it takes ~10seconds for web browser to load result. ### Expected Behavior Upgrade to Netbox v4.0.5 from v4.0.3 Click each items like SITES/Sites or RACKS/Racks, it takes <1 seconds for web browser to load result. ### Observed Behavior Upgrade to Netbox v4.0.5 from v4.0.3 Click each items like SITES/Sites or RACKS/Racks, it takes ~10seconds for web browser to load result.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:23:08 +01:00
adam closed this issue 2025-12-29 21:23:08 +01:00
Author
Owner

@marsteel commented on GitHub (Jun 9, 2024):

Seems it is caused by django-debug-toolbar==4.4.2 in requirements.txt
There are delay if host can't resolve host.docker.internal

The workaround is add entry for host.docker.internal in /etc/hosts

127.0.0.1 localhost
127.0.0.1 host.docker.internal

or rollback django-debug-toolbar==4.4.2 to 4.3.0 in requirements.txt

There is the discussion. https://github.com/jazzband/django-debug-toolbar/issues/1927

@marsteel commented on GitHub (Jun 9, 2024): Seems it is caused by django-debug-toolbar==4.4.2 in requirements.txt There are delay if host can't resolve host.docker.internal The workaround is add entry for **host.docker.internal** in **/etc/hosts** ``` 127.0.0.1 localhost 127.0.0.1 host.docker.internal ``` or rollback django-debug-toolbar==4.4.2 to 4.3.0 in requirements.txt There is the discussion. https://github.com/jazzband/django-debug-toolbar/issues/1927
Author
Owner

@jeremystretch commented on GitHub (Jun 10, 2024):

Thanks for taking the time to report this @marsteel! Turns out this is the reason I had an issue with DNS rate limiting last week. 😆

@jeremystretch commented on GitHub (Jun 10, 2024): Thanks for taking the time to report this @marsteel! Turns out this is the reason I had an issue with DNS rate limiting last week. :laughing:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9817