Skip to content
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

netbox not loading - 502 Bad gateway #565

Open
purplealien51 opened this issue Jan 26, 2025 · 0 comments
Open

netbox not loading - 502 Bad gateway #565

purplealien51 opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@purplealien51
Copy link

Describe the bug
Netbox is not loading. Docker logs for netbox container says "password authentication failed for user netbox".

**Screenshots and/or Logs **

get_for_models(*apps.get_models()).values()', ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/contrib/contenttypes/models.py", line 91, in get_for_models', ' for ct in cts:', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/models/query.py", line 400, in iter', ' self._fetch_all()', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/models/query.py", line 1928, in _fetch_all', ' self._result_cache = list(self._iterable_class(self))', ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in iter', ' results = compiler.execute_sql(', ' ^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1560, in execute_sql', ' cursor = self.connection.cursor()', ' ^^^^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner', ' return func(*args, **kwargs)', ' ^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 316, in cursor', ' return self._cursor()', ' ^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 292, in _cursor', ' self.ensure_connection()', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner', ' return func(*args, **kwargs)', ' ^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 274, in ensure_connection', ' with self.wrap_database_errors:', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/utils.py", line 91, in exit', ' raise dj_exc_value.with_traceback(traceback) from exc_value', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 275, in ensure_connection', ' self.connect()', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner', ' return func(*args, **kwargs)', ' ^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 256, in connect', ' self.connection = self.get_new_connection(conn_params)', ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner', ' return func(*args, **kwargs)', ' ^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 277, in get_new_connection', ' connection = self.Database.connect(**conn_params)', ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', ' File "/opt/netbox/venv/lib/python3.12/site-packages/psycopg/connection.py", line 119, in connect', ' raise last_ex.with_traceback(None)', 'django.db.utils.OperationalError: connection failed: connection to server at "172.18.0.9", port 5432 failed: FATAL: password authentication failed for user "netbox"', '', " loaded config '/etc/netbox/config/configuration.py'", " loaded config '/etc/netbox/config/extra.py'", " loaded config '/etc/netbox/config/logging.py'", " loaded config '/etc/netbox/config/plugins.py'", '']
django.db.utils.OperationalError: connection failed: connection to server at "172.18.0.9", port 5432 failed: FATAL: password authentication failed for user "netbox"
[ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
⏳ Waiting on DB... (0s / 30s)

Malcolm Version:

  • Version [e.g. v25.01.0]

How are you running Malcolm?

  • Malcolm running in Ubuntu 22.04 using docker

Additional context
Tried restarting netbox container after reseting password with ./auth_setup script but nothing works

@purplealien51 purplealien51 added the bug Something isn't working label Jan 26, 2025
@mmguero mmguero added this to Malcolm Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant