Replies: 3 comments 8 replies
-
By replicating, do you mean copying across the entire database? So any existing data in the prod server will be thrown away, and replaced entirely by data from the test server? If so: then after you've replicated the database to prod, you'll need to run If it were me, I would prefer upgrading the test server to 3.1.6 first, and then replicating to prod. After all, the whole point of a test server is to check that changes are good before you roll them out to production :-) If you don't want to throw away the existing data from prod, then you'll need to be much more specific about what sort of "replication" you want to do, as it may be very difficult to achieve. |
Beta Was this translation helpful? Give feedback.
-
So the new prod was just a blank install, I'm doing a lift & shift of the db essentially. So yea I didn't run the Netbox script prior to moving the db to the new instance. (I've attached a snippet of the error logs). I mean from an IPAM perspective all rows copied over perfectly, the Inventory didn't, if I manually add the inventory will this work? OR Will running the upgrade script & doing the same steps work? netbox db errors.txt Thanks again. |
Beta Was this translation helpful? Give feedback.
-
That doesn't sound to good. I mean I just dumped the db as is & then tried
to update using the provided steps. Getting someone with postgres knowledge
could be an issue, is that the only alternative?
Running the upgrader script & trying the same steps will not work? Or
wiping the server & starting fresh?
The postgres verstion is the same for the 2 devices.
(12.9 (Ubuntu 12.9-0ubuntu0.20.04.1))
(12.9 (Ubuntu 12.9-0ubuntu0.20.04.1))
Apologies for asking the same questions but not that familiar with this
stuff.
Also yes, what I mean every row for IPAM came over, Device Manufacturers &
Roles did also but not Devices & Device Types.
Thanks
…On Thu, Feb 3, 2022 at 9:51 PM Brian Candler ***@***.***> wrote:
Those errors are terrible. Your sql dump has been mangled somehow, and all
the duplicate key stuff and "relation already exists" is indication of a
major problem. I think you need someone on site who knows postgres to look
over the database dump, and the target system, and work out what's wrong.
Also, make sure you're using compatible versions of Postgres; Netbox needs
at leas Postgres 10.
I don't actually know what you mean by "The Inventory". Do you mean that
Devices are missing? (Netbox also has something called "Inventory Items"
but they sit inside Devices). Given that heap of errors, I'd be surprised
if anything has made it across. That's where you need to focus your efforts.
—
Reply to this email directly, view it on GitHub
<#8534 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUHI2LMJ5I3KC5JET26453DUZL2GXANCNFSM5NORKVEA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm about to replicate Netbox from an existing test server to a new Prod server, the test version is (v3.0.1) & the new version is (v3.1.6)
should this be seamless of do I need to do any in-between steps?
Thanks
Barry
Beta Was this translation helpful? Give feedback.
All reactions