a month ago
Hi everyone,
Since today, every deployment of one of my services fails at the pre-deploy step with:
This deployment expects a volume mounted at /app/media, but the service has no volume attached. Railway did not create the container [...]
The volume is attached to that service with mount path /app/media, and it shows as connected both in the canvas and in the volume settings. Service and volume are in the same region (US West).
Some details:
The build succeeds every time. It only fails at "Deploy › Pre deploy command", which runs python manage.py migrate.
The currently active deployment, which went out a few hours earlier with the same volume, is still running fine.
I redeployed the exact same commit as the active deployment and it failed with the same error, so it doesn't look like a code change.
Nothing was changed in the Dockerfile, the railway config, or the volume.
Has anyone else run into this? I'd like to avoid detaching or recreating the volume, since it holds persistent data. Any tips are appreciated!
2 Replies
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
Thanks for the quick fix! Confirming it's working again on our side: deployments for service "Zarabot" (project Zarabots, production, EU West) now go through with the volume mounted at /data as usual. Nothing was detached or deployed without the volume in the meantime, so no data recovery needed. Appreciate the help!
a month ago
Hey! Thanks for the detailed report. This was caused by a recent change on our side, and we've now rolled it back. Deploys with a volume and a pre-deploy command should go through again, so please redeploy and your volume will be mounted as usual. Your volume and its data weren't affected.
If you detached your volume or deployed without it while this was happening, reply here before redeploying and we'll help make sure nothing written since then gets lost.
Sorry for the disruption, and let us know if anything still fails.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago