Django exception for tags

64 views
Skip to first unread message

Denis Tsygankov

unread,
Nov 26, 2020, 3:59:39 AM11/26/20
to NetBox
I get an exception, when trying to view the tags via Organization > Tags:
---------
<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'tag_changelog' with keyword arguments '{'slug': ''}' not found. 1 pattern(s) tried: ['extras/tags/(?P<slug>[^/]+)/changelog/$']

Python version: 3.7.3
NetBox version: 2.9.10
---------Screenshot_2020-11-26_11-54-36.png
API request is successfull.

Brian Candler

unread,
Nov 26, 2020, 5:41:55 AM11/26/20
to NetBox
You have a tag with an empty slug.  Did you upgrade from an older version of Netbox?  This used to occur in old versions of Netbox if the tag consisted entirely of non-ASCII unicode characters.  It *shouldn't* happen now, but if you have a way to reproduce it, please raise a github ticket.

To find and fix the problem:

- go into postgres (in Ubuntu: "sudo -u postgres psql netbox")

- try these queries:

select * from extras_tag;
select * from extras_tag where slug='';

- to update, choose a new slug:

update extras_tag set slug='xxx' where slug='';

sharlino

unread,
Nov 26, 2020, 6:19:37 AM11/26/20
to Brian Candler, NetBox
Thank you Brian! For some reason there was a tag with empty slug. Fixed that one according to your post and problem is gone.

By the way:

>>Did you upgrade from an older version of Netbox?
Yes, I did.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/61395861-ab51-4c07-ad7c-990524ef571an%40googlegroups.com.

С уважением,
Денис Цыганков
Reply all
Reply to author
Forward
0 new messages