Deployment fails
food-friends26
HOBBYOP

a month ago

Every new deployment fails at 'Deploy > Create container' in ~1 second with 'Failed to create deployment.' Build succeeds. Service has a volume mounted at /data. Redeploy also started failing. Service is still running on an old deployment.

Solved

5 Replies

Status changed to Awaiting Railway Response Railway about 1 month ago


a month ago

Looks like you have an active deployment now?


Status changed to Awaiting User Response Railway about 1 month ago


food-friends26
HOBBYOP

a month ago

Hi Brody,

Thanks for checking. The app is currently running (the deployment from ~23 hours ago is active), but we're still unable to deploy any new code. Every new deployment fails at "Deploy → Create container" with "Failed to create deployment" within a few seconds — even after a full build completes successfully.

The pattern:

  • Build: succeeds (~40s)
  • Deploy → Create container: fails immediately (~3s)
  • The currently running container stays active (no downtime)

We have Teardown enabled. The service has a Volume (pr-valuation-volume) mounted at /data (ReadWriteOnce). Our suspicion is that the volume lock isn't being released properly before the new container tries to mount it — but we're not sure if that's on our end or a platform issue.

The practical problem: the running container was started before we updated the ANTHROPIC_API_KEY variable, so it's running with an outdated key. We need to redeploy to pick up the new variable, but every deploy attempt fails.

Is there anything on the Railway side that could cause "Create container" to fail consistently on this specific service? And is there a way to force-restart the current container so it picks up the new environment variables without a full redeploy?

Thanks


Status changed to Awaiting Railway Response Railway about 1 month ago


a month ago

Have you tried manually removing the current deployment and then deploying again via the CLI?


Status changed to Awaiting User Response Railway about 1 month ago


food-friends26
HOBBYOP

a month ago

"We tried that — removed the active deployment and ran railway up immediately. Same result: Build succeeds, Deploy → Create container fails in 2 seconds. The app is now completely down. We need to create a new service — can you help us detach the volume so we can reattach it to a new service safely?"


Status changed to Awaiting Railway Response Railway about 1 month ago


a month ago

You can detach and reattach volumes yourself from the dashboard or CLI. No action needed from our side for that.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

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 29 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...