Continuously getting 502 application not responding go
stauersbol
PROOP

a year ago

Currently I'm trying to deploy a Go API, but it always just gives me 502.

I used the environment var "PORT" (as per documentation) but that didn't help and tried with just using a hardcoded port and pointed the domain to that but that too didn't help at all. Am I doing something wrong?

Note my application did deploy correctly and is running, but its only the public domain side of things that doesn't work at all.

Solved$10 Bounty

4 Replies

stauersbol
PROOP

a year ago

For reference here is my logs on the deployment, apparently the log download tool doesn't seem to function?

EDIT:

Note yes it is not 8080, which from previous deployments seemed to be the actual port I received on that PORT environment variable.

Attachments



stauersbol
PROOP

a year ago

Okay solved. Looks like using the preforking feature with Fiber doesn't work... Had to disable it to make it work. Kind of sad that isn't something that just works out of the box, as it just creates child processes to handle much bigger loads of users without using replications :(


stauersbol
PROOP

a year ago

!s


Status changed to Open chandrika 12 months ago


Status changed to Solved chandrika 12 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...