Netbox Migration #11253
Unanswered
Snowbull08
asked this question in
Q&A
Netbox Migration
#11253
Replies: 2 comments 13 replies
-
You will probably need to read through the release notes for each major version from 2.1 to 2.11 to 3.4 as there may be steps you need to complete, eg. upgrade to a current version of PostgreSQL, but the major one is that 3.x doesn't include the db migration scripts from 2.x prior to 2.11.x, so you have to do a stepwise upgrade to 2.11.x first, and then you can upgrade to current. Other people who've had to refresh an older instance like this have shared some notes in this mailing list which you may be able to search for, common problems are that pip install will grab the latest of everything, but that often installs versions of dependencies than the old version of Netbox was tested against and isn't compatible with, so you have to pin an older version in requirements.txt.
I would start by using the PostgreSQL tools (pg_dump) to dump the database on the old system, then install 2.11.x on a new system, get that working, then restore the old 2.1 database onto that new system and run the upgrade.sh script as documented for any upgrade. Then you can upgrade the new system to the latest Netbox and run the upgrade procedure again to get a new system with a new 3.4.x database. If you run into any problems, you can always start over and try again, as you haven't broken the existing Netbox 2.1 install you are relying on.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: Snowbull08 ***@***.***>
Sent: Monday, December 19, 2022 11:43 PM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] Netbox Migration (Discussion #11253)
Hi, I am new to Netbox, and in my new Job, we have Netbox 2.1.5 installed on Ubuntu 16. Notes from my predecessor advise that all upgrade paths weren't fruitful. Please suggest the migration path from 2.1.5 to the latest version.
—
Reply to this email directly, view it on GitHub<#11253>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UMZONX2UKXQCRXEBDMDWOFBR3ANCNFSM6AAAAAATEDOQ44>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Please consult the official documentation rather than relying on your predecessor's notes. If you abide by the upgrade instructions carefully you're unlikely to encounter any issues. |
Beta Was this translation helpful? Give feedback.
12 replies
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.
-
Hi, I am new to Netbox, and in my new Job, we have Netbox 2.1.5 installed on Ubuntu 16. Notes from my predecessor advise that all upgrade paths weren't fruitful. Please suggest the migration path from 2.1.5 to the latest version.
Beta Was this translation helpful? Give feedback.
All reactions