Did permissions required change in 2.1?
Docker working fine in 2.0. Pulled the latest version and now getting permission errors. Worth noting that I don't think the examples nor my compose have PUID/PGID defined. Error and compose below:
FoundryVTT | 2025-04-15 14:47:46 | [info] Running on Node.js - Version 22.14.0 FoundryVTT | 2025-04-15 14:47:46 | [info] Foundry Virtual Tabletop - Version 12 Build 331 FoundryVTT | 2025-04-15 14:47:46 | [info] User Data Directory - "/foundrydata" node:events:496 throw er; // Unhandled 'error' event ^ Error: EACCES: permission denied
foundryvtt-docker: stdin_open: true tty: true ports: - 4444:4444 environment: - HOSTNAME=127.0.0.1 - SSL_PROXY=false volumes: - /mnt/hdd500g/foundry/data:/foundrydata - /mnt/hdd500g/foundry/app:/foundryvtt image: mbround18/foundryvtt-docker:latest restart: unless-stopped
worth noting that pulling the old container, and it comes up fine.
on your host what permissions are those folders under? I also i plan to rip 2.0.1, that really should have been 3.0.0 as version 2 was from May 25, 2024 and i just recently overhauled this to be updated to actix as hyper stopped development & reworked the ui/download process
In the "2.1" which is now labeled as 3, https://github.com/mbround18/foundryvtt-docker/compare/v2.0.0...v3.0.0#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R41-R48 is now handling perms we launch as 1000:1000 where as before we launched as root.
This change to rootless is for security and as a best practice. The launched user is at https://github.com/mbround18/foundryvtt-docker/compare/v2.0.0...v3.0.0#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R80
If you want to launch with root again set in your compose user: root under image. https://docs.docker.com/reference/compose-file/services/#user
Otherwise, to fix for rootless on your host
sudo chown -R 1000:1000 /mnt/hdd500g/foundry
Closing due to stale