-
I have just installed NetBox (yesterday). I had it up and running and was populating the database to make sure everything was working okay. I rebooted the node and now can't get NetBox to start up. gunicorn[20206]: PermissionError: [Errno 13] Permission denied: '/opt/netbox-3.2.3/venv/lib/python3.9/site-packages/pyasn1_modules-0.2.8.dist-info' I've tried CHMOD 755 and CHOWN netbox:netbox with no success pyasn1-0.4.8.dist-info]# ls -l and I've tried CHMOD 600 and CHOWN root:root like the other folders pyasn1-0.4.8.dist-info Does anyone have any suggestions or guidance for me please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That will make things worse, not better. If you are running in the standard way, you'll find netbox is running as the "netbox" user. That means that this user must be able to read all the python library files. The files should be mode 644, and the directories should be mode 755, to make them accessible to all users.
It's not really important whether they're owned by root:root or netbox:netbox. (I leave them mostly owned as root:root for slightly better security, however the media directory has to be owned by netbox:netbox to allow it to upload image attachments) |
Beta Was this translation helpful? Give feedback.
That will make things worse, not better.
If you are running in the standard way, you'll find netbox is running as the "netbox" user. That means that this user must be able to read all the python library files.
The files should be mode 644, and the directories should be mode 755, to make them accessible to all users.
It's not really important whether they're owned by root:root or netbox:netbox. (I leave them mostly owned as root:root for slightly better security, however the media directory has to be owned by netb…