HTML code when creating device role? #881

Closed
opened 2025-12-29 16:26:37 +01:00 by adam · 6 comments
Owner

Originally created by @mzac on GitHub (Apr 22, 2017).

Issue type: Bug

Python version: 2.7.12
NetBox version: 1.9.5

I just added a device role and in the green box after creation I got this:

Created device role <a href="/dcim/devices/?role=storage">Storage</a> Add a device role

Originally created by @mzac on GitHub (Apr 22, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: Bug <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 2.7.12 **NetBox version:** 1.9.5 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> I just added a device role and in the green box after creation I got this: `Created device role <a href="/dcim/devices/?role=storage">Storage</a> Add a device role `
adam closed this issue 2025-12-29 16:26:37 +01:00
Author
Owner

@mzac commented on GitHub (Apr 22, 2017):

Same when creating a device type:

Created device type <a href="/dcim/device-types/6/">DS216J</a>

@mzac commented on GitHub (Apr 22, 2017): Same when creating a device type: `Created device type <a href="/dcim/device-types/6/">DS216J</a> `
Author
Owner

@jeremystretch commented on GitHub (Apr 24, 2017):

Looks potentially related to #1061, but that change was made in 1.9.6. Please upgrade to 1.9.6 and see if it resolves the issue.

@jeremystretch commented on GitHub (Apr 24, 2017): Looks potentially related to #1061, but that change was made in 1.9.6. Please upgrade to 1.9.6 and see if it resolves the issue.
Author
Owner

@mzac commented on GitHub (Apr 24, 2017):

Hmm.. ok I think I'm running 1.9.6, however at the bottom of the screen it still shows 1.9.5, even if I try flushing my browser, incognito, different browser... but when I look in settings:

root@netbox1:~# grep VERSION /opt/netbox/netbox/netbox/settings.py
VERSION = '1.9.6'

Am I missing something?

root@netbox1:/opt/netbox# git pull
Already up-to-date.
root@netbox1:/opt/netbox# cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = https://github.com/digitalocean/netbox.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
@mzac commented on GitHub (Apr 24, 2017): Hmm.. ok I think I'm running 1.9.6, however at the bottom of the screen it still shows 1.9.5, even if I try flushing my browser, incognito, different browser... but when I look in settings: <pre> root@netbox1:~# grep VERSION /opt/netbox/netbox/netbox/settings.py VERSION = '1.9.6' </pre> Am I missing something? <pre> root@netbox1:/opt/netbox# git pull Already up-to-date. </pre> <pre> root@netbox1:/opt/netbox# cat .git/config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/digitalocean/netbox.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master </pre>
Author
Owner

@jeremystretch commented on GitHub (Apr 24, 2017):

Did you restart the WSGI service after upgrading? E.g. supervisorctl restart netbox?

@jeremystretch commented on GitHub (Apr 24, 2017): Did you restart the WSGI service after upgrading? E.g. `supervisorctl restart netbox`?
Author
Owner

@mzac commented on GitHub (Apr 25, 2017):

Ok yes restarting 'supervisor' did the trick for me! I don't see the HTML code anymore.

I wonder if adding a note to the upgrade.sh to restart it manually or having it check to see if we are using supervisor and restart it?

@mzac commented on GitHub (Apr 25, 2017): Ok yes restarting 'supervisor' did the trick for me! I don't see the HTML code anymore. I wonder if adding a note to the upgrade.sh to restart it manually or having it check to see if we are using supervisor and restart it?
Author
Owner

@jeremystretch commented on GitHub (Apr 25, 2017):

Restarting the WSGI service is already called out pretty prominently in the docs. Unfortunately it's not something we can automate because not everyone implements it the same way.

@jeremystretch commented on GitHub (Apr 25, 2017): Restarting the WSGI service is already called out pretty prominently [in the docs](http://netbox.readthedocs.io/en/stable/installation/upgrading/). Unfortunately it's not something we can automate because not everyone implements it the same way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#881