cloudflared: 🐛 `cloudflared` does not reconnect after network outage

Describe the bug

When my network goes down and comes back up, cloudflared does not appear to re-connect to Cloudflare servers automatically; the daemon must be manually restarted.

To Reproduce Steps to reproduce the behavior:

  1. Configure ‘…’
  2. Run ‘…’
  3. See error

Expected behavior

cloudflared should re-connect automatically.

Environment and versions

  • OS: Ubuntu
  • Architecture: arm64
  • Version: 2022.8.0

Logs and errors

2022-08-12T21:22:47Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp 198.41.200.33:7844: i/o timeout" connIndex=0 ip=198.41.200.33
2022-08-12T21:22:47Z ERR Serve tunnel error error="DialContext error: dial tcp 198.41.200.33:7844: i/o timeout" connIndex=0 ip=198.41.200.33
2022-08-12T21:22:47Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp 198.41.192.77:7844: i/o timeout" connIndex=3 ip=198.41.192.77
2022-08-12T21:22:47Z INF Retrying connection in up to 32s seconds connIndex=0 ip=198.41.200.33
2022-08-12T21:22:47Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp 198.41.192.47:7844: i/o timeout" connIndex=1 ip=198.41.192.47
2022-08-12T21:22:47Z ERR Serve tunnel error error="DialContext error: dial tcp 198.41.192.47:7844: i/o timeout" connIndex=1 ip=198.41.192.47
2022-08-12T21:22:47Z INF Retrying connection in up to 32s seconds connIndex=1 ip=198.41.192.47
2022-08-12T21:22:47Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp 198.41.200.43:7844: i/o timeout" connIndex=2 ip=198.41.200.43
2022-08-12T21:22:47Z ERR Serve tunnel error error="DialContext error: dial tcp 198.41.192.77:7844: i/o timeout" connIndex=3 ip=198.41.192.77
2022-08-12T21:22:47Z ERR Serve tunnel error error="DialContext error: dial tcp 198.41.200.43:7844: i/o timeout" connIndex=2 ip=198.41.200.43
2022-08-12T21:22:47Z INF Retrying connection in up to 32s seconds connIndex=2 ip=198.41.200.43
2022-08-12T21:22:47Z INF Retrying connection in up to 32s seconds connIndex=3 ip=198.41.192.77

Additional context

Sites are unavailable after internet comes back up:

image

EDIT: add screenshot of unavailable site

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 15 (9 by maintainers)

Most upvoted comments

This has also been reported here: https://github.com/cloudflare/cloudflared/issues/701 and internally so just letting you know we are looking into this!

Release 2022.8.4 is out

Please give it a go and let us know.

https://github.com/cloudflare/cloudflared/commit/e3390fcb15c52a8e2a33fd9002680852b12e2f67 will address this. There should be a release out this Monday.

If you want to test it ahead of time, feel free to build this from source.

They are different problems. We are working on a solution for that too.