Railway Http Proxy Logs/Debugging
Anonymous
PROOP

6 months ago

Hi, we have recently moved from GCP to Railway and I would like to be interested in if we can see log somewhere for the Http Proxy provided by Railway, as some of the requests report with HTTP 502, and this was reported by our clients before. It does not happen often, yet I would like to know where the issue lies. The app does not have any struggle with resources, hence I am looking into alternative sources for this other than the app itself.

Project Id: 2a24b8a8-5455-447a-a062-292f785b7f1a

33 Replies

brody
EMPLOYEE

6 months ago

Hello,

You can view the HTTP logs right besides the Deploy logs when you have a deployment open.


Anonymous
PROOP

6 months ago

@Brody , when I do see a log, how can I figure out why it did have 502? Even today, I saw 2 requests getting this.

1401440391982612500


brody
EMPLOYEE

6 months ago

Typically you would be able to click them and see the reason, but that's currently unavailable


Anonymous
PROOP

6 months ago

Look, for example this

1401441754850267400


Anonymous
PROOP

6 months ago

But deployment region is this

1401441858458222600


brody
EMPLOYEE

6 months ago

Yep, response details are currently unavailable


Anonymous
PROOP

6 months ago

I meant, the edgeRegion


brody
EMPLOYEE

6 months ago

edgeRegion is the region that accepted the request, and then forwarded it to your service in Asia


Anonymous
PROOP

6 months ago

Aha, okay


Anonymous
PROOP

6 months ago

So is there a way to figure out why this happens? Some sort of log or similar?


Anonymous
PROOP

6 months ago

I look at this, and see it happened 1 every hour since 4am


brody
EMPLOYEE

6 months ago

^ Not at the moment, no.

But 502's 99% of the time are caused by application level issues.


Anonymous
PROOP

6 months ago

Is this an NGINX under the hood?


brody
EMPLOYEE

6 months ago

No, custom proxy.


Anonymous
PROOP

6 months ago

But 502's 99% of the time are caused by application level issues.
So I would agree with you but you see the upstream address is not logged. Meaning it could route traffic


Anonymous
PROOP

6 months ago

Where as if I look at another call, I see routing to IPv6 ip


brody
EMPLOYEE

6 months ago

Provide the request IDs for the 502's and I can check them Tuesday.


Anonymous
PROOP

6 months ago

I3f4oXmkQ8m22IwfAQeqjw
mt6FsGOJRdSE3VaGm3z_FQ
boMQYaeVRiaN9CwQn6XIxQ


Anonymous
PROOP

6 months ago

Do you have a plan on Railway that gives us priority support?


brody
EMPLOYEE

6 months ago

We have the enterprise plan that comes with guaranteed response times within 1 hour


Anonymous
PROOP

6 months ago

Okay, I book a call with your Sales


Anonymous
PROOP

6 months ago

Thanks Brody


brody
EMPLOYEE

6 months ago

Awesome! and I'll let you know what I find Tuesday.


Anonymous
PROOP

6 months ago

Hi @Brody , could we have an update on this?


brody
EMPLOYEE

6 months ago

I3f4oXmkQ8m22IwfAQeqjw - connection closed unexpectedly
mt6FsGOJRdSE3VaGm3z_FQ - connection closed unexpectedly
boMQYaeVRiaN9CwQn6XIxQ - connection closed unexpectedly

This means that your application is closing the connection that our proxy makes to your application.


Anonymous
PROOP

6 months ago

Okay, but the logs didn't have upstream specified. Would this not mean the routing failed from edge proxy to the service?


brody
EMPLOYEE

6 months ago

Our infra engineer mentioned that it would be normal during application-level failures like this. The upstream IP would be part of the new response details that have yet to be made available in the UI.


Anonymous
PROOP

6 months ago

1402394993762500600


Anonymous
PROOP

6 months ago

Tried 2 endpoints, exit after 1ms


Anonymous
PROOP

6 months ago

Don't have insights on this that much, as far as I can see the app is available to process, see no reason why it would exit immediately, not even with timeout.


brody
EMPLOYEE

6 months ago

I'm sorry, but we do not have any observability into what your application does or does not do.


Anonymous
PROOP

6 months ago

@Brody , is there a way to bypass your edge proxy and route traffic directly to the service?


brody
EMPLOYEE

6 months ago

There is not.


Loading...