Skip to content
Bun Function deployment fails at Initialization with no logs
Anonymous
OP

36 minutes ago

I’m updating an existing Bun Function. The previous deployment is still active. Several attempts failed at Initialization (00:00). The Deploy and Post-deploy stages never started, and no build or deploy logs were available. The dashboard diagnosis also failed.

I also tried a short start command that loads the source in chunks from environment variables, to rule out a long command-line argument. The activity feed marked that change as Failed, and no new deployment appeared in the history.

Is there a way to see the underlying initialization or change-application error in the dashboard? What should I check to deploy the update while keeping the current release online?

Awaiting User Response

1 Reply

Railway
BOT

35 minutes ago

Your recent change attempts failed before any deployment was created, so there were no build or deploy logs to show. Each one was rejected with this error: "This change can't be applied because the environment's configuration is too large. This is usually caused by large variable values, such as files encoded as base64." That is the error behind the Failed entry in the activity feed, and your current release keeps running because nothing replaced it.

The Bun Function's own encoded source is the normal, supported way Functions are deployed. The issue is the service's variables. It has nearly 300 of them, mostly numbered chunks that hold image and UI data. Storing files, assets, or code in variables is not supported, and splitting that data into more chunks makes the environment larger, so loading the source from variables will hit the same error. Retrying won't help either.

To ship the update, move that data out of variables. You can store it on a volume, fetch it at runtime from object storage such as a Railway Bucket, or deploy the code and assets from a connected repo or a built image. Then delete the chunked variables. Once the environment is small enough, changes will apply and create a new deployment, and your current deployment keeps serving until the new one replaces it.


Status changed to Awaiting User Response Railway • 35 minutes ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...