nautobot-app-netbox-importer icon indicating copy to clipboard operation
nautobot-app-netbox-importer copied to clipboard

Various errors when trying to import Netbox data from 3.2.2

Open Fastrack-BI opened this issue 3 years ago • 7 comments
trafficstars

Environment

  • Python version:
  • Nautobot version:
  • nautobot-netbox-importer version:

Expected Behavior

Import data fine

Observed Behavior

Redis errors

Steps to Reproduce

  1. Export data from current netbox 3.2.2:

python netbox/manage.py dumpdata
--traceback --format=json
--exclude admin.logentry --exclude sessions.session
--exclude extras.ObjectChange --exclude extras.Script --exclude extras.Report
> /tmp/netbox_data.json 2. Setup nautobot on fresh server as per documentation (Install pre-requests + nautobox upto the nautobot-server migrate step 3. copy the netbox data to new server 4. nautobot-server import_netbox_json /tmp/netbox_data.json 2.10.3 5. Random redis error - full error attached

log.txt

Fastrack-BI avatar Jun 14 '22 07:06 Fastrack-BI

Looks like you're using Python 3.6 - latest versions of Nautobot do not support Python 3.6 any more, and various dependencies have also dropped Python 3.6 support as well. Can you retry with a more recent Python version? Also, can you confirm what Nautobot version you're trying to import into?

glennmatthews avatar Jun 14 '22 12:06 glennmatthews

Recreated steps using Python 3.8 Same error edis.exceptions.ResponseError: Error running script (call to f_0605214935a9ffcd4b9e5779300302540ff08da4): @user_script:36: @user_script: 36: Unknown Redis command called from Lua script Installing onto nautobot v1.3.6

Fastrack-BI avatar Jun 14 '22 23:06 Fastrack-BI

Some googling suggests that maybe this could indicate that your Redis server is running an older version than is required. I believe 4.0 is currently the minimum required version. Can you check that?

glennmatthews avatar Jun 15 '22 12:06 glennmatthews

Looks like the Redis was 'an' issue. the default yum redis version was 3.6 something. Updated to latest but still getting some data validation/mismatch errors. This was while migrating some tokens across

error.txt .

Fastrack-BI avatar Jun 16 '22 06:06 Fastrack-BI

That error looks like something's off about your database migration status - column "advanced_ui" of relation "extras_customfield" does not exist suggests to me that you haven't run migration 0025_add_advanced_ui_boolean_to_customfield_conputedfield_and_relationship before running the plugin.

glennmatthews avatar Jun 23 '22 16:06 glennmatthews

Getting this trying to import an export from netbox 3.2.7 to nautobot 1.3.8

nautobot@fc59e4d682b3:~$ nautobot-server import_netbox_json /tmp/netbox_data.json 3.2.7 CommandError: Maximum NetBox version supported is 2.10.8

christiankratzer avatar Jul 24 '22 12:07 christiankratzer

Getting this trying to import an export from netbox 3.2.7 to nautobot 1.3.8

fc59e4d682b3:~$ nautobot-server import_netbox_json /tmp/netbox_data.json 3.2.7 CommandError: Maximum NetBox version supported is 2.10.8

Hi @christiankratzer , Netbox 2.10.8 is the current maximum supported version, but we are actively working on extending support to newer versions.

chadell avatar Jul 24 '22 16:07 chadell