I also have an app that is recently no longer able to deploy, and failing when building image with buildpacks:
Error failed to fetch an image or build from source: failed to fetch builder image 'index.docker.io/heroku/buildpacks:20': Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 34.200.175.181:443: i/o timeout
I saw someone mention using remote builders requires a good connection, and I’m on a wired connection in the Netherlands.
Error failed to fetch an image or build from source: failed to fetch builder image 'index.docker.io/heroku/buildpacks:20': Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Maybe it’s less transient. That error is saying our remote builder can’t pull from Docker Hub.
You can try removing the fly-builder-* app from the logs. That’ll let it create a new one on a new IP address, which might help.
I wish I had a better answer for this, but until we figure out why Docker Hub is failing from some VMs and regions, we can’t fix it quick enough for you.
You can also workaround this problem by building the docker image locally. fly deploy --local-only is worth a try.
Thanks, that did it. There have been a couple times I’ve had issues where the solution has been to delete the builder, and it’s not always clear that that’s what’s needed.
I ran into this issue very recently, where the build would fail every time. I tried the above solutions, but found out this morning that I could only build when pausing my VPN. This didn’t use to be an issue, and built a couple hundred releases with my VPN on, but just recently found this to be an issue.
I’m guessing my VPN isn’t allowing a specific response request routes required for the build. Anyways, I thought I’d mention unless someone else is running into this same issue.
This was really starting to bother me, as I’m not too keen on leaving my VPN off to deploy as well as use the flyctl ssh console (causes similar issue). So after doing some digging into the protocol used, I found that my VPN was using Wireguard’s protocol, which was causing a conflict with Fly’s Wireguard VPNs. Once changing the protocol to the OpenVPN protocol, I was able to deploy and use SSH without issue.
Now things go well as I expected. I needed to reboot my notebook and try again. I noticed I updated my CLI version yesterday, and after that, things don’t deploy.
My device is Apple Silicon, so building locally is a problem at the moment, but remote-only also a problem. How can I increase that timeout value in the config. There’re plenty of configuration. tcp checks?