After a few hours of messing about, I updated flyctl (with brew upgrade flyctl
), started a new terminal, and tried again but still go the error.
Then I tried making a small change to the repo and running fly deploy
. That's when I saw:
fly deploy
==> Verifying app config
Validating fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: Your account has been marked as high risk. Please go to https://fly.io/high-risk-unlock to verify your account.
Error: failed to fetch an image or build from source: error connecting to docker: Your account has been marked as high risk. Please go to https://fly.io/high-risk-unlock to verify your account.
So I had to go here and verify my credit card: https://fly.io/high-risk-unlock
Then I saw a similar error to the original one:
fly deploy
==> Verifying app config
Validating fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: failed building options: failed probing "personal": context deadline exceeded
Error: failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing "personal": context deadline exceeded
I ran this:
fly wireguard websockets enable
which I found here, then everything worked.