Hi,
When I am running the latest version of Flyctl… I have been using it for some time and had no issues. I am recently facing issues with Wireguard.
When I run flyctl doctor I see the following output:
flyctl doctor
Testing authentication token... PASSED
Testing flyctl agent... PASSED
Testing local Docker instance... Nope
Pinging WireGuard gateway (give us a sec)... FAILED
(Error: ping gateway: no response from gateway received)
We can't establish connectivity with WireGuard for your personal organization.
WireGuard runs on 51820/udp, which your local network may block.
If this is the first time you've ever used 'flyctl' on this machine, you
can try running 'flyctl doctor' again.
flyctl version
flyctl v0.0.306 darwin/amd64 Commit: b5101f2 BuildDate: 2022-03-15T18:17:35Z
I have tried running for a second time and still see the same error. I am not using a VPN / Proxy or any other networking config.
This is preventing me from doing a flyctl deploy as I see the following output:
DEBUG Loaded flyctl config from/Users/sambird/.fly/config.yml
DEBUG determined hostname: "Samuels-MacBook-Pro.local"
DEBUG determined working directory: "/Users/sambird/Dev/sjb-welding/app"
DEBUG determined user home directory: "/Users/sambird"
DEBUG determined config directory: "/Users/sambird/.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/sambird/Dev/sjb-welding/app/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 https://api.fly.io/graphql {{"query":"mutation($input: StartSourceBuildInput!) { startSourceBuild(input: $input) { sourceBuild { id } } }","variables":{"input":{"appId":"sjbwelding-ltd"}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (5.45s) {"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:<nil> error:<nil>
DEBUG Trying 'Dockerfile' strategy
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }","variables":{"input":{"appName":"sjbwelding-ltd","organizationId":null}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (1.07s) {"data":{"ensureMachineRemoteBuilder":{"machine":{"id":"82531f67","state":"starting","ips":{"nodes":[{"family":"v6","kind":"privatenet","ip":"fdaa:0:1c5d:a7b:25db:0:ac37:2"},{"family":"v6","kind":"public","ip":"2604:1380:81:d02::ac37:3"},{"family":"v4","kind":"private","ip":"172.19.3.50"}]}},"app":{"name":"fly-builder-patient-tree-7785","organization":{"id":"2j9m3yRpYo94bH7l7KOeDQoOeaFJxz","slug":"personal"}}}}}
DEBUG checking ip &{Family:v6 Kind:privatenet IP:fdaa:0:1c5d:a7b:25db:0:ac37:2 MaskSize:0}
DEBUG --> POST https://api.fly.io/graphql {{"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 } } } } }","variables":{"appName":"sjbwelding-ltd"}}
}
Waiting for remote builder fly-builder-patient-tree-7785... ⣽ DEBUG <-- 200 https://api.fly.io/graphql (468.34ms) {"data":{"app":{"id":"sjbwelding-ltd","name":"sjbwelding-ltd","hostname":"sjbwelding-ltd.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"]},{"port":443,"handlers":["tls","http"]}],"tcp_checks":[{"interval":"15s","timeout":"2s","grace_period":"1s","restart_limit":0}],"http_checks":[],"script_checks":[]}],"env":{}}},"organization":{"id":"2j9m3yRpYo94bH7l7KOeDQoOeaFJxz","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"},"machines":{"nodes":[]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }","variables":{"input":{"peerIps":["fdaa:0:1c5d:a7b:1596:0:a:302"]}}}
}
Waiting for remote builder fly-builder-patient-tree-7785... ⣻ DEBUG <-- 200 https://api.fly.io/graphql (174.14ms) {"data":{"validateWireGuardPeers":{"invalidPeerIps":[]}}}
DEBUG result image:<nil> 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```
I try 'probing' or pinging with below command to the personal but it just hangs.
`fly ping -o personal`
I have restarted agents, recreated wireguard, the lot.
Please can someone help? Thanks