Repository navigation
Description
BoxBox version or image tag
ghcr.io/jr4dh3y/boxbox:v0.3.1, linux/amd64
Image digest: sha256:899052a002a8a1881a20329edc1d6d6f9632ba1d8e572bec43322735aaae06dd
Deployment files checked at commit 4e9c911855578506ad38a4d23792b45d568e6728 on master.
Deployment method
The documented Docker Compose UID/GID override, reduced to an equivalent docker run reproduction with the published image, fresh named volumes, and the same capability restrictions. The full Compose stack was not started.
Host environment
Linux x86_64, CachyOS, kernel 7.3.0-2-cachyos-bore-lto, Docker Engine 29.9.2.
Browser and client OS
Not applicable. The server exits before the web UI is available.
What happened?
The permission notes say to set PUID/PGID before first start when mounted files use another identity. Setting both to 1000 prevents startup even with completely new app-data and temporary-storage volumes.
The image initializes /data and /tmp/boxbox as UID/GID 10001:10001. Docker copies that ownership into fresh named volumes. The Compose user: override changes the process identity, but does not initialize those volumes for that identity. Auth initialization then fails while securing /data.
This affects a fresh installation, independently of the documented warning about ownership of existing named volumes or host bind mounts.
Reproduction steps
- Pull
ghcr.io/jr4dh3y/boxbox:v0.3.1. - Export valid
BOXBOX_JWT_SECRETandBOXBOX_USERS_adminvalues using the documented setup. The reproduction used a fresh random secret and a valid cost-12 bcrypt hash. No production credentials are needed. - Choose unused volume names and run:
docker volume create boxbox-uid-repro-data
docker volume create boxbox-uid-repro-temp
docker run --rm \
--network none \
--user 1000:1000 \
--cap-drop ALL \
--security-opt no-new-privileges:true \
--env BOXBOX_JWT_SECRET \
--env BOXBOX_USERS_admin \
--mount type=volume,src=boxbox-uid-repro-data,dst=/data \
--mount type=volume,src=boxbox-uid-repro-temp,dst=/tmp/boxbox \
ghcr.io/jr4dh3y/boxbox:v0.3.1- The server exits with status
1and the error below. - As a control, repeat with two different fresh volumes and
--user 10001:10001. That container stays running andwget -qO- http://localhost:8080/healthinside it returns{"status":"ok"}.
Both cases were tested without host bind mounts or published ports. All containers and volumes created for the test were removed afterwards.
Expected behavior
The documented UID/GID override should have a supported first-start path for the internal /data and /tmp/boxbox volumes. If initialization needs a separate ownership step, the deployment docs should provide it for both directories, including fresh volumes.
Relevant logs or errors
Failed to initialize server
error="initialize auth service: prepare auth session directory: chmod /data: operation not permitted"
After the failed 1000:1000 start, the fresh volumes contained:
10001:10001 755 /data
10001:10001 700 /tmp/boxbox
The default 10001:10001 control successfully initialized /data as mode 0700 and passed its health request.
Relevant configuration
The Compose setting is:
user: "${PUID:-10001}:${PGID:-10001}"Relevant sources are the fixed directory ownership in the Dockerfile, the Compose user override, and auth directory initialization.
Confirmation checks
- I searched existing issues, open pull requests, and discussions for this problem.
- This reports reproducible behavior in the published image and documented configuration, rather than a setup question.
- I included the exact image tag and digest tested.
- Logs and configuration contain no production credentials or private paths.
Activity