NestJS Deployment Error on Build
davidadc
PROOP

a month 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 about 1 month ago


Railway
BOT

a month 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 about 1 month ago


samuelvinay91
PRO

a month 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

a month 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

a month 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

a month ago

Create your own dockerfile and test it locally


irazvan2745

Create your own dockerfile and test it locally

davidadc
PROOP

a month ago

Already tried too


davidadc

Already tried too

irazvan2745
FREE

a month ago

Did it work locally?


Status changed to Solved davidadc about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...