Topology Maps: There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly. #1298

Closed
opened 2025-12-29 16:31:11 +01:00 by adam · 11 comments
Owner

Originally created by @omen89 on GitHub (Oct 13, 2017).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: 2.1.6

Description

Hello!

Error when opening some "Topology Maps" -> There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

In stderr log:
dot: class2.c:104: make_chain: Assertion `(((Agedgeinfo_t*)(((Agobj_t*)(orig))->data))->to_virt) != ((void *)0)' failed.

[root@server~]# pip show graphviz
Name: graphviz
Version: 0.8
Summary: Simple Python interface for Graphviz
Home-page: https://github.com/xflr6/graphviz
Author: Sebastian Bank
Author-email: sebastian.bank@uni-leipzig.de
License: MIT
Location: /usr/lib/python2.7/site-packages
Requires:

Originally created by @omen89 on GitHub (Oct 13, 2017). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. If none of the below apply, please raise your issue for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. ---> ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [X] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) --> ### Environment * Python version: 2.7.5<!-- Example: 3.5.4 --> * NetBox version: 2.1.6<!-- Example: 2.1.3 --> <!-- BUG REPORTS must include: * A list of the steps needed to reproduce the bug * A description of the expected behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description Hello! Error when opening some "Topology Maps" -> There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly. In stderr log: dot: class2.c:104: make_chain: Assertion `(((Agedgeinfo_t*)(((Agobj_t*)(orig))->data))->to_virt) != ((void *)0)' failed. [root@server~]# pip show graphviz Name: graphviz Version: 0.8 Summary: Simple Python interface for Graphviz Home-page: https://github.com/xflr6/graphviz Author: Sebastian Bank Author-email: sebastian.bank@uni-leipzig.de License: MIT Location: /usr/lib/python2.7/site-packages Requires:
adam closed this issue 2025-12-29 16:31:11 +01:00
Author
Owner

@candlerb commented on GitHub (Oct 13, 2017):

You have a bad / corrupt version of Graphviz. Type dot -V at the command line to see what version you have.

I use graphviz package 2.38.0-12ubuntu2.1 under Ubuntu 16.04 and it's fine.

@candlerb commented on GitHub (Oct 13, 2017): You have a bad / corrupt version of Graphviz. Type `dot -V` at the command line to see what version you have. I use graphviz package 2.38.0-12ubuntu2.1 under Ubuntu 16.04 and it's fine.
Author
Owner

@jeremystretch commented on GitHub (Oct 13, 2017):

If you need further assistance, please post to our mailing list.

@jeremystretch commented on GitHub (Oct 13, 2017): If you need further assistance, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss).
Author
Owner

@omen89 commented on GitHub (Oct 16, 2017):

Thank you! I`m add official repo Graphviz for my CentOS 7 and update to version 2.38.0. And all fine, topology maps work!

@omen89 commented on GitHub (Oct 16, 2017): Thank you! I`m add official repo Graphviz for my CentOS 7 and update to version 2.38.0. And all fine, topology maps work!
Author
Owner

@KempWatson commented on GitHub (Jun 19, 2018):

I'm getting this too, on CentOS. dot -v says everything is fine, Graphvis 2.30 latest

@KempWatson commented on GitHub (Jun 19, 2018): I'm getting this too, on CentOS. dot -v says everything is fine, Graphvis 2.30 latest
Author
Owner

@candlerb commented on GitHub (Jun 19, 2018):

dot -v says everything is fine

No, that just tells you you have some version of dot. CentOS probably has too old a version in the stock repos to work with netbox. As others have already suggested: upgrade to version 2.38.0.

@candlerb commented on GitHub (Jun 19, 2018): > dot -v says everything is fine No, that just tells you you have *some* version of dot. CentOS probably has too old a version in the stock repos to work with netbox. As others have already suggested: upgrade to version 2.38.0.
Author
Owner

