netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.2k stars 2.59k forks source link

netbox upgrade to #14641

Closed tedserreyn closed 10 months ago

tedserreyn commented 10 months ago

Deployment Type

Self-hosted

NetBox Version

V3.7.0

Python Version

3.9

Steps to Reproduce

upgrade existing 3.6.9 install git sync; git checkout master; git pull origin master

run script

./upgrade.sh

restart things

systemctl restart netbox netbox-rq #

Expected Behavior

I expected upgrade to complete successfully.

Observed Behavior

upgrade script failed Successfully installed bcrypt-4.1.2 dnspython-2.4.2 future-0.18.3 importlib-metadata-4.13.0 ipaddress-1.0.23 jsonschema-3.2.0 macaddress-2.0.2 mypy_extensions-0.4.4 n2g-0.3.3 netbox-ddns-1.2.9 netbox-topology-views-3.8.1 netdoc-3.5.18 netmiko-4.1.2 nornir-3.3.0 nornir-netmiko-0.2.0 nornir-utils-0.2.0 ntc-templates-4.1.0 ouilookup-0.2.4 paramiko-3.4.0 pynacl-1.5.0 pyrsistent-0.20.0 pyserial-3.5 python-slugify-8.0.1 pyvmomi-8.0.1.0.1 ruamel.yaml-0.18.5 ruamel.yaml.clib-0.2.8 scp-0.14.5 tenacity-8.2.3 textfsm-1.1.2 xmltodict-0.13.0 Applying database migrations (python3 netbox/manage.py migrate)... Traceback (most recent call last): File "/opt/netbox/netbox/manage.py", line 10, in execute_from_command_line(sys.argv) File "/opt/netbox/venv/lib/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() File "/opt/netbox/venv/lib/python3.9/site-packages/django/core/management/init.py", line 416, in execute django.setup() File "/opt/netbox/venv/lib/python3.9/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/opt/netbox/venv/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate app_config.import_models() File "/opt/netbox/venv/lib/python3.9/site-packages/django/apps/config.py", line 269, in import_models self.models_module = import_module(models_module_name) File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/opt/netbox/venv/lib/python3.9/site-packages/netbox_topology_views/models.py", line 13, in from netbox.models.features import ( ImportError: cannot import name 'WebhooksMixin' from 'netbox.models.features' (/opt/netbox/netbox/netbox/models/features.py)

abhi1693 commented 10 months ago

This is not a bug with netbox but with the topology views plugin.

ekrichbaum commented 10 months ago

https://github.com/mattieserver/netbox-topology-views/issues/430 You can patch it yourself with ThomasADavis' work or wait until the plugin is updated for 3.7.

tedserreyn commented 10 months ago

Fixed and resolved.

From: Eric Krichbaum @.> Date: Friday, December 29, 2023 at 4:04 PM To: netbox-community/netbox @.> Cc: Ted Serreyn @.>, Author @.> Subject: Re: [netbox-community/netbox] netbox upgrade to (Issue #14641)

mattieserver/netbox-topology-views#430https://github.com/mattieserver/netbox-topology-views/issues/430 You can patch it yourself with ThomasADavis' work or wait until the plugin is updated for 3.7.

— Reply to this email directly, view it on GitHubhttps://github.com/netbox-community/netbox/issues/14641#issuecomment-1872363296, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJPJXBN5HQM6I3QR5SB5Z3YL446PAVCNFSM6AAAAABBG7ZH5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGM3DGMRZGY. You are receiving this because you authored the thread.Message ID: @.***>