Netbox upgrade failed from 2.10.9 to 2.11.12 #19928
Unanswered
Shanvasu
asked this question in
Help Wanted!
Replies: 0 comments
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.
-
Following reported : when running
[8029@bpnm03 netbox]$ systemctl status netbox-rq
● netbox-rq.service - NetBox Request Queue Worker
Loaded: loaded (/etc/systemd/system/netbox-rq.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2025-07-22 10:19:50 BST; 25s ago
Docs: https://netbox.readthedocs.io/en/stable/
Process: 12694 ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py rqworker (code=exited, status=1/FAILURE)
Main PID: 12694 (code=exited, status=1/FAILURE)
sudo journalctl -eu netbox-rq
Jul 22 10:11:57 bpnm03 systemd[1]: netbox-rq.service holdoff time over, scheduling restart.
Jul 22 10:11:57 bpnm03 systemd[1]: Stopped NetBox Request Queue Worker.
Jul 22 10:11:57 bpnm03 systemd[1]: Started NetBox Request Queue Worker.
Jul 22 10:11:58 bpnm03 python3[4329]: Traceback (most recent call last):
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/netbox/manage.py", line 10, in
Jul 22 10:11:58 bpnm03 python3[4329]: execute_from_command_line(sys.argv)
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
Jul 22 10:11:58 bpnm03 python3[4329]: utility.execute()
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 395, in execute
Jul 22 10:11:58 bpnm03 python3[4329]: self.fetch_command(subcommand).run_from_argv(self.argv)
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 244, in fetch_command
Jul 22 10:11:58 bpnm03 python3[4329]: klass = load_command_class(app_name, subcommand)
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 37, in load_command_class
Jul 22 10:11:58 bpnm03 python3[4329]: module = import_module('%s.management.commands.%s' % (app_name, name))
Jul 22 10:11:58 bpnm03 python3[4329]: File "/usr/lib64/python3.6/importlib/init.py", line 126, in import_module
Jul 22 10:11:58 bpnm03 python3[4329]: return _bootstrap._gcd_import(name[level:], package, level)
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 994, in _gcd_import
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 971, in _find_and_load
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 955, in _find_and_load_unlocked
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 665, in _load_unlocked
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 678, in exec_module
Jul 22 10:11:58 bpnm03 python3[4329]: File "", line 219, in _call_with_frames_removed
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/netbox/extras/management/commands/rqworker.py", line 2, in
Jul 22 10:11:58 bpnm03 python3[4329]: from django_rq.management.commands.rqworker import Command as _Command
Jul 22 10:11:58 bpnm03 python3[4329]: File "/opt/netbox/venv/lib64/python3.6/site-packages/django_rq/management/commands/rqworker.py", line 6, in
Jul 22 10:11:58 bpnm03 python3[4329]: from rq import use_connection
Jul 22 10:11:58 bpnm03 python3[4329]: ImportError: cannot import name 'use_connection'
Jul 22 10:11:58 bpnm03 systemd[1]: netbox-rq.service: main process exited, code=exited, status=1/FAILURE
Jul 22 10:11:58 bpnm03 systemd[1]: Unit netbox-rq.service entered failed state.
Jul 22 10:11:58 bpnm03 systemd[1]: netbox-rq.service failed.
[8029@bpnm03 netbox]$ systemctl status netbox
● netbox.service - NetBox WSGI Service
Loaded: loaded (/etc/systemd/system/netbox.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2025-07-22 10:09:18 BST; 9min ago
Docs: https://netbox.readthedocs.io/en/stable/
Main PID: 1303 (gunicorn)
CGroup: /system.slice/netbox.service
├─1303 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
├─1792 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
├─1885 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
├─1922 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
├─1988 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
└─2059 /opt/netbox/venv/bin/python3 /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
Please assist as this Netbox is not been upgraded for over 4 years.
Beta Was this translation helpful? Give feedback.
All reactions