NestJS Deployment Error on Build
davidadc
PROOP

3 months ago

All deployments for our api service have been failing since April 8th.

It is a big NestJS app with Prisma ORM.

The application builds successfully (TypeScript compilation, Prisma generate, migrations) but the build hangs indefinitely at the Docker image layer export step, eventually failing with:

ERROR: failed to build: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

I also tried to migrate from Nixpacks to Railpack, got the same result.

Change the NestJS build to use SWC, got the same result.

Solved$10 Bounty

6 Replies

Status changed to Awaiting Railway Response Railway 3 months ago


Railway
BOT

3 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 3 months ago


samuelvinay91
PRO

3 months ago

Hi ,

have you tried below ?

generator client {

provider = "prisma-client-js"

engineType = "library" // instead of "binary"

binaryTargets = ["native", "linux-musl-openssl-3.0.x"]

}


samuelvinay91

Hi , have you tried below ? generator client { provider = "prisma-client-js" engineType = "library" // instead of "binary" binaryTargets = \["native", "linux-musl-openssl-3.0.x"\] }

davidadc
PROOP

3 months ago

Tried it after your answer and still the same issue, it builds but hangs out after that. Tried it with Railpacks and with a custom Dockerfile


domehane
FREE

3 months ago

Hello davidadc,

the thing worth trying is changing your service's deployment region in service settings, because other users hitting that exact same eof error found that switching regions (eg from us-east to us-west or eu)

Hope this help you :)


irazvan2745
FREE

3 months ago

Create your own dockerfile and test it locally


irazvan2745

Create your own dockerfile and test it locally

davidadc
PROOP

3 months ago

Already tried too


davidadc

Already tried too

irazvan2745
FREE

3 months ago

Did it work locally?


Status changed to Solved davidadc 3 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...