You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Is this a VM deployment? Did you configure the primary ID or did it request an IP with DHCP?
I've seen this when my VM or hardware has a DHCP assigned address and I configured the primary interface, but failed to restart the Malcolm server after completing the configuration and auth_setup script.
@mmguero , I'd recommend inserting a section into the initial configuration that detects if the primary nic is DHCP and prompt to configure the primary IPv4 address manually before the system reboots. That way, when the Malcolm configuration script runs, it's going to do so under the permanent IP address.
Hi @trwagner1,
I have it deployed in Ubuntu VM running in Proxmox and using the git repo with docker.
VM is assigned with a static ip through pfsense DHCP server.
All containers are running except Netbox stuck at "starting" state. I can use Opensearch dashboards, Arkime, CyberChef, File Upload is working as well.
I have configured one interface which is mirrored and can see all traffic in Arkime and Dashboards
Only Netbox is giving Bad Gateway error
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:
How are you running Malcolm?
Additional context
Tried restarting netbox container after reseting password with ./auth_setup script but nothing works
The text was updated successfully, but these errors were encountered: