Replies: 2 comments
-
Ran into this problem as well. Workaround: Make sure the custom-app runs as a user that has adequate permissions to Read | Write. In the custom-app, put: UID: 0 (Security and Permissions > "runAsUser") Note that the custom-app will default to UID:GID 568:568. This is a Builtin "Unprivileged Apps User". Other installs via truechart (e.g. pihole) will run as UID:GID 0:0 (root) and just have PUID 568. This seems to be the correct way to do this. Problem I had: If you [X] Automatic Permissions the container will run chown at startup: This leaves me with quite the headache for permissions, when I want to drop data into /data/Data. Have to have rw permissions for that, but Automatic Permissions overrides that and 568 cant have smb. So manual chown it is... I think? Also, it is a rather dirty workaround because this way, the custom-app will be able to write in the root filesystem. I dont think I want that. Your solution "to make the container use the /data volume for every read/write operation required (saving cookies, saving the version of foundry etc)" would be really good. |
Beta Was this translation helpful? Give feedback.
-
The current version of the image does not easily support a read-only root filesystem. I wouldn't consider this a bug, and I would be open to a feature request to support this use case. The change would require the revisiting of assumption about the ephemeral nature of the FoundryVTT install. I'm going to convert this issue into a discussion so it can help others that may be using a runtime that defaults to read-only root filesystems. See: |
Beta Was this translation helpful? Give feedback.
-
Bug description
I'm trying to deploy this container to my home NAS server running TrueNAS SCALE, using the TrueCharts "custom-app" helm chart.
The container fails to start because, even though the credentials provided are correct, the container is started as read-only, so the authentication cannot save the cookiejar.json file locally (at least that's what I assume is happening)
One solution would be to make the container use the /data volume for every read/write operation required (saving cookies, saving the version of foundry etc)
Steps to reproduce
felddy/foundryvtt
release
IfNotPresent
dogeek
<secret>
vtt.nas.dogeek.me
true
true
ClusterIP
TCP 30000:30000
NFS Share
::localhost
::/mnt/apps/config/foundryvtt
::/data
vtt.nas.dogeek.me
/
vtt.nas.dogeek.me
cert
, created through LetsEncryptExpected behavior
Container starts properly, files are stored in my ZFS
apps
ZPool, in theconfig
dataset.Container metadata
Relevant log output
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions