Skip to content

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

@marxarelli

Description

@marxarelli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions