DanSheps / netbox-config-backup

A configuration backup system using napalm
Apache License 2.0
89 stars 7 forks source link

Could not resolve URL for hyperlinked relationship using view name "plugins-api:netbox_sync-api:sync-detail" #69

Closed telematiko closed 1 year ago

telematiko commented 1 year ago

Plugin version

1.4.5

NetBox version

3.5.3

Python version

3.9

Steps to Reproduce

  1. In Netbox open edit backup job view and press "Save" button or delete backup job.

Expected Behavior

The backup job must be updated or deleted.

Observed Behavior

An exception is thrown:

<class 'django.core.exceptions.ImproperlyConfigured'>

Could not resolve URL for hyperlinked relationship using view name "plugins-api:netbox_sync-api:sync-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.

Python version: 3.10.7
NetBox version: 3.5.3
michelroegl-brunner commented 1 year ago

+1 I have installed the plugin today and got the exact same issue. i´d love to have a solution, i really want to try that plugin.

DanSheps commented 1 year ago

Looks like it might be pulling in from an internal plugin.

I will take a look and push out an update later today.

michelroegl-brunner commented 1 year ago

Hi! Thank you for the quick fix. I could need some help for updating the plugin, i´m kind of a noob here. I tried to update via pip install --upgrade but it did not change a thing. Could someone maybe point me in the right direction? Thanks!

telematiko commented 1 year ago

Hi! Thank you for the quick fix. I could need some help for updating the plugin, i´m kind of a noob here. I tried to update via pip install --upgrade but it did not change a thing. Could someone maybe point me in the right direction? Thanks!

Hi @HTLBraunau !

Do you activate netbox virtualenv before upgrade plugin?

# source /opt/netbox/venv/bin/activate

Also you can check installed version of the plugin in virtualenv:

# pip show netbox-config-backup

Try upgrade the plugin with this command:

# /opt/netbox/venv/bin/pip install -U netbox-config-backup

Don't forget restart netbox

# systemctl restart netbox
michelroegl-brunner commented 1 year ago

Yes i did enable the venv! But i didn´t quite get the pip command right. with the flag -U it did work flawlessly. Thank you very much @exec-to!