Development instance throwing dot_parser error #20

Closed
opened 2025-12-29 15:29:47 +01:00 by adam · 4 comments
Owner

Originally created by @netman2048 on GitHub (Jun 27, 2016).

I'm trying to install Netbox on a minimal Centos 7 system and having some issues when I go to launch the development instance. It launches and says no issues were identified however it throws a 'Couldn't import dot_parser, loading of dot files will not be possible.' error. When I browse to the website, I get a Bad Request (400) error.

sudo ./manage.py runserver 0.0.0.0:8000 --insecure
Performing system checks...

Couldn't import dot_parser, loading of dot files will not be possible.
System check identified no issues (0 silenced).
June 27, 2016 - 19:07:50
Django version 1.9.7, using settings 'netbox.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[27/Jun/2016 19:07:51] "GET / HTTP/1.1" 400 26
[27/Jun/2016 19:07:52] "GET /favicon.ico HTTP/1.1" 400 26
[27/Jun/2016 19:07:53] "GET / HTTP/1.1" 400 26
[27/Jun/2016 19:07:53] "GET /favicon.ico HTTP/1.1" 400 26

In order to get to this point, I had to install additional dependencies such as gcc, openssl-devel, and postgresql-devel at which point I got past pip install section. Not sure what to troubleshoot at this point.

Originally created by @netman2048 on GitHub (Jun 27, 2016). I'm trying to install Netbox on a minimal Centos 7 system and having some issues when I go to launch the development instance. It launches and says no issues were identified however it throws a 'Couldn't import dot_parser, loading of dot files will not be possible.' error. When I browse to the website, I get a Bad Request (400) error. ``` sudo ./manage.py runserver 0.0.0.0:8000 --insecure Performing system checks... Couldn't import dot_parser, loading of dot files will not be possible. System check identified no issues (0 silenced). June 27, 2016 - 19:07:50 Django version 1.9.7, using settings 'netbox.settings' Starting development server at http://0.0.0.0:8000/ Quit the server with CONTROL-C. [27/Jun/2016 19:07:51] "GET / HTTP/1.1" 400 26 [27/Jun/2016 19:07:52] "GET /favicon.ico HTTP/1.1" 400 26 [27/Jun/2016 19:07:53] "GET / HTTP/1.1" 400 26 [27/Jun/2016 19:07:53] "GET /favicon.ico HTTP/1.1" 400 26 ``` In order to get to this point, I had to install additional dependencies such as gcc, openssl-devel, and postgresql-devel at which point I got past pip install section. Not sure what to troubleshoot at this point.
adam closed this issue 2025-12-29 15:29:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 27, 2016):

You can safely ignore the Couldn't import dot_parser errors.

Make sure you're connecting to http://localhost:8000/ to access the development server. You can try adding DEBUG = True to the top of configuration.py to get more information.

@jeremystretch commented on GitHub (Jun 27, 2016): You can safely ignore the `Couldn't import dot_parser` errors. Make sure you're connecting to http://localhost:8000/ to access the development server. You can try adding `DEBUG = True` to the top of configuration.py to get more information.
Author
Owner

@netman2048 commented on GitHub (Jun 27, 2016):

I resolved the dot_parser errors by uninstalling pyparsing and reinstalling with pyparsing 1.5.7 but since you said I can ignore it, I will likely upgrade it again.

Now here is the interesting part....if I add the debug statement, the web interface loads correct. When I take it off, I get the Bad Request (400) error.

@netman2048 commented on GitHub (Jun 27, 2016): I resolved the dot_parser errors by uninstalling pyparsing and reinstalling with pyparsing 1.5.7 but since you said I can ignore it, I will likely upgrade it again. Now here is the interesting part....if I add the debug statement, the web interface loads correct. When I take it off, I get the Bad Request (400) error.
Author
Owner

@jeremystretch commented on GitHub (Jun 27, 2016):

Could be your ALLOWED_HOSTS setting in configuration.py. What do you have it set to?

See if it works in non-debug mode with ALLOWED_HOSTS = ['*'].

@jeremystretch commented on GitHub (Jun 27, 2016): Could be your `ALLOWED_HOSTS` setting in configuration.py. What do you have it set to? See if it works in non-debug mode with `ALLOWED_HOSTS = ['*']`.
Author
Owner

@netman2048 commented on GitHub (Jun 28, 2016):

That seems to have worked.  I tried doing '0.0.0.0' not knowing it was looking for an asterik as the wildcard (is that in the docs somewhere?).  I think I also read that section too quickly thinking that was a list of IPs allowed to access the web interface.  That is probably more of a function of nginx though.  Now i have to troubleshoot gettingg nginx to display the page :)
Thanks for the help.  

@netman2048 commented on GitHub (Jun 28, 2016): That seems to have worked.  I tried doing '0.0.0.0' not knowing it was looking for an asterik as the wildcard (is that in the docs somewhere?).  I think I also read that section too quickly thinking that was a list of IPs allowed to access the web interface.  That is probably more of a function of nginx though.  Now i have to troubleshoot gettingg nginx to display the page :) Thanks for the help.  
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#20