Netbox version upgrade manul update #15066
netbox-elisa
started this conversation in
General
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.
-
Hello
if you install netbox by download archive method and later on want to upgrade it with the latest release download, then there is a step missing in the manual.
Current:
Set $NEWVER to the NetBox version being installed
NEWVER=3.5.0
wget https://github.com/netbox-community/netbox/archive/v$NEWVER.tar.gz
sudo tar -xzf v$NEWVER.tar.gz -C /opt
sudo ln -sfn /opt/netbox-$NEWVER/ /opt/netbox
And after that there are copying the required files. If you dont unlink the old version, you will end up with a broken system. I tried it, upgrade it from 3.7.0 to 3.7.1 and 3.7.2. The upgrade process is successful but the services wont start. The upgrade.sh output starts with:
Using Python 3.10.12
Removing old virtual environment...
Creating a new virtual environment at /opt/netbox-3.7.0/venv...
Updating pip (pip install --upgrade pip)...
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.0.2)
so the virtual environment is created in the old location and the 3.7.1 or 3.7.2 will not have venv folder.
To fix this, there should be a step in the manual:
unlink /opt/netbox
before linking the new version to /opt/netbox. After that the upgrade process is successful.
Beta Was this translation helpful? Give feedback.
All reactions