Skip to content
Volume/data is empty after every new deployment(Survives restart)
phanzito-hub
OP

8 days ago

My service Pen-Mark has a volume mounted at /data (device /dev/zd20560). A plain Restart keeps the data, but every new deployment (Redeploy or a GitHub push) comes up with /data empty. I confirmed it with a test file: after Restart the file survived, after Redeploy it was gone, and the SQLite database file was re-created at the deploy time. The same device is mounted, only the contents are gone. There is no pre-deploy command, cron or teardown setting. Can you check why the volume contents are lost on new deployments?

Solved

1 Reply

Railway
BOT

8 days ago

The volume attached to Pen-Mark is currently recorded with the mount path /data. (ending in a dot) rather than /data, and it is in a ready state with data on it. Could you check the mount path shown in that volume's settings and confirm whether it reads exactly /data?


Status changed to Awaiting User Response Railway • 8 days ago


Status changed to Solved phanzito-hub • 8 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...