Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marsteel opened this issue Jun 9, 2024 · 2 comments · Fixed by #16506
Closed
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@marsteel
Copy link
Contributor

marsteel commented Jun 9, 2024

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.

@marsteel marsteel added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Jun 9, 2024
@marsteel
Copy link
Contributor Author

marsteel commented 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. django-commons/django-debug-toolbar#1927

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation severity: low Does not significantly disrupt application functionality, or a workaround is available complexity: low Requires minimal effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer complexity: low Requires minimal effort to implement labels Jun 10, 2024
@jeremystretch
Copy link
Member

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. 😆

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants