setup-buildx-action icon indicating copy to clipboard operation
setup-buildx-action copied to clipboard

action suddenly failing with no change in workflows

Open igor47 opened this issue 2 years ago • 36 comments

Contributing guidelines

I've found a bug, and:

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

Description

the action repeatedly fails. here's the error: image

or as text:

Booting builder
  /usr/bin/docker buildx inspect --bootstrap --builder builder-85d1d6d9-4699-4473-8322-ba8e5611d0ea
  #1 [internal] booting buildkit
  #1 pulling image moby/buildkit:buildx-stable-1
  #1 pulling image moby/buildkit:buildx-stable-1 0.2s done
  #1 ERROR: Error response from daemon: Head "https://registry-1.docker.io/v2/moby/buildkit/manifests/buildx-stable-1": unauthorized: incorrect username or password
  ------
   > [internal] booting buildkit:
  ------
  ERROR: Error response from daemon: Head "https://registry-1.docker.io/v2/moby/buildkit/manifests/buildx-stable-1": unauthorized: incorrect username or password
Error: The process '/usr/bin/docker' failed with exit code 1

Expected behaviour

it should set up buildx

Actual behaviour

the action fails

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2


### Workflow logs

Run docker/setup-buildx-action@v2 with: driver: docker-container buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host install: false use: true cleanup: true Docker info /usr/bin/docker version Client: Docker Engine - Community Version: 26.1.3 API version: 1.45 Go version: go1.21.10 Git commit: b72abbb Built: Thu May 16 08:33:29 2024 OS/Arch: linux/amd64 Context: default

Server: Docker Engine - Community Engine: Version: 26.1.3 API version: 1.45 (minimum version 1.24) Go version: go1.21.10 Git commit: 8e96db1 Built: Thu May 16 08:33:29 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.22 GitCommit: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c runc: Version: 1.1.14 GitCommit: v1.1.14-0-g2c9f560 docker-init: Version: 0.19.0 GitCommit: de40ad0 /usr/bin/docker info Client: Docker Engine - Community Version: 26.1.3 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.17.1 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.27.1 Path: /usr/libexec/docker/cli-plugins/docker-compose

Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 15 Server Version: 26.1.3 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: false Native Overlay Diff: false userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c runc version: v1.1.14-0-g2c9f560 init version: de40ad0 Security Options: apparmor seccomp Profile: builtin cgroupns Kernel Version: 6.8.0-1014-azure Operating System: Ubuntu 22.04.5 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 7.753GiB Name: fv-az1715-685 ID: 50f520d9-697c-4217-af0f-2af166f71cd2 Docker Root Dir: /var/lib/docker Debug Mode: false Username: githubactions Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

Buildx version /usr/bin/docker buildx version github.com/docker/buildx v0.17.1 257815a6fbaee88976808020bf04274388275ae8 Creating a new builder instance /usr/bin/docker buildx create --name builder-85d1d6d9-4699-4473-8322-ba8e5611d0ea --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use builder-85d1d6d9-4699-4473-8322-ba8e5611d0ea Booting builder /usr/bin/docker buildx inspect --bootstrap --builder builder-85d1d6d9-4699-4473-8322-ba8e5611d0ea #1 [internal] booting buildkit #1 pulling image moby/buildkit:buildx-stable-1 #1 pulling image moby/buildkit:buildx-stable-1 0.2s done #1 ERROR: Error response from daemon: Head "https://registry-1.docker.io/v2/moby/buildkit/manifests/buildx-stable-1": unauthorized: incorrect username or password

[internal] booting buildkit:


ERROR: Error response from daemon: Head "https://registry-1.docker.io/v2/moby/buildkit/manifests/buildx-stable-1": unauthorized: incorrect username or password Error: The process '/usr/bin/docker' failed with exit code 1


### BuildKit logs

_No response_

### Additional info

_No response_

igor47 avatar Sep 27 '24 20:09 igor47

Yeah I'm seeing this too. I'm thinking some kind of Docker Hub issue.

azlyth avatar Sep 27 '24 20:09 azlyth

I'm having the same problem too.

NERLOE avatar Sep 27 '24 20:09 NERLOE

Same issue here

ArneClaerebout avatar Sep 27 '24 20:09 ArneClaerebout

Same error here!

Holding up our deployment. I wonder if Docker Hub just added the need for credentials when getting buildkit?

EDIT: also want to note that we have this pinned at version 3, not 2. Same error.

oldmanz avatar Sep 27 '24 20:09 oldmanz

same here!

michaelfarrell76 avatar Sep 27 '24 20:09 michaelfarrell76

same here!

shantamg avatar Sep 27 '24 20:09 shantamg

I am also receiving this error. Seems like Docker Hub just changed the auth policy for moby/buildkit.

kevin-presalytics avatar Sep 27 '24 20:09 kevin-presalytics

It does seem to be an issue in docker hub, doing a HEAD request to https://registry-1.docker.io/v2/moby/buildkit/manifests/buildx-stable-1 returns a 401, although pulling the image (docker pull moby/buildkit:buildx-stable-1) works

tpyle avatar Sep 27 '24 20:09 tpyle

i have the same issue

eslamelhadedy avatar Sep 27 '24 20:09 eslamelhadedy

Same here

AndroAmater avatar Sep 27 '24 20:09 AndroAmater

Same here

omar-729 avatar Sep 27 '24 20:09 omar-729

Same here

yavilavi avatar Sep 27 '24 20:09 yavilavi

I can't find anything concrete, but I think that docker hub may have updated to require logins when accessing the manifest api?

I'm gonna try to login with a throw away account to try getting around this.

oldmanz avatar Sep 27 '24 20:09 oldmanz

There's an active incident: https://www.dockerstatus.com/

aud avatar Sep 27 '24 20:09 aud

From : https://www.dockerstatus.com/

Anonymous pulls and password auth continue to work.

image

film42 avatar Sep 27 '24 20:09 film42

Using Google's artifact registry but still having the same issue.

VictorGaiva avatar Sep 27 '24 20:09 VictorGaiva

https://www.dockerstatus.com/

image

yavilavi avatar Sep 27 '24 21:09 yavilavi

We are on a forest fire 🔥

lingxi-at-contextual avatar Sep 27 '24 21:09 lingxi-at-contextual

Our CI/CD pipelines You Have Failed

devdammit avatar Sep 27 '24 21:09 devdammit

Everyone having a nice Friday? :)

alexandrospanayi avatar Sep 27 '24 21:09 alexandrospanayi