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.
6 Replies
Status changed to Awaiting Railway Response Railway • about 1 month ago
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
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"\] }
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
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 :)
a month ago
Create your own dockerfile and test it locally
irazvan2745
Create your own dockerfile and test it locally
a month ago
Already tried too
davidadc
Already tried too
a month ago
Did it work locally?
Status changed to Solved davidadc • about 1 month ago