Replies: 1 comment 1 reply
-
Please show your ALLOWED_HOSTS configuration and we will point out what's the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Been trying to upgrade our netbox server from v3.1.11 to the latest version. I've tried updating to different earlier versions but keep getting the same error. I've searched for an answer to no avail.
NetBox version
v3.1.11
Python version
3.8.10
PostgreSQL version
12.12
Steps to Reproduce
Performed the migration following https://docs.netbox.dev/en/stable/installation/upgrading.
3.1.11 to any version
ran ./upgrade.sh
Expected Behavior
upgrade.sh returning no errors.
Observed Behavior
Successfully installed django-auth-ldap-4.1.0 pyasn1-modules-0.2.8 python-ldap-3.4.3
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/management/base.py", line 93, in wrapped
saved_locale = translation.get_language()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/translation/init.py", line 210, in get_language
return _trans.get_language()
File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/translation/init.py", line 65, in getattr
if settings.USE_I18N:
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 92, in getattr
self._setup(name)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 79, in _setup
self._wrapped = Settings(settings_module)
File "/opt/netbox/venv/lib/python3.8/site-packages/django/conf/init.py", line 207, in init
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: The ALLOWED_HOSTS setting must be a list or a tuple.
The update ends here and the netbox services will not start. I've checked the ALLOWED_HOSTS entry in the configuration.py file and it seems to be correctly configured according to the Netbox docs. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions