Insufficient write permission to the media root - The configured media root is . Ensure that the user NetBox runs as has access to write files to all locations within this path.
The complete exception is provided below:
<class 'PermissionError'>
[Errno 13] Permission denied: '/opt/netbox/netbox/media/image-attachments/<image name>.png'
Python version: 3.6.9
NetBox version: 2.9.9
I have tried changing permissions recursively on the /opt/netbox/netbox/media directory to 775 as suggested by one post but this does not work. Other fixes including changing the ownership of the directory. My Ubuntu 18.04.5 LTS VM only has one user configured (besides root). Root currently has permissions over that directory.
Which user of what module needs to be the owner for this error to be resolved? The Netbox database user, perhaps or something else? Looking for the principle--the idea behind this aspect. I know you don't know "what users I've configured" by name. You get the idea.
Great forum, and thanks in advance!