Replies: 19 comments 18 replies
-
I suspect it is bette rto update from 2.9 to 2.11 and than to 3.0. Than you can run upgrade to 3.1 >> 3.2. It could be much more safe. |
Beta Was this translation helpful? Give feedback.
-
Thank ya! |
Beta Was this translation helpful? Give feedback.
-
I am attempting to upgrade to v2.11.0 and I get this message when running upgrade.sh:
|
Beta Was this translation helpful? Give feedback.
-
Should I step up one version at a time from v2.9.8 to get to v2.11?? |
Beta Was this translation helpful? Give feedback.
-
@candlerb Ok so I went through all the extras tables nothing stood out as incorrect. I decided I would just upgrade to each individual version from v2.9.8. All went well for v2.9.x. When I went to v.2.10.0 I got this error:
Here are the two lines that stood out:
I assume the "Serving Wire Center" option is where the issue is. So I went back to v2.9.11 and worked my way through the circuits until I found this error:
I went to sql export and found this section:
I removed most off the entries in the table and changed the circuit IDs above for obvious reasons, but the error comes from entry #1 in this list. I checked a little over a 100 entries without issue, only the entry related to #1 seems to be the issue but I cannot see where or what the issue is mad about. I am not sure exactly which column, in the table entry it is checking either as entry #1 does not even have the text ATLNGABU. |
Beta Was this translation helpful? Give feedback.
-
@candlerb So after digging through all my various custom fields, the section that was generating this error was missing an entry for ATLNGABU. So I recreated it, then edited the circuit to reference it, and was able to upgrade to v2.10.0 now. |
Beta Was this translation helpful? Give feedback.
-
I got fully upgraded to v2.11.12 without issue. I then tried to upgrade to v3.0.0 and I get this error:
My python version is:
I am unsure what to do from here. |
Beta Was this translation helpful? Give feedback.
-
Here's the output:
I checked and even set the perms for the venv folder to 777 and got the same error. |
Beta Was this translation helpful? Give feedback.
-
Yes I have it installed, this is not a new install. I have been using this same box now for years. I am just doing upgrades to get to the latest version.
|
Beta Was this translation helpful? Give feedback.
-
@markkuleinio Ok....I thought it was doing that automatically via this line:
I will do it manually first and report back. |
Beta Was this translation helpful? Give feedback.
-
I was not able to get into the virtual environment. I got this error:
When I checked the venv directory, this is all I see:
Not being familiar with virtual environments, I am not sure I know how to see if any are actively running. |
Beta Was this translation helpful? Give feedback.
-
Here you go:
|
Beta Was this translation helpful? Give feedback.
-
How is it possible that on a new Ubuntu 20.04 you have an outdated Python 3.6 installed? Sorry, I believe I cannot help you with this, I have never installed NetBox on a server using non-system default Python, someone else probably has better ideas. |
Beta Was this translation helpful? Give feedback.
-
At the moment, I am trying to in-place upgrade the existing Netbox server on 18.04. My thought was, get the SQL db to where it can be imported into the new 20.04 VM with Netbox. |
Beta Was this translation helpful? Give feedback.
-
Yea, I'm already into the upgrades on the existing box. I've made to v2.11.12, I am just trying to get over the 3.0 upgrade now. |
Beta Was this translation helpful? Give feedback.
-
I want to thank you both for all the help. I have successfully moved past another issue and was able to load version v3.1.0. I have done a SQL backup and will be continuing the upgrades to get to the latest and greatest. Then hopefully, a simple SQL export and import into the new server and all will be well. |
Beta Was this translation helpful? Give feedback.
-
Now that I have a working copy of Netbox on v3.1.0. Would you suggest I export the DB and build out v3.1.0 on the new server to continue the upgrades? |
Beta Was this translation helpful? Give feedback.
-
Very happy to report that the upgrade to v3.2.4 was successful. I probably need to go thru some of the sites/devices/etc data and validate but after an initial look, all seems to be well! |
Beta Was this translation helpful? Give feedback.
-
FYI, this post can be closed. Again thank you all for the help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have built a new Ubuntu 20.04 VM and installed NetBox. The install completed successfully and I was able to validate the new install via the web GUI.
I exported the DB from the existing NetBox VM and imported it into the new VM via this command:
sudo -u postgres psql netbox < netbox-v2.9.8-2022-04-26.sql
This completed without error.
Then I ran the upgrade.sh script and received this error.
I am unsure what to do to get past this.
Beta Was this translation helpful? Give feedback.
All reactions