Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "flightcontrol: exceeded retry timeout" during file op with many actions #1822

Closed
marxarelli opened this issue Nov 21, 2020 · 3 comments
Milestone

Comments

@marxarelli
Copy link
Contributor

Running the latest master of buildkitd, I'm seeing the following during a single file operation that copies a large number of source directories from a local context.

error: rpc error: code = Unknown desc = flightcontrol: exceeded retry timeout
failed to solve
github.com/moby/buildkit/client.(*Client).solve.func2
	github.com/moby/buildkit/client/solve.go:215
golang.org/x/sync/errgroup.(*Group).Go.func1
	golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57
runtime.goexit
	runtime/asm_amd64.s:1373

I've created small setup that can be used as a minimal case to repro the issue. The gist also includes a Jaeger trace of one local failure.

go build .
./setup.sh
./repro | buildctl build --local context=.

It attempts to copy 150 directories from the ./data directory of the local context. Note this repro case did not result in the error every time as does my real world case.

@tonistiigi tonistiigi added this to the v0.8.0 milestone Nov 21, 2020
@thaJeztah thaJeztah modified the milestones: v0.8.0, v0.8.2 Feb 4, 2021
@Voziv
Copy link

Voziv commented May 19, 2021

Any idea what's going on with this?

I've been seeing this on our github action runs when copying large volumes of files, node_modules or a composer vendor folder from our build images. It doesn't happen consistently and I haven't been able to reproduce it locally which has made it really hard to figure out whats going on.

@qdm12
Copy link

qdm12 commented Jun 4, 2021

I was copying the Go image source files (~300MB) from an image to my image being built (using buildkit) using

COPY --from=go /usr/local/go /usr/local/go

And that has been failing occasionally the last few days on Github Actions with Error: buildx call failed with: error: failed to solve: rpc error: code = Unknown desc = failed to compute cache key: flightcontrol: exceeded retry timeout (logs)


EDIT (2021-06-05): That totally blocks me for cross platform builds with buildkit. It even happens on amd64 with simple RUN commands

RUN git clone --depth 1 --branch ${KUBECTX_VERSION} https://github.com/ahmetb/kubectx.git .

@tonistiigi
Copy link
Member

Should be fixed with #2195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants