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

GHA build cache ERROR: failed to solve: Internal: not found #5784

Open
4 tasks done
bhperry opened this issue Feb 26, 2025 · 7 comments
Open
4 tasks done

GHA build cache ERROR: failed to solve: Internal: not found #5784

bhperry opened this issue Feb 26, 2025 · 7 comments

Comments

@bhperry
Copy link

bhperry commented Feb 26, 2025

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

@tonistiigi
Copy link
Member

Might be related to Github moving to V2 version of their API https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/

@bhperry
Copy link
Author

bhperry commented Feb 27, 2025

I did see some other mentions of upcoming cache changes. The fact that it generally does not happen on retry made me think it wasn't that. The brownout dates are certainly interesting, but it happened this morning which is not in the listed dates.

@tonistiigi
Copy link
Member

We already have v2 implementation in BuildKit v0.20.0 . Afaics, most repositories are already using v2 when runners start, although at least initially only some repositories had support. The deadlines are for shutting down v1.

@tonistiigi
Copy link
Member

If you have a link for your Github actions run then you can post it for more details.

@bhperry
Copy link
Author

bhperry commented Feb 27, 2025

It says deprecation of v1-v2 in that article, which was my previous understanding as well. Only v3-v4 supported in future. Ah I understnd now, V2 of the API does not map to the versioning of the action.

This is on a private repository unfortunately, can't link.

@Link-
Copy link

Link- commented Feb 27, 2025

@bhperry - We'd be very grateful if you would reach out to the GitHub support team, open a ticket and drop the link to your run in the private repository. We'd like to take a look to understand this behaviour. Feel free to mention this comment as well and ask the team to escalate to engineering.

@bhperry
Copy link
Author

bhperry commented Feb 27, 2025

@Link- ticket submitted

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

No branches or pull requests

3 participants