im having this issue every time i try to deploy

==> Building image
Remote builder fly-builder ready
==> Building image with Docker
→ docker host: 20.10.12 linux x86_64
[+] Building 26.1s (6/9)
=> [internal] load build definition from Dockerfile 2.3s
=> => transferring dockerfile: 32B 2.3s
=> [internal] load .dockerignore 2.3s
=> => transferring context: 34B 2.3s
=> [internal] load metadata for Docker 0.5s
=> [1/5] FROM Docker 0.0s
=> ERROR [internal] load build context 20.3s
=> => transferring context: 118.73kB 20.3s
=> CACHED [2/5] RUN apt-get update && apt-get install -y python3-pip python3-venv python3-dev python3-setuptools python3-wheel 0.0s

[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

1 Like

20 seconds to transfer 118kb is suspicious. Try deleting the remote builder with fly apps destroy <name>. A new one will get created on the next build. This might help get you unstuck.

1 Like

@michael : can this be some node/server/service used by flyctl that has slow response time?

I am asking because yesterday I was having a lot of trouble deploying an app as well, and I’ve checked my internet, I did delete the remote builder, and still it was taking a long time.

I was about to send a message here, but left my PC running and came back 1 hour later and it deployed.

One time, I hit ctrl+c two times and it printed out a warning on Post "https://api.fly.io/graphql".

I run fly doctor agent reset… but after all that was still take a long time.
When failed I was getting this error message:

Error: failed to fetch an image or build from source: error rendering push status stream: write tcp [2403:2500:8000:41:0:4978:bf54:1]:33092->[2a09:8280:1:f132:9b03:c39f:b404:f5d2]:443: write: broken pipe

Anyway, it seemed to me that some server used in the process was slow responding, and not my internet itself…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.