Health check failure EU
lucaarchidiacono
HOBBYOP

23 days ago

I‘m experiencing health check issues on my EU deployment.

Strangely this happened today out of nowhere. I didn‘t change anything related to the code or deployment script which would result into not reaching my server.

Solved$10 Bounty

8 Replies

Status changed to Open Railway 23 days ago


Can you confirm that your PORT variable is set to the same port your app is listening on?


lucaarchidiacono
HOBBYOP

23 days ago

sure here we go

IMG_0847.jpeg

Attachments


lucaarchidiacono
HOBBYOP

23 days ago

to be honest. I never had this set. and it always worked without this env var. but this morning out of the blue the deployment didnt work anymore.

then I ran a diagnosis and it told me to set the PORT env. did it. but still am not able to successfully run the health check


lucaarchidiacono
HOBBYOP

23 days ago

here my current Dockerfile:


ENV PORT=8080

COPY --from=installer /app .

EXPOSE 8080

CMD ["node", "--import", "./apps/scraper/dist/instrument.js", "apps/scraper/dist/app.js", "--mode", "daemon"]

and here my application:


  app.listen(port, "::", () => {

    logger.info("Server listening", { port });

    logger.info("Health check ready", {

      url: `http://localhost:${port}/health`,

    });

    logger.info("Bull Board UI ready", {

      url: `http://localhost:${port}/admin/queues`,

    });

  });

I do not have public routing enabled on this application/service.


lucaarchidiacono
HOBBYOP

23 days ago

weird this happened out of the blue. I disabled the health check and everything seems to work properly. here the logs:


{

  "message": "Server listening",

  "severity": "info",

  "attributes": {

    "label": "scraper",

    "level": "info",

    "metadata": {

      "port": 8080

    }

  },

  "timestamp": "2026-05-25T14:21:45.456790796Z"

}

Status changed to Solved Railway 23 days ago


lucaarchidiacono
HOBBYOP

23 days ago

its not solved. I just disabled the health check for a brief moment to see if the application even runs


Status changed to Awaiting Railway Response Railway 23 days ago


bogutadmutro-cmyk
FREE

23 days ago

ENV PORT=8080

COPY --from=installer /app .

EXPOSE 8080

CMD ["node", "--import", "./apps/scraper/dist/instrument.js", "apps/scraper/dist/app.js", "--mode", "daemon"]


lucaarchidiacono
HOBBYOP

22 days ago

figured the service did take too long to reply. had to increase the timeout


Status changed to Solved lucaarchidiacono 22 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...