Healthcheck failed.
lancevxx
HOBBYOP

a month ago

I've read the similar threads and already tried SKIP_ENV_VALIDATION="true" as an env variable — still failing the healthcheck. This is a Next.js project. Local builds work fine, and the deploy ok with my custom message: [boot] runtime=nodejs port=8080 hostname=***

- Local: http://3d0dfa15d290:8080

- Network: http://3d0dfa15d290:8080

✓ Ready in 0ms

[boot] runtime=nodejs port=8080 hostname=***

Solved$10 Bounty

4 Replies

Status changed to Open Railway about 1 month ago


euphoriuhhh
FREE

a month ago

try to add this to package.json -> "start": "next start -H 0.0.0.0 -p $PORT"


euphoriuhhh

try to add this to package.json -> "start": "next start -H 0.0.0.0 -p $PORT"

lancevxx
HOBBYOP

a month ago

I didn't work. Things I've done:

make sure /api/health - return 200.


a month ago

Have you followed the Healthcheck docs? https://docs.railway.com/deployments/healthchecks#configure-the-healthcheck-port

You can try adding a PORT env var and setting it to 8080.


lancevxx
HOBBYOP

a month ago

this fixed it in railway.toml, change the startCommand="node .next/standalone/server.js" to

startCommand = "npm start"


Status changed to Open brody about 1 month ago


Status changed to Solved lancevxx about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...