Skip to content

Is it safe to run upgrade.sh at any point? #7946

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

You must be logged in to vote

If you run the full ./upgrade.sh then it will destroy the existing virtualenv and recreate it. There's no particular harm, but it will delay your instance startup while it unpacks a whole load of python packages and recreates the virtualenv.

Actually, there is a risk worth mentioning. Because Netbox doesn't "pip freeze" its dependencies, rebuilding the virtualenv may download a newer and incompatible version of one of Netbox's indirect dependencies. If you are running up-to-date Netbox then the risk is fairly low. The older the Netbox that you're running, the higher the chance that you will get bitten by this.

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
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