In the past 3 days I’ve been struggling again with an old friend:
------ > [internal] load build context: ------
Error: failed to fetch an image or build from source: error building: failed to solve: rpc error: code = Canceled desc = grpc: the client connection is closing
The usual tricks adding --local-only or --remote-only, destroying the builder and upgrading flyctl haven’t solved it yet for me.
Thank you for sharing that error! I want to ask, do you mind sharing what came before the grpc error in the stacktrace? Also what OS are you on and what is your Docker version? You can run docker version to find out.
Through most of the research/articles I have seen that consist of this issue, they are mostly resolved by:
Restarting your computer
Updating your computer
Updating docker version
A side question: Is your flyctl version up to date?
Now looking to deploy a new version and getting again the same issue. The partial error message is now:
WARN Failed to start remote builder heartbeat: 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
If you are still experiencing this issue, I would suggest to run flyctl wireguard reset and see if that resolves it for you. This should help kick the flyctl client into gear and give it a reboot, since it seems it’s having trouble reaching your organization’s wireguard VPN.