railway production blocker and downtime
alexkring
HOBBYOP

2 months ago

just started incorrectly getting this message, which is breaking production on my website. there is only one person on my team (me). Does anyone know what is going on here, and how do i fix this?

Solved

16 Replies

alexkring
HOBBYOP

2 months ago

please let me know what someone from railway is available to respond, I need to fix this soon


alexkring
HOBBYOP

2 months ago

working on redeploying an older build at the moment to stop the errors and reduce losses, i think i can get back to a stable state, but i don't have the ability to write new code and deploy it.


alexkring
HOBBYOP

2 months ago

successfully reployed an older build, so website is back to stable now. communicated the railway outage to my customers. so i think im in a safe state now, which is good! i still can't write new code and deploy it to make progress though :/ would really like to make some progress today if possible! I'm hungry to work!


2 months ago

What happens when you press the deploy button?


alexkring
HOBBYOP

2 months ago

will try that again now!


alexkring
HOBBYOP

2 months ago

okay it just popped a toast that said "deployment approved!" and it started building. then I see this warning icon increment (screenshot), and it looks like the build failed actually…. okay i might have just been misunderstandin the UI! I think this is probably a build failure on my end!

1458887125616427000


alexkring
HOBBYOP

2 months ago

[ 9/11] RUN npm install && npm run install:server && echo "Checking if service type…" && if ! echo "webapi production" | grep -q "webapi"; then echo "Service is NOT webapi - installing worker dependencies"; npm run install:worker; else echo "Service IS webapi - installing client, analysis-client, audio-rendering, and audio
packages"; npm run install:analysis-client && npm run install:audio-rendering && npm run install:realtime-spectrum && npm run install:audio-player && npm run install:audio-kit && npm run install:social-sample-pack && npm run install:client; fi;
273ms
/bin/sh: 1: npm: not found
Build Failed: build daemon returned an error < failed to solve: process "/bin/sh -c npm install && npm run install:server && echo \"Checking if service type…\" && if ! echo \"$RAILWAYSERVICENAME\" | grep -q \"webapi\"; then echo \"Service is NOT webapi - installing worker dependencies\"; npm run install:worker; else echo \"Service IS webapi - installing client, analysis-client, audio-rendering, and audio packages\"; npm run install:analysis-client && npm run install:audio-rendering && npm run install:realtime-spectrum && npm run install:audio-player && npm run install:audio-kit && npm run install:social-sample-pack && npm run install:client; fi;" did not complete successfully: exit code: 127 >


2 months ago

NPM error aside, if you were to push a new commit, would it also go into pending approval?


alexkring
HOBBYOP

2 months ago

yea that is what happened the last time i tried to push a new commit


2 months ago

Right, but I'm asking what happens if you try again.


alexkring
HOBBYOP

2 months ago

im not sure what the npm error is yet, since the build successfully builds and deploys on dev, but not on prod. both are using the same Dockerfile and both show the Node install step as cached. so i think the npm error is related to some bad cached layer for the Node install step, not sure if this is bug on my end or on railways end yet, but this is the first time ive seen this error, digging into it more


alexkring
HOBBYOP

2 months ago

will try again now


alexkring
HOBBYOP

2 months ago

just pushed a small change and ran the dev and prod builds. this time, i did not have to "approve" the request on prod, which is great! still getting the npm build error, but maybe the github approval confusion is resolved?


alexkring
HOBBYOP

2 months ago

trying a build with NO_CACHE=1 to see if it fixes


2 months ago

Can I ask you to create a new help thread about the npm error, since the original topic of this thread has been solved?


alexkring
HOBBYOP

2 months ago

sure! thank you for your help! I really appreciate it 🙏


Status changed to Solved brody 2 months ago


Loading...