context deadline exceeded using the remote builder

Running flyctl deploy fails with the below error, tried on a different network and on a VPN, still does not work.

Waiting for remote builder fly-builder-twilight-shape-6842...
Error failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing "<org-name>": context deadline exceeded

Resolved by deleting all config files and reauthenticating flyctl.

1 Like

I had to do multiple steps (for Ruby specific issue, same error message):

  • brew update , brew upgrade flyctl

  • Reauthenticated flyctl

  • Investigated Dockerfile base image
    (Ruby 2.7.3 fullstaq image in my case got deleted yesterday from the remote docker repo (Quay), had to upgrade to 2.7.6)

  • ran fly config save to overwrite my existing fly.toml

Not sure if this step was needed but I did it anyway:

  • Changed fly.toml build.args to use the same 2.7.6 Ruby version so it matches my Dockerfile

That wasn’t the best experience to debug

1 Like