Migrating netbox v3.6.5 on bare vm to a container v4.0-2.9.1 #16544
Replies: 1 comment
-
Firstly, you need to upgrade to v3.7 before upgrading to v4.0. Secondly, whether that is sufficient to fix your problem I don't know, because:
There is no file called "netbox-data.json" in either the main netbox repo or the netbox-docker repo; nor does the string "netbox-data" appear in either of those repos. So I have no idea what's happening - although you didn't say which "manage.py" subcommand you were running either. Do you have any plugins or custom scripts configured? They often break. In any case, a simple postgres restore of the database should work. If it doesn't, and you say it gives you a "bunch of errors" (which you didn't show) then you need to sort out that problem before continuing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to migrate a netbox thats currently hosted on Ubuntu 20.04 thats installed on the host to a different host 22.04 and containerized the netbox application.
I setup the new netbox container using this documentation
https://github.com/netbox-community/netbox-docker
and now I like to migrate the existing database to the container netbox application.
When I try to migrate the database and using these steps
I get bunch of errors saying the table doesnt exist or if I use the manage.py in the containerized netbox to load the data that was dump from the original netbox instance. I get
Do I need to upgrade the old netbox thats hosted on the vm before migrating to the new containerized netbox? Or any other way to do this?
Beta Was this translation helpful? Give feedback.
All reactions