Netbox LXC creation error #885

Closed
opened 2026-02-04 22:03:40 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @hrdejong on GitHub (May 2, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Netbox

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/netbox.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

Script ends with an error.

🔄 Steps to reproduce the issue.

Create LXC with command from Proxmox console.

Paste the full error output (if available).

File "/opt/netbox/venv/lib/python3.11/site-packages/django/contrib/contenttypes/models.py", line 91, in get_for_models
for ct in cts:
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 384, in iter
self._fetch_all()
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 1935, in _fetch_all
self._result_cache = list(self._iterable_class(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 91, in iter
results = compiler.execute_sql(
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1620, in execute_sql
cursor = self.connection.cursor()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 320, in cursor
return self._cursor()
^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 296, in _cursor
self.ensure_connection()
File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 278, in ensure_connection
with self.wrap_database_errors:
File "/opt/netbox/venv/lib/python3.11/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.11/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
self.connect()
File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/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.11/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py", line 332, in get_new_connection
connection = self.Database.connect(**conn_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib/python3.11/site-packages/psycopg/connection.py", line 117, in connect
raise last_ex.with_traceback(None)
django.db.utils.OperationalError: connection failed: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied

[ERROR] in line 74: exit code 0: while executing command $STD /opt/netbox/upgrade.sh
/dev/fd/63: line 72: SPINNER_PID: unbound variable
root@pve:~#

🖼️ Additional context (optional).

No response

Originally created by @hrdejong on GitHub (May 2, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Netbox ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/netbox.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. Script ends with an error. ### 🔄 Steps to reproduce the issue. Create LXC with command from Proxmox console. ### ❌ Paste the full error output (if available). File "/opt/netbox/venv/lib/python3.11/site-packages/django/contrib/contenttypes/models.py", line 91, in get_for_models for ct in cts: File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 384, in __iter__ self._fetch_all() File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 1935, in _fetch_all self._result_cache = list(self._iterable_class(self)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/query.py", line 91, in __iter__ results = compiler.execute_sql( ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1620, in execute_sql cursor = self.connection.cursor() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 320, in cursor return self._cursor() ^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 296, in _cursor self.ensure_connection() File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 278, in ensure_connection with self.wrap_database_errors: File "/opt/netbox/venv/lib/python3.11/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.11/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection self.connect() File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/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.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py", line 332, in get_new_connection connection = self.Database.connect(**conn_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/psycopg/connection.py", line 117, in connect raise last_ex.with_traceback(None) django.db.utils.OperationalError: connection failed: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied ⠼ [ERROR] in line 74: exit code 0: while executing command $STD /opt/netbox/upgrade.sh /dev/fd/63: line 72: SPINNER_PID: unbound variable root@pve:~# ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 22:03:40 +03:00
Author
Owner

@MickLesk commented on GitHub (May 2, 2025):

@bvdberg01

Failed by Upgrade command, can you reproduce this - or Network issue?

@tremor021 can you check it too?

@MickLesk commented on GitHub (May 2, 2025): @bvdberg01 Failed by Upgrade command, can you reproduce this - or Network issue? @tremor021 can you check it too?
Author
Owner

@tremor021 commented on GitHub (May 2, 2025):

psycopg.OperationalError: connection failed: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied

DB migrations are not running because sql errors out. I'll try running all commands manually to see why it's not passing the password.

EDIT: It's a typo in sed command. Pushing a fix

@tremor021 commented on GitHub (May 2, 2025): `psycopg.OperationalError: connection failed: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied` DB migrations are not running because sql errors out. I'll try running all commands manually to see why it's not passing the password. EDIT: It's a typo in sed command. Pushing a fix
Author
Owner

@tremor021 commented on GitHub (May 2, 2025):

@hrdejong try again after #4179 merges

@tremor021 commented on GitHub (May 2, 2025): @hrdejong try again after #4179 merges
Author
Owner

@hrdejong commented on GitHub (May 2, 2025):

@hrdejong try again after #4179 merges

Will do and thanks for the fast responses!

@hrdejong commented on GitHub (May 2, 2025): > [@hrdejong](https://github.com/hrdejong) try again after [#4179](https://github.com/community-scripts/ProxmoxVE/pull/4179) merges Will do and thanks for the fast responses!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#885