Deployments fail before build with prisma.deploymentSnapshot.upsert connection pool timeout
vturkuner-cloud
PROOP

21 days ago

My Railway deployments are repeatedly failing before the application build actually starts.

Project: cozy-essence

Service: VTC_BOT_ROBH_V3

Environment: production

Region: US West

GitHub branch: main

Commit: e5172fc

Current production deployment remains online and healthy.

The failure happens within 3–5 seconds during “Build > Build image”. Initialization succeeds, but Deploy never starts.

Build log:

Invalid prisma.deploymentSnapshot.upsert() invocation:

Timed out fetching a new connection from the connection pool.

Current connection pool timeout: 30

Connection limit: 100

I retried the same deployment several times and received the identical Railway internal Prisma error each time.

This project does not use Prisma. The error appears to come from Railway’s internal deployment snapshot system, not from the application code.

Could Railway please investigate or clear the stuck deployment snapshot/build state for this service?

Recent failed deployment references:

  • 5d9209fb
  • 51af370e

No environment variables, secrets, or application database credentials were changed.

Solved

6 Replies

Railway
BOT

21 days ago

Your deployment failures were caused by a brief platform incident that affected our API between 11:08 and 11:39 UTC today, which has since been resolved. The connection pool timeout you saw was an internal system error on our side, not related to your application. Your existing production deployment was unaffected, and redeploying now should succeed normally.


Status changed to Awaiting User Response Railway 21 days ago


Railway

Your deployment failures were caused by a brief platform incident that affected our API between 11:08 and 11:39 UTC today, which has since been [resolved](https://status.railway.com/incident/LJT4X01X). The connection pool timeout you saw was an internal system error on our side, not related to your application. Your existing production deployment was unaffected, and redeploying now should succeed normally.

vturkuner-cloud
PROOP

21 days ago

The issue is still occurring after Railway marked the platform incident as resolved.

I redeployed again at approximately 13:04 UTC, but the deployment failed within a few seconds with the same internal error:

Invalid prisma.deploymentSnapshot.upsert() invocation:

Timed out fetching a new connection from the connection pool.

Current connection pool timeout: 30

Connection limit: 100

Latest failed deployment reference:

  • 818400bf

The application build still does not actually start, and the existing production deployment remains online.

Could you please escalate this to the Railway team and investigate the deployment snapshot state for this specific service?


Status changed to Awaiting Railway Response Railway 21 days ago


21 days ago

We checked the deployment you referenced (818400bf) and it actually completed successfully at 13:04 UTC, as did your two earlier retries (5d9209fb and 51af370e). The connection pool error only occurred during the incident window and has not recurred since the fix was rolled out. Your dashboard may have been showing a cached error from the earlier failure. Could you refresh the page and check your deployments list? You should see the latest deployment completed and live.


Status changed to Awaiting User Response Railway 21 days ago


vturkuner-cloud
PROOP

21 days ago

I refreshed both the Railway dashboard and the production application using a hard refresh.

Unfortunately, deployment 818400bf is not active on this service.

The Railway dashboard still shows:

  • ACTIVE: "Close rug positions after failed emergency exits"
  • FAILED: "Add virtual trading panel structure"

The production application also still serves the old HTML. The new "Sanal işlemler" / virtual trading panel from the referenced commit is not present.

Therefore, the deployment may have completed internally, but it was not activated or promoted to production for this service.

Could you please verify the actual active deployment ID for VTC_BOT_ROBH_V3 / production and either activate deployment 818400bf or repair its deployment state?

Ekran Resmi 2026-07-31 19.16.44.png

Ekran Resmi 2026-07-31 19.18.31.png


Status changed to Awaiting Railway Response Railway 21 days ago


vturkuner-cloud
PROOP

21 days ago

A new deployment has failed again after your response.

Latest failed deployment:

  • Deployment ID: 16176cae
  • Time: 2026-07-31 16:24 UTC
  • Service: VTC_BOT_ROBH_V3
  • Environment: production

The Build Logs show the same internal Railway error:

Invalid prisma.deploymentSnapshot.upsert() invocation:

Timed out fetching a new connection from the connection pool.

Current connection pool timeout: 30

Connection limit: 100

The failure occurs within 3 seconds, before the application build starts.

This confirms that the issue is still recurring and is not only a cached dashboard error. Please escalate this to the Railway engineering team and repair the deployment snapshot/build state for this service.

Ekran Resmi 2026-07-31 19.30.37.png

Attachments


21 days ago

Our earlier answer was wrong, sorry about that. Those deploys didn't complete, they all failed, and the connection pool error in your build log is a leftover from the 11:08 incident that gets copied onto every retry. It isn't what's failing now.

What's actually blocking the build is a variable on this service whose name got mangled when it was saved. It's stored as "Variable name:" with a line break in front of VIRTUAL_MIN_LIQUIDITY_USD, so the build can't resolve it and dies about a second in. Delete that variable, re-add it as VIRTUAL_MIN_LIQUIDITY_USD, and redeploy.


Status changed to Awaiting User Response Railway 21 days ago


Railway
BOT

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...