upgrade.sh requires running from netbox install directory #2578

Closed
opened 2025-12-29 18:20:06 +01:00 by adam · 0 comments
Owner

Originally created by @austin987 on GitHub (May 2, 2019).

Environment

  • Python version: 3.6.5
  • NetBox version: 2.5.9

Steps to Reproduce

  1. cd /
  2. /opt/netbox/upgrade.sh

Expected Behavior

Upgrade proceeds

Observed Behavior

austin-vm1 ~ # /opt/netbox/upgrade.sh 
Applying database migrations (python3 netbox/manage.py migrate)...
/usr/lib/python-exec/python3.6/python3: can't open file 'netbox/manage.py': [Errno 2] No such file or directory
Collecting static files (python3 netbox/manage.py collectstatic --no-input)...
/usr/lib/python-exec/python3.6/python3: can't open file 'netbox/manage.py': [Errno 2] No such file or directory
Originally created by @austin987 on GitHub (May 2, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.5 * NetBox version: 2.5.9 ### Steps to Reproduce 1. cd / 2. /opt/netbox/upgrade.sh ### Expected Behavior Upgrade proceeds <!-- What happened instead? --> ### Observed Behavior ``` austin-vm1 ~ # /opt/netbox/upgrade.sh Applying database migrations (python3 netbox/manage.py migrate)... /usr/lib/python-exec/python3.6/python3: can't open file 'netbox/manage.py': [Errno 2] No such file or directory Collecting static files (python3 netbox/manage.py collectstatic --no-input)... /usr/lib/python-exec/python3.6/python3: can't open file 'netbox/manage.py': [Errno 2] No such file or directory ```
adam added the type: bugstatus: accepted labels 2025-12-29 18:20:06 +01:00
adam closed this issue 2025-12-29 18:20:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2578