Attempting to upload an image attachment fails with the following error:
Server Error
A file permission error was detected while processing this request. Common causes include the following:
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.
### Expected Behavior
Attachment uploaded.
### Docker Compose Version
Docker Compose version v2.16.0
### Docker Version
```text
Client:
Version: 20.10.5+dfsg1
API version: 1.41
Go version: go1.15.15
Git commit: 55c4c88
Built: Mon May 30 18:34:49 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.5+dfsg1
API version: 1.41 (minimum version 1.12)
Go version: go1.15.15
Git commit: 363e9a8
Built: Mon May 30 18:34:49 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.13~ds1
GitCommit: 1.4.13~ds1-1~deb11u3
runc:
Version: 1.0.0~rc93+ds1
GitCommit: 1.0.0~rc93+ds1-5+deb11u2
docker-init:
Version: 0.19.0
GitCommit:
The git Revision
b47e85ab3f2261021adf99ae9de2e9692fd674c3
The git Status
On branch release
Your branch is up to date with 'origin/release'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: configuration/plugins.py
Unmerged paths:
(use "git restore --staged <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: env/netbox.env
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: configuration/plugins.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
Dockerfile-Plugins
plugin_requirements.txt
Current Behavior
Attempting to upload an image attachment fails with the following error:
[Errno 13] Permission denied: '/opt/netbox/netbox/media/image-attachments/rack_8_20240503_141712.jpg'
Python version: 3.11.4 NetBox version: 3.7.6 Plugins: None installed
The git Revision
b47e85ab3f2261021adf99ae9de2e9692fd674c3
The git Status
Startup Command
docker compose up -d
NetBox Logs
Content of docker-compose.override.yml