502 bad gateway
generala6
PROOP

a month ago

502 Bad Gateway

Application failed to respond

This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

Request ID:
mLiwfyKGQRmAlLoA5nX1uw

Build Logs: GOOD
Deployment Logs: GOOD

tried even migrating region from EU Amsterdam to US West, still getting 502 bad gateway.

PS: tried the following:
- revert work
- recreate the service on railway
- reassign region

Solved$10 Bounty

7 Replies

Railway
BOT

a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 30 days ago


mnbrshd
FREE

a month ago

Can you check what port is your app using?


generala6
PROOP

a month ago

the port is 8080.

also deleted the whole service and recreated, 502 Bad Gateway, same issue.

nothing has changed in the service configuration, not anything related to code, all services working as expected, also reverted many commits to no success.

bottom line, seem to be related to Railway gateway


mnbrshd
FREE

a month ago

Railway assigns its own port to your application and I think there's a mismatch between your app's port and Railway's gateway port. Check in your app's Networking settings to see which port railway is using


generala6
PROOP

a month ago

as stated above. this is the port railway injects

Attachments


mnbrshd
FREE

a month ago

Is "Metal Build Environment" turned on? I was having a lot of issues with my app last month and turning it off fixed it for me.


generala6
PROOP

a month ago

it is OFF


generala6
PROOP

a month ago

internal issue,

after thorough investigation i found a module delaying the server init which caused a silent server hang.

it was not solved by commit reverts due to it being dependent on a DB query, which at some point become really slow when a DB table grew very large.

thread can be closed.


Status changed to Open ray-chen 29 days ago


Status changed to Solved ray-chen 29 days ago


Loading...