Cannot run reports after upgrade to 2.4.0 #1900

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

Originally created by @kmiller7851 on GitHub (Aug 7, 2018).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.3
  • NetBox version: 2.4.0

Description

I cannot seem to run reports since updating to v2.4.0. Previously run reports display just fine, but as soon as I click on 'run report' I get the following trace:

Traceback:

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner
  35.             response = get_response(request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  128.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  126.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py" in dispatch
  85.         return super().dispatch(request, *args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in dispatch
  89.         return handler(request, *args, **kwargs)

File "/opt/netbox/netbox/extras/views.py" in post
  274.         module_name, report_name = name.split('.')

Exception Type: ValueError at /extras/reports/reports.ipcheck.CheckPrefixLength/run/
Exception Value: too many values to unpack (expected 2)

Seems like there is a reports. prefix now in the module name ( previously working name was ipcheck.CheckPrefixLength, now non-working is reports.ipcheck.CheckPrefixLength )

Originally created by @kmiller7851 on GitHub (Aug 7, 2018). # Issue type [ ] Feature request [X] Bug report [ ] Documentation # Environment * Python version: 3.5.3 * NetBox version: 2.4.0 # Description I cannot seem to run reports since updating to v2.4.0. Previously run reports display just fine, but as soon as I click on 'run report' I get the following trace: ``` Traceback: File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner 35. response = get_response(request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 128. response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 126. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in view 69. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py" in dispatch 85. return super().dispatch(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in dispatch 89. return handler(request, *args, **kwargs) File "/opt/netbox/netbox/extras/views.py" in post 274. module_name, report_name = name.split('.') Exception Type: ValueError at /extras/reports/reports.ipcheck.CheckPrefixLength/run/ Exception Value: too many values to unpack (expected 2) ``` Seems like there is a reports. prefix now in the module name ( previously working name was ipcheck.CheckPrefixLength, now non-working is reports.ipcheck.CheckPrefixLength )
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:13 +01:00
adam closed this issue 2025-12-29 17:20:13 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 7, 2018):

What is your REPORTS_ROOT setting (in configuration.py)?

@jeremystretch commented on GitHub (Aug 7, 2018): What is your `REPORTS_ROOT` setting (in `configuration.py`)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1900