Random 502 Error a week after any updates
sam-shore
PROOP

4 months ago

Without making any changes after a week of uptime, suddenly the deployment stops working and my health check shows a Railway screen with a 502 Error.

Solved

8 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


4 months ago

Hmmm, this appears to be loading on my end just fine.
Is it still happening for you?


Status changed to Awaiting User Response Railway 4 months ago


noahd

Hmmm, this appears to be loading on my end just fine. Is it still happening for you?

sam-shore
PROOP

4 months ago

It resolves when I restart the server - so I did that an hour or so ago and it resolves immediately.


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

Interesting hmm.

Next time this happens can you share the link to the service not responding?


Status changed to Awaiting User Response Railway 4 months ago


noahd

Interesting hmm.Next time this happens can you share the link to the service not responding?

sam-shore
PROOP

4 months ago

It happened twice more today, must be something in my app, but have no logs reporting any issues, just sudden 502 errors. Here's a screenshot of the screen I seen my health check. I need to restart it right away so the worker resumes so can't exactly share a link of it being down.

Attachments


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

From the 6h CPU metrics, it looks like your app is heavily CPU constrained. Given that Node apps can typically only use 1 vCPU due to their single-threaded nature, I would suggest adding more replicas.


Status changed to Awaiting User Response Railway 4 months ago


brody

From the 6h CPU metrics, it looks like your app is heavily CPU constrained. Given that Node apps can typically only use 1 vCPU due to their single-threaded nature, I would suggest adding more replicas.

sam-shore
PROOP

4 months ago

ok perfect thank you, increased to 4 - will monitor this and add more if needed. Thank you!!


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

No problem!


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...