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

Plugin errors after upgrading Netbox to version 3.7.2 #141

Open
wuetz opened this issue Feb 21, 2024 · 6 comments
Open

Plugin errors after upgrading Netbox to version 3.7.2 #141

wuetz opened this issue Feb 21, 2024 · 6 comments

Comments

@wuetz
Copy link

wuetz commented Feb 21, 2024

As the title states out, we upgraded Netbox from 3.3.1 to 3.7.2.
In 3.3.1 no issues were recognized.
During the upgrade process of netbox ( at the step where upgrade.sh is triggered see: https://docs.netbox.dev/en/stable/installation/upgrading/ ) we received the first errors:

Applying database migrations (python3 netbox/manage.py migrate)...
SystemCheckError: System check identified some issues:

ERRORS:
nextbox_ui_plugin.SavedTopology.created_by: (fields.E300) Field defines a relation with model 'users.AdminUser', which is either not installed, or is abstract.
nextbox_ui_plugin.SavedTopology.created_by: (fields.E307) The field nextbox_ui_plugin.SavedTopology.created_by was declared with a lazy reference to 'users.adminuser', but app 'users' doesn't provide model 'adminuser'.

I was able to successfully do the netbox upgarde by disabling the plugin in the configuration.py. Then I re-enabled the plugin. But as soon as netbox-rq is getting started started the very same errors appear in the logs:

Feb 21 11:34:58 netbox-prod-web systemd[1]: Started NetBox Request Queue Worker.
Feb 21 11:35:04 netbox-prod-web python3[4116059]: SystemCheckError: System check identified some issues:
Feb 21 11:35:04 netbox-prod-web python3[4116059]: ERRORS:
Feb 21 11:35:04 netbox-prod-web python3[4116059]: nextbox_ui_plugin.SavedTopology.created_by: (fields.E300) Field defines a relation with model 'users.AdminUser', which is either not installed, or is abstr>
Feb 21 11:35:04 netbox-prod-web python3[4116059]: nextbox_ui_plugin.SavedTopology.created_by: (fields.E307) The field nextbox_ui_plugin.SavedTopology.created_by was declared with a lazy reference to 'users>

The netbox-rq service is diing periodically.

env) root@netbox-prod-web:/opt# pip3 install nextbox-ui-plugin
Requirement already satisfied: nextbox-ui-plugin in ./netbox-3.7.2/venv/lib/python3.8/site-packages (0.13.0)

Any remarks on this?

@cslSWds07
Copy link

I can confirm that I'm seeing the same thing with a new install with Netbox 3.7.3.

@DanSheps
Copy link

DanSheps commented Mar 7, 2024

I have forked, updated for 3.7 and re-published the plugin as netbox-topology-plugin.

I have not made an effort to import in any existing plugin settings though, however if you want you could simply dump the old table and import it into the new table.

@lono0778
Copy link

lono0778 commented Apr 5, 2024

I am not able to clone the repo:
remote: Repository not found.
fatal: repository 'https://github.com/DanSheps/netbox-topology-plugin-plugin/' not found

@bogdancordos
Copy link

I managed to install the forked repo from @DanSheps using netbox-topology-plugin instead of netbox-topology-plugin-plugin

@lono0778
Copy link

lono0778 commented Apr 8, 2024

thanks Bogdan, that was actually the issue - didn't validate it, just copy/paste

@iDebugAll
Copy link
Owner

Thanks everyone for you patience. I've just released a compatibility fix for NetBox 3.6, 3.7, and newly released 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants