Builds failing suddenly
kevinrobert3
HOBBYOP

2 years ago

I have done some changes and suddenly builds are failing.
Thought this was due to changes i have pushed but I have redeployed a previous build and the error still occurs.
In the image I did a build 21 hours ago, that was successful. I have done a redeploy of the same build at the end showing 15 minutes ago and the build fails too

23 Replies

kevinrobert3
HOBBYOP

2 years ago

4f4f01e5-e5da-4e74-9885-a528f14bc4da


kevinrobert3
HOBBYOP

2 years ago

That is the 'staging' environment build. Have done a redeploy of the prod build that was successful 4 days ago and that is failing too. See below

1219625235792269300


2 years ago

it's very hard to help with the issue when we aren't told the issue, please provide your build logs with this


kevinrobert3
HOBBYOP

2 years ago


kevinrobert3
HOBBYOP

2 years ago

I haven't changed any configs recently I just assumed it was a build issue on railway not on my code or any changed railway configs


2 years ago

do you have a nixpacks.toml file?


kevinrobert3
HOBBYOP

2 years ago

Yes `[phases.setup]
nixPkgs = ['nodejs', 'yarn']

[phases.install]
cmds=['yarn install']`


2 years ago

do you have a yarn lock file


kevinrobert3
HOBBYOP

2 years ago

i have a package-lock.json


2 years ago

do you use yarn or npm locally?


kevinrobert3
HOBBYOP

2 years ago

I use npm, am guessing I should change the nixpacks to npm


kevinrobert3
HOBBYOP

2 years ago

No, this causes an error 1 minute into build


kevinrobert3
HOBBYOP

2 years ago


2 years ago

please delete your nixpacks.toml file


kevinrobert3
HOBBYOP

2 years ago


2 years ago

you have conflicting peer dependencies, please fix that


kevinrobert3
HOBBYOP

2 years ago

How can i change this command install │ npm ci to something along the line of --legacy peer deps, I only see how to override build command and have the script in


2 years ago

ideally you would properly fix the conflicting peer dependencies, do you not have any interest in that?


kevinrobert3
HOBBYOP

2 years ago

Okay, done. First the image size went from 2gb to 500mb after somehow switching to npm, wild. Second the server still does not start <:mildpanic:804271964587819059>


kevinrobert3
HOBBYOP

2 years ago


kevinrobert3
HOBBYOP

2 years ago

I'll take the rest back to Medusa. I think there is an offending plugin


kevinrobert3
HOBBYOP

2 years ago

Thanks<:1010:1173874936306221126>


2 years ago

happy to help where i can


Loading...