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

buildx failed with: error: failed to solve: blob not found #422

Closed
mmeendez8 opened this issue Jul 29, 2021 · 2 comments
Closed

buildx failed with: error: failed to solve: blob not found #422

mmeendez8 opened this issue Jul 29, 2021 · 2 comments
Labels
area/cache kind/upstream Changes need to be made on upstream project

Comments

@mmeendez8
Copy link

Troubleshooting

Before submitting a bug report please read the Troubleshooting doc.

Behaviour

Steps to reproduce this issue

  1. Create a workflow that builds and pushes a container to ghcr.io following https://github.com/docker/build-push-action/pull/4062
  2. Worked fine for a while but suddenly error message appear

Expected behaviour

Build and push image caching layers.

Actual behaviour

Tell us what happens instead
Error appears when exporting cache

------
 > exporting cache:
------
error: failed to solve: blob not found
Error: buildx failed with: error: failed to solve: blob not found

Configuration

name: Continuous Integration

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  build_docker:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Prepare
        id: prep
        run: |
          IMAGE="ghcr.io/****"
          DOCKERFILE="Dockerfile"
          echo ::set-output name=image::${IMAGE}
          echo ::set-output name=dockerfile::${DOCKERFILE}

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
        with:
          version: v0.6.0
          buildkitd-flags: --debug

      - name: Login to GitHub Container Registry
        uses: docker/login-action@v1
        with:
          registry: ghcr.io
          username: ${{ github.repository_owner }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build production image
        uses: docker/build-push-action@v2
        with:
          context: .
          builder: ${{ steps.buildx.outputs.name }}
          file: ${{ steps.prep.outputs.dockerfile }}
          push: true
          tags: ${{ steps.prep.outputs.image }}
          cache-from: type=gha
          cache-to: type=gha,mode=max
          target: deploy

Logs

build_docker.zip

@crazy-max
Copy link
Member

crazy-max commented Jul 29, 2021

@mmeendez8 Thanks for your feedback. This issue is currently tracked in docker/buildx#681.

@crazy-max crazy-max added the kind/upstream Changes need to be made on upstream project label Jul 29, 2021
lopopolo added a commit to artichoke/docker-artichoke-nightly that referenced this issue Aug 9, 2021
There are still some bugs in the `gha` cache backend that are causing
builds to fail:

- docker/buildx#681
- docker/build-push-action#422

Removing caching until upstream resolves these issues.
PiDelport added a commit to ntls-io/nautilus-wallet that referenced this issue Aug 31, 2021
There seems to be an issue currently where concurrent builds cause the
Docker GHA cache exporter to trip over GitHub throttling limits.

Background reading:

- buildx failed with: error: failed to solve: blob not found #422
docker/build-push-action#422

- Copy from previous stage fails #681
docker/buildx#681

- GHA export cache fails with mode=max #2276
moby/buildkit#2276

Try to work around this by limiting the overall concurrency to 1 for
this workflow.
PiDelport added a commit to ntls-io/nautilus-wallet that referenced this issue Sep 1, 2021
There seems to be an issue currently where concurrent builds cause the
Docker GHA cache exporter to trip over GitHub throttling limits.

Background reading:

- buildx failed with: error: failed to solve: blob not found #422
docker/build-push-action#422

- Copy from previous stage fails #681
docker/buildx#681

- GHA export cache fails with mode=max #2276
moby/buildkit#2276

Try to work around this by limiting the overall concurrency to 1 for
this workflow.
PiDelport added a commit to ntls-io/nautilus-wallet that referenced this issue Sep 1, 2021
There seems to be an issue currently where concurrent builds cause the
Docker GHA cache exporter to trip over GitHub throttling limits.

Background reading:

- buildx failed with: error: failed to solve: blob not found #422
docker/build-push-action#422

- Copy from previous stage fails #681
docker/buildx#681

- GHA export cache fails with mode=max #2276
moby/buildkit#2276

Try to work around this by limiting the overall concurrency to 1 for
this workflow.
PiDelport added a commit to ntls-io/nautilus-wallet that referenced this issue Sep 1, 2021
There seems to be an issue currently where concurrent builds cause the
Docker GHA cache exporter to trip over GitHub throttling limits.

Background reading:

- buildx failed with: error: failed to solve: blob not found #422
docker/build-push-action#422

- Copy from previous stage fails #681
docker/buildx#681

- GHA export cache fails with mode=max #2276
moby/buildkit#2276

Try to work around this by limiting the overall concurrency to 1 for
this workflow.
PiDelport added a commit to ntls-io/nautilus-wallet that referenced this issue Sep 2, 2021
There seems to be an issue currently where concurrent builds cause the
Docker GHA cache exporter to trip over GitHub throttling limits.

Background reading:

- buildx failed with: error: failed to solve: blob not found #422
docker/build-push-action#422

- Copy from previous stage fails #681
docker/buildx#681

- GHA export cache fails with mode=max #2276
moby/buildkit#2276

Try to work around this by limiting the overall concurrency to 1 for
this workflow.
@crazy-max
Copy link
Member

Should be fixed docker/buildx#681 (comment). If you encounter this kind of issue with GHA cache please open an issue on BuildKit repo. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cache kind/upstream Changes need to be made on upstream project
Projects
None yet
Development

No branches or pull requests

2 participants