Skip to content

Error: buildx failed with: ERROR: failed to build: failed to solve: process /dev/.buildkit_qemu_emulator #1436

@y-nk

Description

@y-nk

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

I'm having a CI workflow which has had run for months, without any diff. Suddenly i got to see this error coming from the build-push-action:

Dockerfile:22
--------------------
  20 |     FROM node:${NODE_VERSION}-alpine
  21 |     
  22 | >>> RUN apk add --no-cache tini
  23 |     
  24 |     WORKDIR /app
--------------------
ERROR: failed to build: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apk add --no-cache tini" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to build: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apk add --no-cache tini" did not complete successfully: exit code: 1

I have the setup-buildx-action@v3 added prior this build step.

Expected behaviour

It should build as usual

Actual behaviour

It stopped building without changes in workflow source

Repository URL

No response

Workflow run URL

No response

YAML workflow

It's a bit too big. There are composite actions involved. Expect something as:

      - uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

      - id: login-ecr
        uses: aws-actions/amazon-ecr-login@v2

      - uses: docker/setup-buildx-action@v3

      - uses: actions/checkout@v4

      - uses: jdx/mise-action@v2

      - run: pnpm install --frozen-lockfile

      - id: stack
        uses: ./.github/actions/build-stack

      - id: api
        uses: ./.github/actions/build-api

      - uses: docker/build-push-action@v5
        with:
          context: ${{ steps.api.outputs.build-path }}
          platforms: linux/arm64
          tags: |
            ${{ steps.stack.outputs.api-ecr-url }}:latest
          push: true

Workflow logs

No response

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions