Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various errors when trying to import Netbox data from 3.2.2 #72

Open
Fastrack-BI opened this issue Jun 14, 2022 · 7 comments
Open

Various errors when trying to import Netbox data from 3.2.2 #72

Fastrack-BI opened this issue Jun 14, 2022 · 7 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Fastrack-BI
Copy link

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

@glennmatthews
Copy link
Contributor

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 glennmatthews added bug Something isn't working question Further information is requested labels Jun 14, 2022
@Fastrack-BI
Copy link
Author

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

@glennmatthews
Copy link
Contributor

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?

@Fastrack-BI
Copy link
Author

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
.

@glennmatthews
Copy link
Contributor

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.

@christiankratzer
Copy link

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

@chadell
Copy link
Contributor

chadell commented Jul 24, 2022

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.

@glennmatthews glennmatthews changed the title Allow for importing of Netbox data from 3.2.2 Various errors when trying to import Netbox data from 3.2.2 Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants