Getting the following error when trying to deploy (with latest version CLI)
@user1 can you try again? I fixed something. Hopefully this will work for you.
Getting this error now. Am on the latest version.
Error connecting to docker: remote builder app unavailable
This appears to be a frequent issue & would love some help. Thanks!
Will you try running with LOG_LEVEL=debug fly deploy
and post the output here?
Waiting for remote builder fly-builder-shy-sun-2836... connecting ⣾ DEBUG --> POST https://api.fly.io/graphql {{"query":"query ($appName: String!) { app(name: $appName) { id name hostname deployed status version appUrl organization { id slug } services { description protocol internalPort ports { port handlers } } ipAddresses { nodes { id address type createdAt } } } }","variables":{"appName":"mementolabs"}}
}
Waiting for remote builder fly-builder-shy-sun-2836... connecting ⣽ DEBUG <-- 200 https://api.fly.io/graphql (344.81ms) {"data":{"app":{"id":"mementolabs","name":"mementolabs","hostname":"mementolabs.fly.dev","deployed":true,"status":"running","version":780,"appUrl":"https://77.83.142.15","organization":{"id":"P7lZB0nw2ylg8smzmMLA9eVLAQuzLG","slug":"personal"},"services":[{"description":"TCP 80/443 ⇢ 8080","protocol":"TCP","internalPort":8080,"ports":[{"port":80,"handlers":["HTTP"]},{"port":443,"handlers":["TLS","HTTP"]}]}],"ipAddresses":{"nodes":[{"id":"L5MgK4BKa0zNDfmxnQAq3n9aR1i8Aa","address":"77.83.142.15","type":"v4","createdAt":"2020-03-19T10:19:16Z"},{"id":"KbRyKnPK63GDqFmDRYVKeRz6NgiaVe","address":"2a09:8280:1:a80b:c320:1db:7e37:60d7","type":"v6","createdAt":"2020-03-19T10:19:16Z"}]}}}}
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }","variables":{"input":{"peerIps":["fdaa:0:67:a7b:bea:0:a:2"]}}}
}
DEBUG <-- 200 https://api.fly.io/graphql (114.48ms) {"data":{"validateWireGuardPeers":{"invalidPeerIps":[]}}}
Let me know if I should post the logs prior to this as well.
Seems to hang on connecting and then throws the error.
It just hangs there and then ultimately says “unavailable”?
I cleared our your builder machine, will you give it another try?
That worked! Thanks! If it’s helpful - here’s the remaining logs from the failed deploy:
Waiting for remote builder fly-builder-shy-sun-2836... connecting ⡿ DEBUG Remote builder unavailable, retrying in 200ms (err: error during connect: Get "http://[fdaa:0:67:a7b:ad0:0:3ea5:2]:2375/_ping": err err handling connect: connection failed: connect tcp [fdaa:0:67:a7b:ad0:0:3ea5:2]:2375: operation timed out)
WARN Remote builder did not start on time. Check remote builder logs with `flyctl logs -a fly-builder-shy-sun-2836`
DEBUG result image:<nil> error:error connecting to docker: remote builder app unavailable
If you get stuck like that again, you can run this with the builder name from the logs:
fly apps delete fly-builder-shy-sun-2836
We’ve been squashing bugs related to restarting existing builders, but haven’t discovered all of them yet.