# Deployments not working: error connecting to docker

**URL:** <https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992>\
**Category:** Questions / Help\
**Created:** [February 8, 2022, 10:19am UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992 "2022-02-08T10:19:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 10:19am UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/1 "2022-02-08T10:19:19Z")

</div>

Hello! Please help me solve the problem, I can’t complete the deploy.

% fly deploy  
==\> Verifying app config  
 → Verified app config  
==\> Building image  
Error failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

% fly deploy --remote-only  
==\> Verifying app config  
 → Verified app config  
==\> Building image  
Error failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

---

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [February 8, 2022, 3:31pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/2 "2022-02-08T15:31:50Z")

</div>

A couple of thoughts:

Maybe try:  
`fly auth login`  
… to double-check you are authenticated, to rule that out as an issue.

Then I _think_ you can add a log level so show some more details. I suspect Fly may need those extra debug lines to try and see what’s happening:

`LOG_LEVEL=debug fly deploy`

If you can paste in that output (removing anything you don’t want revealed, like your app name) here, that will help diagnose it.

---

<div class="post-metadata">

**Author:** ![boiserunner](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/boiserunner/32/12847_2.png) [@boiserunner](https://community.fly.io/u/boiserunner)\
**Post date:** [February 8, 2022, 3:36pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/3 "2022-02-08T15:36:04Z")

</div>

Same. Receiving a 502 Bad Gateway code when deploying. `fly auth login` also returns “An unknown server error occured.”

Meanwhile `fly status` hangs and the finally returns a 502.

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 4:16pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/4 "2022-02-08T16:16:53Z")

</div>

`fly auth login` also returns “An unknown server error occured.”

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 4:19pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/5 "2022-02-08T16:19:29Z")

</div>

LOG\_LEVEL=debug fly deploy  
DEBUG Loaded flyctl config from/Users/Kto\_tut/.fly/config.yml  
DEBUG determined hostname: “MacBook-Pro-Victoriya.local”  
DEBUG determined working directory: “/Users/Kto\_tut/Desktop/thirdweb-lootbox-tutorial-main”  
DEBUG determined user home directory: “/Users/Kto\_tut”  
DEBUG determined config directory: “/Users/Kto\_tut/.fly”  
DEBUG ensured config directory exists.  
DEBUG ensured config directory perms.  
DEBUG cache loaded.  
DEBUG config initialized.  
DEBUG initialized task manager.  
DEBUG started querying for new release  
DEBUG client initialized.  
DEBUG app config loaded from /Users/Kto\_tut/Desktop/thirdweb-lootbox-tutorial-main/fly.toml  
==\> Verifying app config  
 → Verified app config  
