You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the image through podman I'm getting this error:
FoundryVTT | 2025-02-16 13:19:00 | [info] User Data Directory - "/data"
FoundryVTT | 2025-02-16 13:19:00 | [error] A fatal error occurred while trying to start the Foundry Virtual Tabletop server: EPERM: operation not permitted, utime '/data/Config/options.json.lock'
Error: A fatal error occurred while trying to start the Foundry Virtual Tabletop server: EPERM: operation not permitted, utime '/data/Config/options.json.lock'
Using the exact same config with Docker works fine
Here's my config
---
services:
foundry:
image: felddy/foundryvtt:12container_name: foundry_12networks:
nginx-proxy:
init: truevolumes:
- type: bindsource: ...target: /dataenvironment:
# use to override the container version
- FOUNDRY_VERSION=12.331# use to download new foundry version
- FOUNDRY_PASSWORD=...
- FOUNDRY_USERNAME=...# admin key don't need to change
- FOUNDRY_ADMIN_KEY=...
- FOUNDRY_LICENSE_KEY=...
- FOUNDRY_HOSTNAME=...
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true# reverse proxy settings
- VIRTUAL_HOST=...
- VIRTUAL_PORT=...
- VIRTUAL_PROTO=...
- LETSENCRYPT_HOST=...
- CONTAINER_PRESERVE_OWNER=...
- CONTAINER_PRESERVE_CONFIG=...
- CONTAINER_VERBOSE=...expose:
- 30000
- 9100restart: unless-stoppedprivileged: true # on Docker works without privileged, on podman neither setting worksnetworks:
nginx-proxy:
external: true
This is a permissions issue. The user you are using does not have permission to read the options.json.lock file. The works in Docker is because you are running as root. You can fix this issue by setting the correct ownership, or permissions of the mounted volume to match the user that you are using to run Podman.
Version 12 of the container does not explicitly support Podman, but it is has been reported to work: #621.
As of release 13.333.0 of the container the container should be more compatible with Podman. i.e., it no longer assumes it could have root privileges, and uses the default node user of the base image.
So, you could either:
use the :13 image tag with FOUNDRY_VERSION set to 12.331, or
correct the permission on the mounted volume.
I hope this helps. Let me know if you resolve it, or run into other issues.
I've tried to use privileged: true but the result was the same. I'm running this container on Windows, so not sure what permissions I should add - for Docker I didn't need to add anything.
Additionally, I've run podman run -it --rm -v ./data:/data docker.io/library/alpine:latest /bin/sh and was able to operate on the same folder from within it without adding any permissions:
PS E:\Docker\Foundry12> podman run -it --rm -v ./data:/data docker.io/library/alpine:latest /bin/sh
/ # cd /data
/data # cd Config/
/data/Config # ls
admin.txt license.json options.json
/data/Config # touch options.json.lock
/data/Config # ls
admin.txt license.json options.json options.json.lock
Maybe there's some kind of issue with the filesystem?
Bug description
When running the image through podman I'm getting this error:
Using the exact same config with Docker works fine
Here's my config
Steps to reproduce
Run the image through podman, the app won't start
Expected behavior
The container works correctly
Container metadata
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: