Hello! I’m trying to deploy an application that uses a persistent volume to store application related data, but am bumping up against permissions errors.
When deploying the application, on startup, a directory is created to store some application binaries as well as some other application data. When I deploy the application without a volume, everything is created successfully and the application runs as expected. I need this information to persist across restarts so I created a volume and updated my
fly.toml to mount it. During build and deploy, I can see the volume is mounted, but when the application tries to create a directory inside that volume, it fails with a permissions error.
from the logs:
# Volume is mounted Mounting /dev/vdc at /home/atlantis/.atlantis # ... Application starts Error: initializing server: unable to creare dir "/home/atlantis/.atlantis/bin": mkdir /home/atlantis/.atlantis/bin: permission denied
Any suggestions on how to achieve writing to these volumes?