Skip to content
Repeated deployment initialization failures with empty logs
andersonlobo018-svg
OP

3 hours ago

Our production service in US East still serves traffic and its health check returns HTTP 200. Several consecutive updates, including a redeploy using the last successful image, failed in Initialization before a container was created. The build and deploy log streams are empty and the dashboard diagnosis did not identify a cause. Can Railway check the internal initialization events and tell us which limit or error is preventing a new deployment? We can provide the deployment ID privately.

Awaiting User Response

1 Reply

Railway
BOT

2 hours ago

The recent failed deployments on your production service stopped while we were saving the service's variables onto the new deployment, because the combined variable data is too large to carry into a deployment. That is why no container was created and the build and deploy logs are empty, and it is also why redeploying the last successful image fails the same way: every deploy carries the current variables, not the old ones.

The service's configuration stores application code and assets in environment variables (several families of numbered chunk variables, plus a start command that evaluates a variable as the program to run on a bare Python image). Moving code and files through variables is not a supported way to ship an application, and past a certain size it stops new deployments from going out. Retrying will keep failing the same way, so there is no need to send the deployment ID.

To deploy again, move that code and those assets out of the variables: deploy from a connected repository or a built image, keep large files on a volume, or fetch them at runtime from object storage such as a Railway Bucket. Then replace the start command with a short command that runs the deployed files, and keep variables for configuration and secrets only. Your currently running deployment is unaffected by these failed attempts.


Status changed to Awaiting User Response Railway • about 3 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...