Skip to content
Unable to Deploy, Deployment fails at building phase
shipguardhq
OP

a year ago

I have been trying to deploy my nestjs application on railway for more than 6hours and it will fail at the build command. I'm using pnpm as my package manager, prisma as my orm and laos i have include in the script prisma generate and it still fails.

Here is my project ID: 2d6f0bba-8383-4f4b-90fd-7621c60e6946

Here is the error log:

pnpm run build

16s

[email protected] build /app

pnpm db:generate && nest build

[email protected] db:generate /app

prisma generate

Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v6.17.1) to ./node_modules/.prisma/client in 200ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate

Found 139 error(s).

 ELIFECYCLE  Command failed with exit code 1.

Solved$10 Bounty

31 Replies

a year ago

Can you confirm that this builds locally?


shipguardhq
OP

a year ago

yes it does


a year ago

Is this repository open source?


shipguardhq
OP

a year ago

no private


a year ago

The error is a whole bunch of invalid library usage-esque errors


a year ago

It's hard to tell the issue without seeing the source


shipguardhq
OP

a year ago

one minute it was working, the next minute after removing log statement from the code, deploying it stopped working with that error


caicapp

a year ago

It’s not working here either. It stays on “applying 1 change” and doesn’t start.

Before that, it actually began a deploy, but it got stuck for a long time, so I aborted it.


shipguardhq
OP

a year ago

here is the full erorr message


shipguardhq
OP

a year ago


a year ago

And here's the actual actual error

1427763330193428542


Anonymous

a year ago

Stuck on applying 3 changes. Custom domains missing as well. Creating containers times out. Switching regions helped for a second but now breaking in us-west as well as us-east.


a year ago

Apologies for the formatting


shipguardhq
OP

a year ago

its fine


riki95

a year ago

I have this issue too. 2 of my pipelines are stuck at "build - publish" on railway


shipguardhq
OP

a year ago

but its works locally, it was working initially till i removed a log statement


Status changed to Open brody • about 1 year ago


riki95

a year ago

I have two Railway environments with different dashboard access issues:

- dev: Dashboard loads correctly

- prod: Dashboard never loads (continuous loading)

Both environments just failed deployment after deploying the same code.


a year ago

Don't think these are related- OP here has an issue with compilation. Not hanging.


daxelrod

a year ago

We are also getting extreme container build times and are also unable to deploy an environment variable change to a postgres service


a year ago

Possibly related to the current outage. See a bit more in https://discord.com/channels/713503345364697088/1427762828907122862.


shipguardhq
OP

a year ago

can i build locally and deploy directly on railway


shipguardhq
OP

a year ago

as issue still persist


a year ago

Issue should be resolved now


shipguardhq
OP

a year ago

not resolved


a year ago

The outage, your issue was unrelated to that.


shipguardhq
OP

a year ago


shipguardhq
OP

a year ago

no its not, having build issue on railway


a year ago

Completely unrelated the outage.


shipguardhq
OP

a year ago

its fraustrating, i have spent more than 5hours on that particualr issue


shipguardhq
OP

a year ago

fixed it, railway is using a old version of pnpm which is failing all my build

had to specify on the package.json to use the latest pnpm version, like i used locally


a year ago

!s


Status changed to Solved uxuz • about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...