@EduardoFarias04 commented on GitHub (Jul 10, 2018):

hello

i have this error, but my system in netbox is 2.3.5, python 3.6.3 and graphviz 2.30.
later the make upgrade continue with the Error when opening some "Topology Maps" -> There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

sorry my English, pls help me!

@EduardoFarias04 commented on GitHub (Jul 10, 2018): hello i have this error, but my system in netbox is 2.3.5, python 3.6.3 and graphviz 2.30. later the make upgrade continue with the Error when opening some "Topology Maps" -> There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly. sorry my English, pls help me!
Author
Owner

@candlerb commented on GitHub (Jul 10, 2018):

graphviz 2.30.

Too old. Upgrade to 2.38.0

@candlerb commented on GitHub (Jul 10, 2018): > graphviz 2.30. Too old. Upgrade to 2.38.0
Author
Owner

@EduardoFarias04 commented on GitHub (Jul 10, 2018):

i maked update for 2.38.
But continue with the error : here was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

pls help, a light.

@EduardoFarias04 commented on GitHub (Jul 10, 2018): i maked update for 2.38. But continue with the error : here was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly. pls help, a light.
Author
Owner

@candlerb commented on GitHub (Jul 10, 2018):

I think you need to read http://www.catb.org/~esr/faqs/smart-questions.html#intro

It works for everyone else, but not for you. Therefore the problem is likely to be at your side. We are not in front of your computer, so you need to look for information to diagnose the problem, or else we cannot help you.

Firstly, you haven't even said what OS you are running under. Then you didn't say where you got the updated graphviz package from, or how you installed it. How sure are you that you upgraded it correctly? What does dot -V show? You haven't looked for any logs.

Try running netbox in its local debugging webserver. Edit /opt/netbox/netbox/netbox/configuration.py, change DEBUG = False to DEBUG = True, then start server like this:

python3 manage.py runserver '[::]:8000' --insecure --noreload

Point browser at http://yourmachine:8000/

Do whatever causes the error, then copy-paste what you get from the web server session.

@candlerb commented on GitHub (Jul 10, 2018): I think you need to read http://www.catb.org/~esr/faqs/smart-questions.html#intro It works for everyone else, but not for you. Therefore the problem is likely to be at your side. We are not in front of your computer, so you need to look for information to diagnose the problem, or else we cannot help you. Firstly, you haven't even said what OS you are running under. Then you didn't say where you got the updated graphviz package from, or how you installed it. How sure are you that you upgraded it correctly? What does `dot -V` show? You haven't looked for any logs. Try running netbox in its local debugging webserver. Edit `/opt/netbox/netbox/netbox/configuration.py`, change `DEBUG = False` to `DEBUG = True`, then start server like this: ``` python3 manage.py runserver '[::]:8000' --insecure --noreload ``` Point browser at http://yourmachine:8000/ Do whatever causes the error, then copy-paste what you get from the web server session.
Author
Owner

@andreitoupinets commented on GitHub (Jul 27, 2018):

Hi,
I had same problem, DEBUG=True doesn't help.
It's default error for every failed call of tmap.render(img_format=img_format) in file extras/api/views.py

So, when I move this call out from try/except block, I found source of problem from normal django exception, it was wrong regex in device pattern.

@andreitoupinets commented on GitHub (Jul 27, 2018): Hi, I had same problem, DEBUG=True doesn't help. It's default error for every failed call of tmap.render(img_format=img_format) in file extras/api/views.py So, when I move this call out from try/except block, I found source of problem from normal django exception, it was wrong regex in device pattern.
Author
Owner

@jeremystretch commented on GitHub (Jul 27, 2018):

I'm locking this thread. GitHub issues are for development only. Pleaese use the mailing list for support problems as I instructed above.

@jeremystretch commented on GitHub (Jul 27, 2018): I'm locking this thread. GitHub issues are for development only. Pleaese use the mailing list for support problems as I instructed above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1298