NetBox 2.5.12 "NAPALM is not installed" error message

455 views
Skip to first unread message

Steve Stone

unread,
May 24, 2019, 5:19:43 PM5/24/19
to NetBox
Finally got Netbox up and running, but whenever I try to open any of the device tabs (Status, LLDP Neighbors, Configuration) I receive the following pop-up error:

{"detail":"NAPALM is not installed. Please see the documentation for instructions."}

This does work correctly in the development instance when I run python3 manage.py runserver 0.0.0.0:8000 --insecure, so I'm not sure what I'm missing between the two.

Brand new install:

Ubuntu 18.04.2 LTS

NetBox 2.5.12

netbox@netbox:~$ pip3 freeze | grep napalm
napalm==2.4.0
napalm-base==1.0.0
napalm-ios==0.8.1
napalm-junos==0.12.1
napalm-panos==0.5.2

netbox@netbox:/opt/netbox/netbox$ python3 ./manage.py nbshell
### NetBox interactive shell (netbox)
### Python 3.6.7 | Django 2.2.1 | NetBox 2.5.12
### lsmodels() will show available models. Use help(<model>) for more info.
>>> import napalm
>>>

netbox@netbox:~$ pip3 show gunicorn
Name: gunicorn
Version: 19.9.0
Summary: WSGI HTTP Server for UNIX
Home-page: http://gunicorn.org
Author: Benoit Chesneau
Author-email: ben...@e-engura.com
License: MIT
Location: /home/netbox/.local/lib/python3.6/site-packages
Requires:

Let me know what additional information may be needed, any help is greatly appreciated!!

Brian Candler

unread,
May 25, 2019, 3:25:03 AM5/25/19
to NetBox
On Friday, 24 May 2019 22:19:43 UTC+1, Steve Stone wrote:
netbox@netbox:~$ pip3 show gunicorn
Name: gunicorn
...
Location: /home/netbox/.local/lib/python3.6/site-packages


I guess that's your problem.  When you run gunicorn from some sort of supervisor process (supervisord? systemd?) it's probably looking for its python3 packages in a different location.  If you are running /usr/local/bin/gunicorn then I expect it looks for packages in the system location.
 
On my system:

# pip3 show gunicorn
Name: gunicorn
...
Location: /usr/local/lib/python3.5/dist-packages

Steve Stone

unread,
May 25, 2019, 2:51:52 PM5/25/19
to NetBox
I messed around with it some more, but I clearly don't know how this should probably be configured. I'm assuming that the configuration in the gunicorn_config.py file is incorrect as far as the paths are concerned and that's what's causing the issue, but I've tried multiple configurations and it's still giving me the error. Based off the following:

netbox@netbox:~$ which python3
/usr/bin/python3

netbox@netbox:~$ which gunicorn
/home/netbox/.local/bin/gunicorn

netbox@netbox:~$ pip3 show gunicorn
Name: gunicorn
Version: 19.9.0
...
Location: /home/netbox/.local/lib/python3.6/site-packages


I'm assuming that my gunicorn_config.py configuration should look like one of the following, but I've tried the following 3 configurations and I'm still getting the same error, so I'm assuming it may not be the gunicorn_config.py configuration? If not, what should the gunicorn_config.py configuration be and should I be updating something else?

[Original]
command = '/home/netbox/.local/bin/gunicorn'
pythonpath = '/opt/netbox/netbox'
bind = '127.0.0.1:8001'
workers = 3
user = 'www-data'


[Update 1]
command = '/home/netbox/.local/bin/gunicorn'              
pythonpath = '/usr/bin/python3'
bind = '127.0.0.1:8001'
workers = 3
user = 'www-data'

[Update 2]
command = '/home/netbox/.local/lib/python3.6/site-packages'              
pythonpath = '/usr/bin/python3'
bind = '127.0.0.1:8001'
workers = 3
user = 'www-data'               


Message has been deleted

Steve Stone

unread,
May 28, 2019, 4:52:51 PM5/28/19
to NetBox
Was able to finally get this working, I just blew away the old install and reinstalled everything as root. 
Reply all
Reply to author
Forward
0 new messages