fly deploy: grpc: the client connection is closing

On a builder that hadn’t been used for a while, got this:

==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 17.0s (4/15)
 => [internal] load build definition from Dockerfile                                                                                                                                                                                        1.2s
 => => transferring dockerfile: 32B                                                                                                                                                                                                         1.2s
 => [internal] load .dockerignore                                                                                                                                                                                                           1.2s
 => => transferring context: 35B                                                                                                                                                                                                            1.2s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                                                                                                         15.8s
 => ERROR [internal] load build context                                                                                                                                                                                                    10.6s
 => => transferring context: 295B                                                                                                                                                                                                          10.6s
 => [builder 1/8] FROM docker.io/library/debian:bullseye@sha256:171478fbe347a3cfe45058dae333b6ed848fd8ce89f3104c89fa94c245086db1                                                                                                            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
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.21.7/x64/src/runtime/debug/stack.go:24 +0x64
github.com/superfly/flyctl/internal/cli.printError(0x14000522000, 0x1400098fb26, 0x1049675c0?, {0x104d2bf48, 0x1400115c3e0})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:162 +0x3c8
github.com/superfly/flyctl/internal/cli.Run({0x104d48150?, 0x1400013bc80?}, 0x14000522000, {0x1400004c090?, 0x3, 0x3})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:110 +0x7bc
main.run()
	/home/runner/work/flyctl/flyctl/main.go:47 +0x174
main.main()
	/home/runner/work/flyctl/flyctl/main.go:26 +0x20

Deleted the builder, ran deploy again, which created a fresh builder, but then I got this:

==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 15.0s (5/15)
 => [internal] load build definition from Dockerfile                                                                                                                                                                                        1.0s
 => => transferring dockerfile: 697B                                                                                                                                                                                                        1.0s
 => [internal] load .dockerignore                                                                                                                                                                                                           1.0s
 => => transferring context: 188B                                                                                                                                                                                                           1.0s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                                                                                                          0.6s
 => [builder 1/8] FROM docker.io/library/debian:bullseye@sha256:171478fbe347a3cfe45058dae333b6ed848fd8ce89f3104c89fa94c245086db1                                                                                                           13.4s
 => => resolve docker.io/library/debian:bullseye@sha256:171478fbe347a3cfe45058dae333b6ed848fd8ce89f3104c89fa94c245086db1                                                                                                                    0.0s
 => => sha256:2d2786922ceb0b2c5172e2fee1f0c83bc045afc6d96574305fc74bb8300f75de 529B / 529B                                                                                                                                                  0.0s
 => => sha256:52d6bfa40b9aed522212ca658ee9e23c3aeff378b184e09c2fbb23e5f13c7d48 1.46kB / 1.46kB                                                                                                                                              0.0s
 => => sha256:09e2bc8a597c33b54cccaf52f2e21798e2e0df79ab6cb33d3b1dfd4b33a57512 55.08MB / 55.08MB                                                                                                                                            0.5s
 => => sha256:171478fbe347a3cfe45058dae333b6ed848fd8ce89f3104c89fa94c245086db1 1.85kB / 1.85kB                                                                                                                                              0.0s
 => => extracting sha256:09e2bc8a597c33b54cccaf52f2e21798e2e0df79ab6cb33d3b1dfd4b33a57512                                                                                                                                                   1.6s
 => ERROR [internal] load build context                                                                                                                                                                                                    10.4s
 => => transferring context: 601B                                                                                                                                                                                                          10.4s
 => CANCELED [builder 2/8] RUN apt-get update && apt install -y curl python-is-python3 pkg-config build-essential                                                                                                                           8.4s
------
 > [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
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.21.7/x64/src/runtime/debug/stack.go:24 +0x64
github.com/superfly/flyctl/internal/cli.printError(0x140005c8000, 0x14000f51b26, 0x10438b5c0?, {0x10474ff48, 0x140002f4b00})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:162 +0x3c8
github.com/superfly/flyctl/internal/cli.Run({0x10476c150?, 0x140008f9c80?}, 0x140005c8000, {0x1400004c090?, 0x3, 0x3})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:110 +0x7bc
main.run()
	/home/runner/work/flyctl/flyctl/main.go:47 +0x174
main.main()
	/home/runner/work/flyctl/flyctl/main.go:26 +0x20

So it got further, but then a task was cancelled, and it errored out with the same thing as before.

Any ideas?

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