error connecting to docker when trying to launch app

Hi there,

I’m trying to launch a simple static site, but I’m facing an error:

Error error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

I ran the following command to see if any interesting logs were coming from the builder:

flyctl --app fly-builder-floral-forest-2149 logs

And it seems like flyctl launch consistently triggers the following error any time I run it:

2022-04-27T16:58:38Z app[2579aed6] fra [info]time=“2022-04-27T16:58:38.965794298Z” level=debug msg=“liveness loop caused deadline reset”

Here’s some detailed output I got when running LOG_LEVEL=debug flyctl launch:

Long debug output here

==> Validating app configuration
DEBUG → POST GraphQL Playground {{“query”:“query($appName: String!, $definition: JSON!) { app(name: $appName) { parseConfig(definition: $definition) { definition valid errors services { description } } } }”,“variables”:{“appName”:“tab”,“definition”:{“env”:{},“experimental”:{“allowed_public_ports”:,“auto_rollback”:true},“kill_signal”:“SIGINT”,“kill_timeout”:5,“processes”:,“services”:[{“concurrency”:{“hard_limit”:25,“soft_limit”:20,“type”:“connections”},“http_checks”:,“internal_port”:8043,“ports”:[{“handlers”:[“http”],“port”:80},{“handlers”:[“tls”,“http”],“port”:443}],“processes”:[“app”],“protocol”:“tcp”,“script_checks”:,“tcp_checks”:[{“grace_period”:“1s”,“interval”:“15s”,“restart_limit”:0,“timeout”:“2s”}]}]}}}
}
DEBUG ← 200 GraphQL Playground (162.73ms) {“data”:{“app”:{“parseConfig”:{“definition”:{“kill_timeout”:5,“kill_signal”:“SIGINT”,“processes”:,“experimental”:{“allowed_public_ports”:,“auto_rollback”:true},“services”:[{“processes”:[“app”],“protocol”:“tcp”,“internal_port”:8043,“concurrency”:{“soft_limit”:20,“hard_limit”:25,“type”:“connections”},“ports”:[{“port”:80,“handlers”:[“http”]},{“port”:443,“handlers”:[“tls”,“http”]}],“tcp_checks”:[{“interval”:“15s”,“timeout”:“2s”,“grace_period”:“1s”,“restart_limit”:0}],“http_checks”:,“script_checks”:}],“env”:{}},“valid”:true,“errors”:,“services”:[{“description”:“TCP 80/443 ⇢ 8043”}]}}}}
→ Validating app configuration done
Services
TCP 80/443 ⇢ 8043
DEBUG trying remote docker daemon
DEBUG Reporting buildDEBUG → POST GraphQL Playground {{“query”:“mutation($input: StartSourceBuildInput!) { startSourceBuild(input: $input) { sourceBuild { id } } }”,“variables”:{“input”:{“appId”:“tab”}}}
}
DEBUG ← 200 GraphQL Playground (289.8ms) {“data”:{“ensureMachineRemoteBuilder”:{“machine”:{“id”:“2579aed6”,“state”:“started”,“ips”:{“nodes”:[{“family”:“v6”,“kind”:“privatenet”,“ip”:“fdaa:0:50bd:a7b:23c3:0:dacc:2”},{“family”:“v6”,“kind”:“public”,“ip”:“2604:1380:4091:3602::dacc:3”},{“family”:“v4”,“kind”:“private”,“ip”:“172.19.11.154”}]}},“app”:{“name”:“fly-builder-floral-forest-2149”,“organization”:{“id”:“kRXe1L9oZlXV2uZ6ZyMOpeYMOxf4la”,“slug”:“personal”}}}}}
DEBUG remote builder fly-builder-floral-forest-2149 is being preparedDEBUG ← 200 GraphQL Playground (148.04ms) {“errors”:[{“message”:“StartSourceBuildInput isn’t a defined input type (on $input)”,“locations”:[{“line”:1,“column”:10}],“path”:[“mutation”],“extensions”:{“code”:“variableRequiresValidType”,“typeName”:“StartSourceBuildInput”,“variableName”:“input”}},{“message”:“Field ‘startSourceBuild’ doesn’t exist on type ‘Mutations’”,“locations”:[{“line”:1,“column”:44}],“path”:[“mutation”,“startSourceBuild”],“extensions”:{“code”:“undefinedField”,“typeName”:“Mutations”,“fieldName”:“startSourceBuild”}},{“message”:“Variable $input is declared by anonymous mutation but not used”,“locations”:[{“line”:1,“column”:1}],“path”:[“mutation”],“extensions”:{“code”:“variableNotUsed”,“variableName”:“input”}}]}
DEBUG Failed storing buildDEBUG Trying ‘Buildpacks’ strategy
DEBUG no buildpack builder configured, skipping
DEBUG result image: error:
DEBUG Trying ‘Dockerfile’ strategy
DEBUG → POST GraphQL Playground {{“query”:“mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }”,“variables”:{“input”:{“appName”:“tab”,“organizationId”:null}}}
}
DEBUG ← 200 GraphQL Playground (302.7ms) {“data”:{“ensureMachineRemoteBuilder”:{“machine”:{“id”:“2579aed6”,“state”:“started”,“ips”:{“nodes”:[{“family”:“v6”,“kind”:“privatenet”,“ip”:“fdaa:0:50bd:a7b:23c3:0:dacc:2”},{“family”:“v6”,“kind”:“public”,“ip”:“2604:1380:4091:3602::dacc:3”},{“family”:“v4”,“kind”:“private”,“ip”:“172.19.11.154”}]}},“app”:{“name”:“fly-builder-floral-forest-2149”,“organization”:{“id”:“kRXe1L9oZlXV2uZ6ZyMOpeYMOxf4la”,“slug”:“personal”}}}}}
DEBUG checking ip &{Family:v6 Kind:privatenet IP:fdaa:0:50bd:a7b:23c3:0:dacc:2 MaskSize:0}
Waiting for remote builder fly-builder-floral-forest-2149… ⣾ DEBUG → POST GraphQL Playground {{“query”:“query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl platformVersion config { definition } organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { repository version } machines{ nodes { id name config state region createdAt app { name } ips { nodes { family kind ip maskSize } } host { id } } } postgresAppRole: role { name } } }”,“variables”:{“appName”:“tab”}}
}
Waiting for remote builder fly-builder-floral-forest-2149… ⣽ DEBUG ← 200 GraphQL Playground (347.91ms) {“data”:{“app”:{“id”:“tab”,“name”:“tab”,“hostname”:“tab.fly.dev”,“deployed”:false,“status”:“pending”,“version”:0,“appUrl”:null,“platformVersion”:null,“config”:{“definition”:{“kill_timeout”:5,“kill_signal”:“SIGINT”,“processes”:,“experimental”:{“allowed_public_ports”:,“auto_rollback”:true},“services”:[{“processes”:[“app”],“protocol”:“tcp”,“internal_port”:8080,“concurrency”:{“soft_limit”:20,“hard_limit”:25,“type”:“connections”},“ports”:[{“port”:80,“handlers”:[“http”],“force_https”:true},{“port”:443,“handlers”:[“tls”,“http”]}],“tcp_checks”:[{“interval”:“15s”,“timeout”:“2s”,“grace_period”:“1s”,“restart_limit”:0}],“http_checks”:,“script_checks”:}],“env”:{}}},“organization”:{“id”:“kRXe1L9oZlXV2uZ6ZyMOpeYMOxf4la”,“slug”:“personal”},“services”:[{“description”:“TCP 80/443 ⇢ 8080”,“protocol”:“TCP”,“internalPort”:8080,“ports”:[{“port”:80,“handlers”:[“HTTP”]},{“port”:443,“handlers”:[“TLS”,“HTTP”]}]}],“imageDetails”:{“repository”:“unknown”,“version”:“unknown”},“postgresAppRole”:null,“ipAddresses”:{“nodes”:},“machines”:{“nodes”:}}}}
DEBUG → POST GraphQL Playground {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:50bd:a7b:163a:0:a:2”]}}}
}
Waiting for remote builder fly-builder-floral-forest-2149… ⣻ DEBUG ← 200 GraphQL Playground (159.8ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}
DEBUG result image: error:error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded
Error error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

1 Like

Seen the same error as well. Wondering if its on my side to fix or something with Fly

This could be caused by one of two things. Either the wireguard peer you’re using is no longer valid (something we can work out) or something is blocking UDP traffic on your network (VPN, university network, etc, out of our control).

First try this to see if it’s UDP related:

fly wireguard websockets enable

Then try a deployment. If that doesn’t work, we can look at clearing up the wireguard peers.

I tried that one but got it working with:

1 Like

OK, thanks, that helps!

1 Like

The fly wireguard * commands worked! Thanks!