Deployment via Github Action failing with different reasons

I’m using superfly/flyctl-actions@1.3 to deploy from Github. Today, I’m unable to get a successful deployment.

First error (15:35 CEST):

==> Building image
Waiting for remote builder fly-builder-dawn-surf-4473...
Error failed to fetch an image or build from source: failed building options: Timeout on AddWireGuardPeer.peerip

Retry (15:37 CEST):

==> Building image
Waiting for remote builder fly-builder-dawn-surf-4473...
Error failed to fetch an image or build from source: failed building options: Validation failed: Pubkey has already been taken, Name has already been taken

Retry (15:41 CEST):

==> Creating release
Error Validation failed: Digest has already been taken

3rd retry was successful.

This is a bug in flyctl that crops up when our API response times are slower than normal. We haven’t figured out what the real cause is yet (when the API is slow, wireguard setup should work but still be slow).

It’s worth configuring your GitHub actions to use the built in Docker, that will bypass this whole process and keep things more reliable. Here’s a good example of GitHub Actions Docker caching plus fly deploy.

Incidentally, the API slowdown has been resolved.