flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Remote builder's machine exiting prematurely will stall the deploy process

Open jeromegn opened this issue 4 years ago • 4 comments

Describe the bug

We're not detecting when using a remote builder and its machine exits abruptly or errors. It becomes unreachable via the private network (because the network interfaces comes down).

flyctl does not detect or do anything about this condition. I think it should retry a few times and then fail, letting the user know what's happening in the process.

Command output:

Waiting for remote builder <redacted>... connecting ⢿

jeromegn avatar Jan 18 '22 18:01 jeromegn

Can it detect that a builder has exited through the API? If the network just goes away it might be hard to differentiate between "dead" and "wireguard problem", but the API could tell it.

mrkurt avatar Jan 18 '22 19:01 mrkurt

It can detect it through the API and that's what I had in mind :)

jeromegn avatar Jan 18 '22 20:01 jeromegn

Still needed?

redjonzaci avatar Sep 01 '23 21:09 redjonzaci

Thanks for reporting this. #790 bounded the tunnel and host waits, and #1320 bounded each Docker ping. Current flyctl retries the remote builder and then exits with an unavailable-builder error instead of hanging indefinitely. I’m going to close this as fixed. Please reopen if the latest flyctl can still stall past that bound.

tomr-fly avatar Aug 03 '26 23:08 tomr-fly