Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.0.0
Python Version
3.12
Steps to Reproduce
- Create new netbox-docker instance
- Enable sentry via the following lines:
SENTRY_ENABLED = False
SENTRY_DSN =""
- Start netbox
Expected Behavior
Netbox should start with enabled sentry.
@tobiasge already looked into this within netbox slack. This is not an issue within netbox-docker, but rather an issue created via a redesign within sentry.
Observed Behavior
Traceroute:
netbox-1 | Traceback (most recent call last):
netbox-1 | File "/opt/netbox/netbox/./manage.py", line 10, in <module>
netbox-1 | execute_from_command_line(sys.argv)
netbox-1 | File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
netbox-1 | utility.execute()
netbox-1 | File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 382, in execute
netbox-1 | settings.INSTALLED_APPS
netbox-1 | File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in __getattr__
netbox-1 | self._setup(name)
netbox-1 | File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 76, in _setup
netbox-1 | self._wrapped = Settings(settings_module)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 190, in __init__
netbox-1 | mod = importlib.import_module(self.SETTINGS_MODULE)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
netbox-1 | return _bootstrap._gcd_import(name[level:], package, level)
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
netbox-1 | File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
netbox-1 | File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
netbox-1 | File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
netbox-1 | File "<frozen importlib._bootstrap_external>", line 940, in exec_module
netbox-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
netbox-1 | File "/opt/netbox/netbox/netbox/settings.py", line 525, in <module>
netbox-1 | integrations=[sentry_sdk.integrations.django.DjangoIntegration()],
netbox-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netbox-1 | AttributeError: module 'sentry_sdk.integrations' has no attribute 'django'