Service lost outbound connectivity until redeploy
matanbarnea123
FREEOP

19 days ago

On June 18, 2026, my n8n service on Railway lost all outbound connectivity while the service itself remained running and reachable.

What happened:

  • DNS resolution still worked.
  • HTTPS requests to external sites failed with ETIMEDOUT.
  • Requests to api.n8n.io timed out.
  • PostHog and Rudder requests failed with ETIMEDOUT / ECONNABORTED.
  • Connections to an external PostgreSQL server on port 5432 timed out.
  • The same PostgreSQL server was reachable from my personal computer at the same time.
  • Redeploying the Railway service immediately restored both HTTPS and PostgreSQL connectivity.

Relevant errors from the logs:

  • timeout of 6000ms exceeded
  • Error fetching from Strapi API
  • PostHogFetchNetworkError
  • Rudder ETIMEDOUT
  • Rudder ECONNABORTED

Incident window:

2026-06-18, approximately 12:00–12:32 UTC

Affected deployment:

692fd4ba-8f15-4548-a81f-adb0532bad6e

Affected replica:

63ca7861-2ef5-42b8-873f-8cda670034e9

After redeploy:

  • HTTPS request returned 200
  • PostgreSQL connection succeeded

This looks like a host- or replica-level outbound networking failure. Could Railway please confirm whether there was an infrastructure issue affecting this replica, and advise how to detect or automatically recover from this kind of failure?

Solved

4 Replies

Status changed to Awaiting Railway Response Railway 19 days ago


jackelement
PRO

19 days ago

Same here, lots of outbound requests failing and a redeploy resolved it.


Hi Matan — thanks for the detailed report; the deployment/replica IDs and timeline really helped. You diagnosed this correctly: it was a host-level outbound networking failure on the node your replica was running on, not anything in your n8n config. DNS and inbound stayed up while outbound TCP (HTTPS to api.n8n.io / your external Postgres on 5432) was dropped at the host's egress path, which is why the same Postgres was reachable from your laptop. Redeploying moved your service onto a healthy host, which is why connectivity came back immediately — and it's been healthy since that redeploy. This is a known issue we're tracking where a subset of hosts intermittently lose outbound connectivity, and your report is linked to that investigation. For now the practical mitigations are a redeploy (as you found) and a lightweight outbound health check that alerts you early. (Jack — your "same here" is noted and counts toward the same investigation; a redeploy is the immediate workaround for you too.)


Status changed to Awaiting User Response Railway 17 days ago


angelo-railway

Hi Matan — thanks for the detailed report; the deployment/replica IDs and timeline really helped. You diagnosed this correctly: it was a host-level outbound networking failure on the node your replica was running on, not anything in your n8n config. DNS and inbound stayed up while outbound TCP (HTTPS to api.n8n.io / your external Postgres on 5432) was dropped at the host's egress path, which is why the same Postgres was reachable from your laptop. Redeploying moved your service onto a healthy host, which is why connectivity came back immediately — and it's been healthy since that redeploy. This is a known issue we're tracking where a subset of hosts intermittently lose outbound connectivity, and your report is linked to that investigation. For now the practical mitigations are a redeploy (as you found) and a lightweight outbound health check that alerts you early. (Jack — your "same here" is noted and counts toward the same investigation; a redeploy is the immediate workaround for you too.)

matanbarnea123
FREEOP

17 days ago

how do you suggest to monitor it? what is this outbound health check you recommended? i cannot afford losing outbound connection for more than few min. i run n8n on railway and if outbound connectivity is lost, how can a monitoring workflow or a watchdog alert me when it's lost ?


Status changed to Awaiting Railway Response Railway 17 days ago


For a watchdog you want something that tests outbound connectivity the same way your workflows do, then alerts you the moment it fails. A schedule-triggered n8n workflow is the simplest fit: every minute, have it make an outbound HTTPS request to a couple of stable external endpoints (and a TCP connect to your external Postgres on 5432), and on any timeout or error push an alert to a channel that does not depend on this same service, like a Telegram bot, Slack/Discord webhook, or an email API. Because the alert path is external, it still fires even when this service's egress is down.

Pair that with a third-party uptime monitor (UptimeRobot, Healthchecks.io, Better Stack) using their dead-man's-switch mode: your workflow pings their URL on every successful run, and they alert you if the ping stops arriving. That covers the case where the workflow itself can't reach anything outbound. With a 1-minute cadence you would be notified within a couple of minutes of an outbound drop, and a redeploy remains the immediate recovery step.

The underlying host-level egress issue you hit is still linked to our open investigation. Let us know if you would like more detail on setting up either piece.


Status changed to Awaiting User Response Railway 15 days ago


Railway
BOT

8 days 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 8 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...