==\> Building image  
DEBUG trying local docker daemon  
DEBUG Local docker daemon unavailable  
DEBUG trying remote docker daemon  
DEBUG Reporting buildDEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: StartSourceBuildInput!) { startSourceBuild(input: $input) { sourceBuild { id } } }”,“variables”:{“input”:{“appId”:“lootbox-quiz-alex”}}}  
}  
DEBUG querying for release resulted to v0.0.295  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (481.98ms) {“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](https://api.fly.io/graphql) {{“query”:“mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { slug } } } }”,“variables”:{“input”:{“appName”:“lootbox-quiz-alex”,“organizationId”:null}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (259.83ms) {“data”:{“ensureMachineRemoteBuilder”:{“machine”:{“id”:“1579a9d1”,“state”:“starting”,“ips”:{“nodes”:[{“family”:“v6”,“kind”:“privatenet”,“ip”:“fdaa:0:4b73:a7b:23c3:0:8ca3:2”},{“family”:“v6”,“kind”:“public”,“ip”:“2604:1380:4091:3602::8ca3:3”},{“family”:“v4”,“kind”:“private”,“ip”:“172.19.11.82”}]}},“app”:{“name”:“fly-builder-small-sky-7039”,“organization”:{“slug”:“personal”}}}}}  
DEBUG checking ip &{Family:v6 Kind:privatenet IP:fdaa:0:4b73:a7b:23c3:0:8ca3:2 MaskSize:0}  
Waiting for remote builder fly-builder-small-sky-7039… ⣾ DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl config { definition } organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { repository version } } }”,“variables”:{“appName”:“lootbox-quiz-alex”}}  
}  
Waiting for remote builder fly-builder-small-sky-7039… ⣽ DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (408.68ms) {“data”:{“app”:{“id”:“lootbox-quiz-alex”,“name”:“lootbox-quiz-alex”,“hostname”:“[lootbox-quiz-alex.fly.dev](http://lootbox-quiz-alex.fly.dev)”,“deployed”:false,“status”:“pending”,“version”:0,“appUrl”: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”]},{“port”:443,“handlers”:[“tls”,“http”]}],“tcp\_checks”:[{“interval”:“15s”,“timeout”:“2s”,“grace\_period”:“1s”,“restart\_limit”:0}],“http\_checks”:,“script\_checks”:}],“env”:{}}},“organization”:{“id”:“AP276N9M5j2qJTaRa50QLKp0Q8Fx1l”,“slug”:“personal”},“services”:[{“description”:“TCP 80/443 ⇢ 8080”,“protocol”:“TCP”,“internalPort”:8080,“ports”:[{“port”:80,“handlers”:[“HTTP”]},{“port”:443,“handlers”:[“TLS”,“HTTP”]}]}],“ipAddresses”:{“nodes”:},“imageDetails”:{“repository”:“unknown”,“version”:“unknown”}}}}  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
Waiting for remote builder fly-builder-small-sky-7039… ⣻ DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (160.18ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
DEBUG result image: error:error connecting to docker: 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

---

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [February 8, 2022, 4:32pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/6 "2022-02-08T16:32:46Z")

</div>

Hmm that `invalidPeerIps` does not sound good.

I suspect it may be related to _this_. Sounds like Fly is on the case:

> **[Increased request failures on the Fly API](https://status.flyio.net/incidents/1p2cwd8fg7vt)**
>
> Fly.io's Status Page - Increased request failures on the Fly API.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [February 8, 2022, 4:41pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/7 "2022-02-08T16:41:41Z")

</div>

@Alexander_Izmailov @greg we are indeed looking into it.

> [@greg](#):
>
> Hmm that `invalidPeerIps` does not sound good.

That’s just a call to invalidate bad wireguard peers.

> [@Alexander\_Izmailov](#):
>
> DEBUG result image: error:error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

The issue appears to be related to wireguard here.

@Alexander_Izmailov can you try these steps?

```auto
fly agent stop
LOG_LEVEL=debug fly agent daemon-start

```

and in a different terminal

```auto
LOG_LEVEL=debug fly deploy

```

This should give us a lot more information about what’s going on. You should get plenty of logs from both the agent and the deploy process.

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 5:05pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/8 "2022-02-08T17:05:27Z")

</div>

I think something is happening, but very slowly, does not allow to post large messages here.

% fly agent stop  
% LOG\_LEVEL=debug fly agent daemon-start  
DEBUG Loaded flyctl config from/Users/Kto\_tut/.fly/config.yml  
DEBUG determined hostname: “MacBook-Pro-Victoriya.local”  
DEBUG determined working directory: “/Users/Kto\_tut/Desktop/thirdweb-lootbox-tutorial-main”  
DEBUG determined user home directory: “/Users/Kto\_tut”  
DEBUG determined config directory: “/Users/Kto\_tut/.fly”  
DEBUG ensured config directory exists.  
DEBUG ensured config directory perms.  
DEBUG cache loaded.  
DEBUG config initialized.  
DEBUG initialized task manager.  
DEBUG started querying for new release  
DEBUG client initialized.  
2022/02/08 19:51:57.898574 srv OK 25607  
DEBUG querying for release resulted to v0.0.295  
2022/02/08 19:53:02.226651 #1 connected …  
2022/02/08 19:53:02.226924 srv config change at: 2022-02-08 19:53:02.226349296 +0300 MSK  
2022/02/08 19:53:02.226948 #1 ← ( 4) “ping”  
2022/02/08 19:53:02.227040 #1 → ( 58) “8\x00ok {“PID”:25607,“Version”:“0.0.295”,“Background”:false}\n”  
2022/02/08 19:53:02.227063 #1 dropped.  
2022/02/08 19:53:02.227303 #2 connected …  
2022/02/08 19:53:02.227356 #2 ← ( 18) “establish personal”  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“query($orgType: OrganizationType) { organizations(type: $orgType) { nodes { id slug name type } } }”,“variables”:null}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (650.4ms) {“data”:{“organizations”:{“nodes”:[{“id”:“AP276N9M5j2qJTaRa50QLKp0Q8Fx1l”,“slug”:“personal”,“name”:“Alexander Izmailov”,“type”:“PERSONAL”}]}}}  
wg connect fdaa:0:4b73::3 [ams1.gateway.6pn.dev:51820](http://ams1.gateway.6pn.dev:51820) fdaa:0:4b73:a7b:16a9:0:a:0 fdaa:0:4b73::  
2022/02/08 19:53:03.095099 #2 → ( 729) “\xd7\x02ok {“WireGuardState”:{“org”:“personal”,“name”:“interactive-MacBook-Pro-Victoriya-izmailov-shura-gmail-com-805”,“region”:“ams”,“localprivate”:“CHwtc7Ax/FYMioOnSwPjINtMGPQ4lZTjp2MXT6mJ+UY=”,“localpublic”:”+sFSGa8LxY1REZZyRZRViJN27nK4DkGLZRhrg3Jr5tA=",“dns”:"",“peer”:{“peerip”:“fdaa:0:4b73:a7b:16a9:0:a:2”,“endpointip”:“[ams1.gateway.6pn.dev](http://ams1.gateway.6pn.dev)”,“pubkey”:“yUyg63j5+17YeJ7gRhxoQuF6rvdX0JF59M6skytJFTQ=”}},“TunnelConfig”:{“LocalPrivateKey”:"+sFSGa8LxY1REZZyRZRViJN27nK4DkGLZRhrg3Jr5tA=",“LocalNetwork”:“fdaa:0:4b73:a7b:16a9:0:a:0/120”,“RemotePublicKey”:“yUyg63j5+17YeJ7gRhxoQuF6rvdX0JF59M6skytJFTQ=”,“RemoteNetwork”:“fdaa:0:4b73::/48”,“Endpoint”:“[ams1.gateway.6pn.dev:51820](http://ams1.gateway.6pn.dev:51820)”,“DNS”:“fdaa:0:4b73::3”,“KeepAlive”:0,“MTU”:0,“LogLevel”:0}}\n"  
2022/02/08 19:53:03.095148 #2 dropped.  
2022/02/08 19:53:03.095547 #3 connected …  
2022/02/08 19:53:03.095619 #3 ← ( 14) “probe personal”  
2022/02/08 19:53:03.095627 srv probing “personal” …  
2022/02/08 19:53:08.096783 #3 → ( 58) “8\x00err failed probing “personal”: context deadline exceeded”  
2022/02/08 19:53:08.096885 #3 dropped.  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (176.99ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
2022/02/08 19:53:58.139716 srv validated wireguard peers  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (394.8ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
2022/02/08 19:55:58.597100 srv validated wireguard peers  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (411.8ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
2022/02/08 19:57:59.072247 srv validated wireguard peers  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (425.38ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
2022/02/08 19:59:59.568066 srv validated wireguard peers  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (314.4ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
2022/02/08 20:01:59.947169 srv validated wireguard peers

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 5:06pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/9 "2022-02-08T17:06:45Z")

</div>

`LOG_LEVEL=debug fly deploy`

% LOG\_LEVEL=debug fly deploy  
DEBUG Loaded flyctl config from/Users/Kto\_tut/.fly/config.yml  
DEBUG determined hostname: “MacBook-Pro-Victoriya.local”  
DEBUG determined working directory: “/Users/Kto\_tut/Desktop/thirdweb-lootbox-tutorial-main”  
DEBUG determined user home directory: “/Users/Kto\_tut”  
DEBUG determined config directory: “/Users/Kto\_tut/.fly”  
DEBUG ensured config directory exists.  
DEBUG ensured config directory perms.  
DEBUG cache loaded.  
DEBUG config initialized.  
DEBUG initialized task manager.  
DEBUG started querying for new release  
DEBUG client initialized.  
DEBUG app config loaded from /Users/Kto\_tut/Desktop/thirdweb-lootbox-tutorial-main/fly.toml  
==\> Verifying app config  
 → Verified app config  
==\> Building image  
DEBUG trying local docker daemon  
DEBUG Local docker daemon unavailable  
DEBUG trying remote docker daemon  
DEBUG Reporting buildDEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: StartSourceBuildInput!) { startSourceBuild(input: $input) { sourceBuild { id } } }”,“variables”:{“input”:{“appId”:“lootbox-quiz-alex”}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (995.29ms) {“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](https://api.fly.io/graphql) {{“query”:“mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { slug } } } }”,“variables”:{“input”:{“appName”:“lootbox-quiz-alex”,“organizationId”:null}}}  
}  
DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (262.15ms) {“data”:{“ensureMachineRemoteBuilder”:{“machine”:{“id”:“1579a9d1”,“state”:“starting”,“ips”:{“nodes”:[{“family”:“v6”,“kind”:“privatenet”,“ip”:“fdaa:0:4b73:a7b:23c3:0:8ca3:2”},{“family”:“v6”,“kind”:“public”,“ip”:“2604:1380:4091:3602::8ca3:3”},{“family”:“v4”,“kind”:“private”,“ip”:“172.19.11.82”}]}},“app”:{“name”:“fly-builder-small-sky-7039”,“organization”:{“slug”:“personal”}}}}}  
DEBUG checking ip &{Family:v6 Kind:privatenet IP:fdaa:0:4b73:a7b:23c3:0:8ca3:2 MaskSize:0}  
Waiting for remote builder fly-builder-small-sky-7039… ⣾ DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl config { definition } organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } imageDetails { repository version } } }”,“variables”:{“appName”:“lootbox-quiz-alex”}}  
}  
Waiting for remote builder fly-builder-small-sky-7039… ⢿ DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (918.95ms) {“data”:{“app”:{“id”:“lootbox-quiz-alex”,“name”:“lootbox-quiz-alex”,“hostname”:“[lootbox-quiz-alex.fly.dev](http://lootbox-quiz-alex.fly.dev)”,“deployed”:false,“status”:“pending”,“version”:0,“appUrl”: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”]},{“port”:443,“handlers”:[“tls”,“http”]}],“tcp\_checks”:[{“interval”:“15s”,“timeout”:“2s”,“grace\_period”:“1s”,“restart\_limit”:0}],“http\_checks”:,“script\_checks”:}],“env”:{}}},“organization”:{“id”:“AP276N9M5j2qJTaRa50QLKp0Q8Fx1l”,“slug”:“personal”},“services”:[{“description”:“TCP 80/443 ⇢ 8080”,“protocol”:“TCP”,“internalPort”:8080,“ports”:[{“port”:80,“handlers”:[“HTTP”]},{“port”:443,“handlers”:[“TLS”,“HTTP”]}]}],“ipAddresses”:{“nodes”:},“imageDetails”:{“repository”:“unknown”,“version”:“unknown”}}}}  
DEBUG → POST [GraphQL Playground](https://api.fly.io/graphql) {{“query”:“mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }”,“variables”:{“input”:{“peerIps”:[“fdaa:0:4b73:a7b:16a9:0:a:2”]}}}  
}  
Waiting for remote builder fly-builder-small-sky-7039… ⡿ DEBUG ← 200 [GraphQL Playground](https://api.fly.io/graphql) (283.58ms) {“data”:{“validateWireGuardPeers”:{“invalidPeerIps”:}}}  
DEBUG result image: error:error connecting to docker: 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

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 5:26pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/10 "2022-02-08T17:26:31Z")

</div>

Hey there,

Could you try some of these commands? They might shed more light on the issue.

```auto
fly doctor
DEV=1 fly agent probe personal
fly dig TXT _apps.internal

```

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 5:39pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/11 "2022-02-08T17:39:58Z")

</div>

thirdweb-lootbox-tutorial-main % fly doctor  
TEST STATUS  
Agent couldn’t ping agent: dial unix /Users/Kto\_tut/.fly/fly-agent.sock: connect: connection refused  
Docker (local) failed pinging docker instance: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?  
Probe (app) failed probing personal: failed probing “personal”: context deadline exceeded  
Token PASS  
Unix socket PASS

thirdweb-lootbox-tutorial-main % DEV=1 fly agent probe personal  
Error failed probing “personal”: context deadline exceeded

thirdweb-lootbox-tutorial-main % fly dig TXT \_apps.internal  
Error connect tcp [fdaa:0:4b73::3]:53: operation timed out

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 5:52pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/12 "2022-02-08T17:52:06Z")

</div>

Nice, thanks! How about `fly agent stop` Then `fly agent start`?

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 5:54pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/13 "2022-02-08T17:54:09Z")

</div>

> [@jsierles](#):
>
> fly agent start

thirdweb-lootbox-tutorial-main % fly agent stop  
thirdweb-lootbox-tutorial-main % fly agent start  
thirdweb-lootbox-tutorial-main % fly deploy  
==\> Verifying app config  
 → Verified app config  
==\> Building image  
Error failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing “personal”: context deadline exceeded

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 5:54pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/14 "2022-02-08T17:54:53Z")

</div>

Which operating system and version of flyctl?

`uname -a`  
`fly version`

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 5:56pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/15 "2022-02-08T17:56:26Z")

</div>

thirdweb-lootbox-tutorial-main % uname -a  
Darwin MacBook-Pro-Victoriya.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE\_X86\_64 x86\_64  
thirdweb-lootbox-tutorial-main % fly version  
fly v0.0.295 darwin/amd64 Commit: c47821c BuildDate: 2022-02-03T16:00:09Z

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 5:58pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/16 "2022-02-08T17:58:20Z")

</div>

OK, how about this?

`ps auwx | grep "fly agent"`

Here we’re trying to tell if you have Fly’s background agent running.

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 6:00pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/17 "2022-02-08T18:00:01Z")

</div>

thirdweb-lootbox-tutorial-main % ps auwx | grep “fly agent”  
Kto\_tut 25986 0,0 0,0 34140252 892 s000 S+ 8:59 0:00.00 grep fly agent  
Kto\_tut 25924 0,0 0,2 34897096 31368 s000 S 8:52 0:00.54 fly agent run /Users/Kto\_tut/.fly/agent-logs/4002767549.log

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 6:10pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/18 "2022-02-08T18:10:39Z")

</div>

OK, then:

`tail -100 /Users/Kto_tut/.fly/agent-logs/4002767549.log`

---

<div class="post-metadata">

**Author:** ![Alexander\_Izmailov](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexander\_Izmailov](https://community.fly.io/u/Alexander_Izmailov)\
**Post date:** [February 8, 2022, 6:13pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/19 "2022-02-08T18:13:40Z")

</div>

. . . ok

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [February 8, 2022, 6:14pm UTC](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992/20 "2022-02-08T18:14:49Z")

</div>

Thanks! I’d go ahead and delete this last reply, as it contains your wireguard peer info. That can be invalidated, but just in case!

[Next page](https://community.fly.io/t/deployments-not-working-error-connecting-to-docker/3992.md?page=2)
