Replies: 20 comments 3 replies
-
The plugin does not use the template
Did you upgrade from an earlier version of the plugin? It's possible that browser cache causing this. You can try any combination of: Shift-refresh or Ctrl-F5 Do you get the same result? |
Beta Was this translation helpful? Give feedback.
-
I also find it strange, I did not upgrade from a previous version of the plugin. |
Beta Was this translation helpful? Give feedback.
-
Hi, The problem is present on several different computers and web browsers, so it looks like more server side than client side. |
Beta Was this translation helpful? Give feedback.
-
Thanks @kurdam. I've not been able to reproduce this yet. I did check the 0.3.7 package on PyPi, and it has the correct code, i.e.It points to the correct template So I don't know why after installing via pip it has a reference to the old template name from 0.3.6 Have you tried any of the following pip arguments when installing:
Maybe |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I also looked for the string interfacetypemapping_list.html in all of the netbox folder and i found this : root@netbox:/opt/netbox/netbox# grep -rnw '/opt/netbox/' -e 'interfacetypemapping_list.html' |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the info @kurdam So the template does exist and the view correctly references it. So the install package is correct. Your screen shot shows another template not found: 'add_device_modal.html'. That would suggest the issue might be related to all templates used in the plugin. There are other pages that use templates in the plugin such as 'Site & Location Sync' and 'Device Status' pages. Do they display correctly? Thanks for your assistance. |
Beta Was this translation helpful? Give feedback.
-
You are welcome. Thank you for your help. They looks like they are working correctly. I'm still adding infos from our infrastructure to netbox. Edit: regarding the file add_device_modal.html it is not present on my server but is called in netbox_librenms_plugin/views/sync/devices_sync.py line 18 |
Beta Was this translation helpful? Give feedback.
-
There is a new release 0.3.8. It might be worth trying an uninstall of 0.3.7 and an install of latest 0.3.8. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks again @kurdam. Disappointing to hear it's still not fixed. I'm going to spin up a virtual machine to see if I can replicate the issue, because I really don't understand why it's happening. |
Beta Was this translation helpful? Give feedback.
-
I have found a bug relating to the missing template Are you still getting the missing template error when going to the interface mapping page? |
Beta Was this translation helpful? Give feedback.
-
That's good to hear. Thank you again. |
Beta Was this translation helpful? Give feedback.
-
I can confirm you as well that i have an error if i try to do an interface mapping ex : ethernetCsmacd -> 1000BASE-T (1GE) |
Beta Was this translation helpful? Give feedback.
-
Hello again @kurdam Thanks for your patience. I have just released v0.3.9 which should finally resolve the template errors. |
Beta Was this translation helpful? Give feedback.
-
Thank you, it looks more stable indeed. The only thing is that i'm getting an error "Unknown SNMP version". Do you know why ? Regards. |
Beta Was this translation helpful? Give feedback.
-
I do know why - looks like I introduced a bug in the last release. It is fixed now in v0.3.10 |
Beta Was this translation helpful? Give feedback.
-
I'm getting an error 500 Server Error: Internal Server Error for url: http://librenms.mydomain.lan/api/v0/devices but if i curl this url with my api token i get the list of devices on my librenms. No logs on librenms and nginx on librenms or netbox and apache on netbox regarding this error. |
Beta Was this translation helpful? Give feedback.
-
Hi @kurdam I've changed this to a discussion as the original issues have been closed. In my experience the 500 Server error is returned from the API because the LIbreNMS server can not ping the device with the given hostname/IP. If you can add the same device using LibreNMS GUI using the exact details you entered into the 'Add to LIbreNMS' form, let me know, and we can see if there is a bug. Out of interest are your using SNMP v2 or v3? |
Beta Was this translation helpful? Give feedback.
-
It's working perfectly now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox Librenms Plugin version
0.3.7
NetBox version
v4.2.2
Python version
3.11
Steps to Reproduce
when I create or try to view an interface type mapping. for example when I go to /plugins/librenms_plugin/interface-type-mappings/
Expected Behavior
Observed Behavior
Error in the logs and in the web page :
Beta Was this translation helpful? Give feedback.
All reactions