Skip to content

Build cache ERROR: failed to solve: Internal: not found #5784

@bhperry

Description

@bhperry

Contributing guidelines and issue reporting guide

Well-formed report checklist

  • I have found a bug that the documentation does not mention anything about my problem
  • I have found a bug that there are no open or closed issues that are related to my problem
  • I have provided version/information about my environment and done my best to provide a reproducer

Description of bug

Bug description

Lately I have started to see docker builds in Github Actions that use the GHA build cache fail regularly when exporting the cache at the end of a build. Re-running the build will often cause it to succeed, but we get the failures almost every day now.

Have been running with the GHA cache for a while now with no issues.

#9 exporting to GitHub Actions Cache
#9 preparing build cache for export
#9 preparing build cache for export 0.4s done
#9 DONE 0.4s
ERROR: failed to solve: Internal: not found

Reproduction

Happens with a variety of different image builds, some of which are very thin wrappers on existing images. So any basic Dockerfile should work.

We run the builds from within a github action, automated by python scripts. But the end result is to run commands like this:

docker buildx build --cache-from type=gha,scope=build-cache-daily-${NAME} --cache-to type=gha,scope=build-cache-daily-${NAME},mode=max,ghtoken=${GH_TOKEN},repository=${REPO}  --tag test:latest -f Dockerfile .

Version information

ubuntu-20.04 github actions runner

Docker-Buildx 0.21.1
Docker Client 26.1.3

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions