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

"cache key: blob not found" error after upgrading from buildkit 12.1 to 13.0 #4765

Closed
gibsondan opened this issue Mar 15, 2024 · 1 comment · Fixed by #4771
Closed

"cache key: blob not found" error after upgrading from buildkit 12.1 to 13.0 #4765

gibsondan opened this issue Mar 15, 2024 · 1 comment · Fixed by #4771

Comments

@gibsondan
Copy link

This morning a user reported that our github action started failing with the following error in a step that uses the docker/build-push-action@v4 action :

Dockerfile:7
--------------------
   6 |     COPY *dagster_cloud_pre_install.sh *setup.py *requirements.txt /
   7 | >>> RUN if [ -f "dagster_cloud_pre_install.sh" ]; then \
   8 | >>>         ./dagster_cloud_pre_install.sh; \
   9 | >>>     fi
  10 |     
--------------------
ERROR: failed to solve: failed to compute cache key: blob sha256:043e7f3dd05ab4bea31533694054d95fdc672fa089066248f176a60cb051493c not found
Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: blob sha256:043e7f3dd05ab4bea31533694054d95fdc672fa089066248f176a60cb051493c not found

The only significant change they noticed between the last time it succeeded and the first time that it failed was that the Buildkit version upgraded from v0.12.1 to v0.13.0.

The symptoms here look identical to docker/buildx#681 - I see that KevinMind reported a similar problem with the same version bump this morning.

Unfortunately I do not have a way to reliably reproduce this problem yet, but I figured with two independent reports on the same version upgrade it was still worth filing an issue.

abrookins added a commit to PrefectHQ/prefect that referenced this issue Mar 15, 2024
Buildx 0.13.0 appears to break caching:
moby/buildkit#4765

We've also seen this:
https://github.com/PrefectHQ/prefect/actions/runs/8299698555/job/22718642247?pr=12323

Pin to 0.12.5 to see if that prevents the issue.
@tonistiigi tonistiigi added this to the v0.13.1 milestone Mar 16, 2024
@tonistiigi
Copy link
Member

If anyone has a way to reproduce this, then let us know to aide us debugging this issue.

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

Successfully merging a pull request may close this issue.

2 participants