Skip to content

Upgrade v2.11.12 to v3.0.2 #7256

Answered by candlerb
dman4cloud asked this question in Q&A
Discussion options

You must be logged in to vote

Sep 13 14:11:17 cmdb python3: File "/usr/local/lib/python3.7/site-packages/django/core/management/init.py

This shows that you're not running Netbox inside its virtualenv. It's picking up packages from the host instead.

Almost certainly the problem is in your netbox.service and netbox-rq.service. They should look like the ones in the contrib directory, especially these lines:

# netbox.service
ExecStart=/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
# netbox-rq.service
ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py rqworker high default low

Note: after changing these files (i.e. /e…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dman4cloud
Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants