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

error: dial unix /run/buildkit/buildkitd.sock #1570

Open
crazy-max opened this issue Jan 30, 2023 · 10 comments
Open

error: dial unix /run/buildkit/buildkitd.sock #1570

crazy-max opened this issue Jan 30, 2023 · 10 comments

Comments

@crazy-max
Copy link
Member

Got a strange issue in our CI: https://github.com/docker/buildx/actions/runs/4047460673/jobs/6961507308#step:6:16

./hack/release
+ docker buildx bake --set '*.cache-from=type=gha,scope=binaries-darwin-arm64' --set '*.cache-to=type=gha,scope=binaries-darwin-arm64,mode=max' --set '*.platform=darwin/arm64' --set '*.attest=type=sbom' --set '*.attest=type=provenance,mode=max,builder-id=https://github.com/docker/buildx/actions/runs/4047460673' --set '*.args.BUILDKIT_MULTI_PLATFORM=true' --set '*.output=/tmp/buildx-output.JoFuY8dCuC' release
error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory
ERROR: attestations are not supported by the current buildkitd

This attestation error does not look to be the issue. Best guess is checking capabilities fails but got an early issue when connecting to BuildKit.

@polarathene
Copy link

ERROR: attestations are not supported by the current buildkitd

FWIW, this fails with buildx 0.10.0, but I have seen one CI run where 0.10.2 was used instead and the error did not occur. Something was resolved since 0.10.0.

Later this month the images should receive an update for Docker Engine to v23, which will ship a newer BuildKit (0.10.0), not sure if that will make a difference with the error.

@crazy-max
Copy link
Member Author

@polarathene Don't think that's related to my issue. Here it's about a dial error. Not attestations support per se.


Looking back at the logs, it seems the builder failed to boot early actually: https://github.com/docker/buildx/actions/runs/4047460673/jobs/6961507308#step:5:123

#1 [internal] booting buildkit
  #1 pulling image moby/buildkit:v0.11.1
  #1 pulling image moby/buildkit:v0.11.1 0.2s done
  #1 creating container buildx_buildkit_builder-34dc602e-de74-45b6-9a1d-d98a02f19e3d0
  #1 19.82 error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
  #1 creating container buildx_buildkit_builder-34dc602e-de74-45b6-9a1d-d98a02f19e3d0 19.7s done
  #1 ERROR: exit code 1

@pjonsson
Copy link

@crazy-max I think I'm seeing something similar. Here are logs from 3 machines running Ubuntu 22.04 with Docker 23.0.5 after just being rebooted.

The same happened with Docker 23.0.4 and BuildKit 0.11.5, but I did not have the debug output on docker commands enabled at that time, and the problem mysteriously self-healed the next run a couple of hours later.

The logs talk about attestation, but the docker build command contains --load, so it only has --builder ci-builder, it does not enable attestation (#1714).

The log is pasted from a Gitlab build log, so I am not sure if the strange characters come from Gitlab or Docker.

First machine (big):

echo $RO_PASSWORD | docker --config .ro_config login $CI_REGISTRY -u $RO_USER --password-stdin
WARNING! Your password will be stored unencrypted in .ro_config/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
$ docker -l debug --config .ro_config buildx create --name ci-builder --driver docker-container --driver-opt image=moby/buildkit:latest --bootstrap
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:latest
#1 pulling image moby/buildkit:latest 7.6s done
#1 creating container buildx_buildkit_ci-builder0
#1 creating container buildx_buildkit_ci-builder0 4.9s done
#1 DONE 12.5s
ci-builder
$ docker --config .ro_config buildx ls
NAME/NODE     DRIVER/ENDPOINT             STATUS  BUILDKIT PLATFORMS
ci-builder    docker-container                             
  ci-builder0 unix:///var/run/docker.sock running v0.11.6  linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
default *     docker                                       
  default     default                     running 23.0.5   linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
$ docker --config .ro_config build <parameters>

The build works as expected after this.

Second machine (small):

$ docker -l debug --config .ro_config buildx create --name ci-builder --driver docker-container --driver-opt image=moby/buildkit:latest --bootstrap
#1 [internal] booting buildkit
#1 starting container buildx_buildkit_ci-builder0
#1 starting container buildx_buildkit_ci-builder0 22.8s done
#1 22.75 time="2023-04-18T15:47:46Z" level=warning msg="using host network as the defaultime="2023-04-18T15:47:46Z" level=warning msg="using host network as the default"
#1 22.75 time="2023-04-18T15:47:46Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 22.75 �\0\0\0\0\0\0dtime="2023-04-18T15:47:46Z" level=info msg="found 1 workers, default=\"<key-like sequence>\""
#1 22.75 �\0\0\0\0\0\0`time="2023-04-18T15:47:46Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 �\0\0\0\0\0\0\time="2023-04-18T15:47:46Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
#1 22.75 �\0\0\0\0\0\0ytime="2023-04-18T15:47:57time="2023-04-18T15:47:46Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 22.75 time="2023-04-18T15:47:46Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 �\0\0\0time="2023-04-18T15:47:46Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 time="2023-04-18T15:47:57Z" level=info msg="trying next host - response was http.StatusNotFotime="2023-04-18T15:47:57Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T15:54:16Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T15:54:16Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T15:57:52Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 �\0\0\0\0\0\0htime="202time="2023-04-18T15:57:52Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-18T15:59:13Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-18T15:59:13Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-18T17:05:01Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T17:05:01Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T17:24:53Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T17:24:53Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.75 time="2023-04-18T17:31:17Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-18T17:31:17Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T14:23:40Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T14:23:40Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T14:58:35Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T14:58:35Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T17:20:28Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T17:20:28Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T17:46:53Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T17:46:53Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0time="2023-04-19T19:31:05Z" level=info msg="stopping server"
#1 22.75 �\0\0\0\0\0\0�time="2023-04-19T19:31:10Z" level=etime="2023-04-19T19:31:05Z" level=info msg="stopping server"
#1 22.75 buildkitd: context canceled
#1 22.75 �\0\0\0\0\0\0Otime="2023-04-19T19:38:06Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.75 �\0\0\0\0\0\0Rtime="2023-04-19T19:38buildkitd: context canceled
#1 22.75 time="2023-04-19T19:38:06Z" level=warning msg="using host network as the defaultime="2023-04-19T19:38:06Z" level=warning msg="using host network as the default"
#1 22.75 time="2023-04-19T19:38:38Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 22.75 �\0\0\0\0\0\0dtime="2023-04-19T19:38:38Z" level=info msg="found 1 workers, default=\"<key-like sequence>\""
#1 22.75 �\0\0\0\0\0\0`time="2023-04-19T19:38:38Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 �\0\0\0\0\0\0\time="2023-04-19T19:38:43Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
#1 22.75 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0time="2023-04-19T19:38:38Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 22.75 time="2023-04-19T19:38:38Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 �\0\0\0time="2023-04-19T19:38:38Z" level=warning msg="currently, only the default worker can be used."
#1 22.75 time="2023-04-19T20:23:31Z" level=info msg="stopping server"
#1 22.75 �\0\0\0\0\0\0�buildkitd: context canctime="2023-04-19T20:23:31Z" level=info msg="stopping server"
#1 22.75 time="2023-04-19T20:57:42Z" time="2023-04-19T20:57:42Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.75 time="2023-04-19T20:58:01Z" level=info msg="found worker \"<key-like sequence>time="2023-04-19T20:58:01Z" level=info msg="found worker \"sqhi70xjrklqvdpvxuz9tpqq5\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:dd85a0636a79 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/386]"
#1 22.75 time="2023-04-19T20:58:01Z" level=info msg="found 1 workers, default=\"<key-like sequence>\""
#1 22.75 �\0\0\0\0\0\0`time="2023-04-19T20:58time="2023-04-19T20:58:01Z" level=info msg="found 1 workers, default=\"<key-like sequence>\""
#1 22.75 time="2023-04-19T20:58:03Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
#1 22.75 �\0\0\0time="2023-04-19T20:58:03Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
#1 22.75 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0time="2023-04-19T21:14:21Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 �\0\0\0\0\0\0�time="2023-04-19T21:14:30Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Untime="2023-04-19T21:14:21Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T21:27:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0time="2023-04-19T21:27:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T21:52:49Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-19T21:52:49Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.75 time="2023-04-19T22:10:47Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 �\0\0\0\0\0\0htime="202time="2023-04-19T22:10:47Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.75 time="2023-04-19T22:12:39Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-19T22:12:39Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.77 time="2023-04-19T23:30:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-19T23:30:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T07:40:38Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T07:40:38Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T07:41:29Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T07:41:29Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T09:23:42Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T09:23:42Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T09:30:14Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�time="2023-04-20T09:30:18Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Untime="2023-04-20T09:30:14Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T09:39:01Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-20T09:50:04Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�ttime="2023-04-20T09:39:01Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T09:50:07Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-20T09:50:07Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.77 time="2023-04-20T10:03:23Z" level=info msg="trying next host - response was http.StatusNotFound" host=retime="2023-04-20T10:03:23Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.77 time="2023-04-20T10:20:05Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-20T10:20:05Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.77 time="2023-04-20T10:52:58Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T10:52:58Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T13:01:47Z" level=warning msg="healthcheck failed" actualDuration=14.615943ms spanID=ae4time="2023-04-20T13:01:47Z" level=warning msg="healthcheck failed" actualDuration=14.615943ms spanID=ae43722932630481 timeout=30s traceID=e62431209fb7e37212d25c0b6c0506ab
#1 22.77 time="2023-04-20T17:22:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T17:22:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T19:01:14Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T19:01:14Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T19:03:52Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T19:03:52Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T23:02:26Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-20T23:02:26Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T00:40:41Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T00:40:41Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T00:42:51Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T00:42:51Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:04:15Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:04:15Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:51:49Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:51:49Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:53:30Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T15:53:30Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T23:17:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T23:17:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T23:26:24Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�time="2023-04-21T23:26:31Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Untime="2023-04-21T23:26:24Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-21T23:46:22Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-22T00:08:13Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�ttime="2023-04-21T23:46:22Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T00:08:26Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-22T00:08:26Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.77 time="2023-04-22T00:31:43Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T00:31:43Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T10:54:22Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-22T10:55:26Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0httime="2023-04-22T10:54:22Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T10:56:24Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T10:56:24Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T13:53:41Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T13:53:41Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T23:21:36Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T23:21:36Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T23:22:29Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-22T23:22:29Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T10:23:44Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T10:23:44Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T12:56:46Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T12:56:46Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T12:57:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-23T12:57:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-24T00:17:04Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-24T00:17:04Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T00:23:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T00:23:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T00:26:19Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T00:26:19Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T09:00:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T09:00:54Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T10:46:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T10:46:31Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T10:48:10Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T10:48:10Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T12:32:32Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T12:32:32Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T14:16:10Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-25T14:16:10Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-25T14:32:54Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-25T14:32:54Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-25T23:06:05Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-25T23:14:53Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 \0time="2023-04-25T23:06:05Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0time="2023-04-25T23:23:16Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�time="2023-04-25T23:23:23Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Untime="2023-04-25T23:23:16Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T23:33:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-25T23:38:25Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0�ttime="2023-04-25T23:33:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T23:38:33Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: time="2023-04-25T23:38:33Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = content digest sha256:2ab09b027e7f3a0c2e8bb1944ac46de38cebab7145f0bd6effebfe5492c818b6: not found"
#1 22.77 time="2023-04-25T23:54:46Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-25T23:54:46Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T12:17:23Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0htime="2023-04-26T12:19:04Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 �\0\0\0\0\0\0httime="2023-04-26T12:17:23Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T12:19:23Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T12:19:23Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T14:14:45Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.77 time="2023-04-26T14:14:45Z" level=info msg="trying next host - response was http.StatusNotFound" host=registry.ice.ri.se
#1 22.77 time="2023-04-26T15:12:28Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T15:12:28Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T15:56:35Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T15:56:35Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T16:05:32Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T16:05:32Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-26T23:26:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T23:26:48Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T23:28:37Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-26T23:28:37Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 22.77 time="2023-04-27T07:03:28Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T07:03:28Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:14:40Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:14:40Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:39:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:39:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T15:14:23Z" level=info msg="stopping server"
#1 22.77 �\0\0\0\0\0\0�buildkitd: context canceled
#1 22.77 �\0\0\0\0\0\0Otime="2023-04-27T15:56:12Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.77 �\0\0\0\0\0\0Rtime="2023-04-27T15:56:12time="2023-04-27T15:14:23Z" level=info msg="stopping server"
#1 22.77 time="2023-04-27T15:56:12Z" time="2023-04-27T15:56:12Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.77 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
#1 ERROR: exit code 1
------
 > [internal] booting buildkit:
#1 22.77 time="2023-04-27T12:14:40Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:14:40Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:39:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T12:39:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = digest mismatch sha256:66d4b8893d2607dc39e13589bb7d8a473fa4f084d75ae363c0bf92114ae044bb: "
#1 22.77 time="2023-04-27T15:14:23Z" level=info msg="stopping server"
#1 22.77 �\0\0\0\0\0\0�buildkitd: context canceled
#1 22.77 �\0\0\0\0\0\0Otime="2023-04-27T15:56:12Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.77 �\0\0\0\0\0\0Rtime="2023-04-27T15:56:12time="2023-04-27T15:14:23Z" level=info msg="stopping server"
#1 22.77 time="2023-04-27T15:56:12Z" time="2023-04-27T15:56:12Z" level=info msg="auto snapshotter: using overlayfs"
#1 22.77 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
------
ci-builder
$ docker --config .ro_config buildx ls
error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory
NAME/NODE     DRIVER/ENDPOINT             STATUS  BUILDKIT PLATFORMS
ci-builder    docker-container                             
  ci-builder0 unix:///var/run/docker.sock error            
default *     docker                                       
  default     default                     running 23.0.5   linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
Failed to get status for ci-builder (ci-builder0): listing workers: failed to list workers: DeadlineExceeded: context deadline exceeded
$ docker --config .ro_config build <parameters>
error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory
ERROR: listing workers for Build: failed to list workers: Unavailable: failed to receive server preface within timeout

As expected, the build fails. I'm not sure why docker buildx create and docker buildx ls return 0 with the amount of "ERROR" in the logs, but perhaps that is #732?

Third machine (small):

$ docker -l debug --config .ro_config buildx create --name ci-builder --driver docker-container --driver-opt image=moby/buildkit:latest --bootstrap
#1 [internal] booting buildkit
#1 starting container buildx_buildkit_ci-builder0
#1 25.79 time="2023-04-26T20:17:49Z" level=warning msg="using host network as the defaul#1 starting container buildx_buildkit_ci-builder0 25.8s done
time="2023-04-26T20:17:49Z" level=warning msg="using host network as the default"
#1 25.79 time="2023-04-26T20:19:36Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 25.79 �\0\0\0\0\0\0dtime="2023-04-26T20:19:36Z" level=info msg="found 1 workers, default=\"5593t6qdwo08c431cpszur1ld\""
#1 25.79 �\0\0\0\0\0\0`time="2023-04-26T20:19:36Z" level=warning msg="currently, only the default worker can be used."
#1 25.79 �\0\0\0\0\0\0\time="2023-04-26T20:19:39Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
#1 25.79 �\0\0\0\0\0\0htime="2023-04-26T20:47:58time="2023-04-26T20:19:36Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#1 25.79 time="2023-04-26T20:19:36Z" level=warning msg="currently, only the default worker can be used."
#1 25.79 �\0\0\0time="2023-04-26T20:19:36Z" level=warning msg="currently, only the default worker can be used."
#1 25.79 time="2023-04-26T20:47:58Z" level=warning msg="forcibly turning on oci-mediatype mode for attime="2023-04-26T20:47:58Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-26T20:49:51Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-26T20:49:51Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-26T23:43:57Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-26T23:43:57Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T07:09:15Z" level=warning msg="healthcheck failed" actualDuration=2.730639ms spanID=08a1time="2023-04-27T07:09:15Z" level=warning msg="healthcheck failed" actualDuration=2.730639ms spanID=08a1bdd812626c38 timeout=30s traceID=839205f66c646af4fb2141b338a3c9b8
#1 25.79 time="2023-04-27T07:38:27Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T07:38:27Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T15:13:51Z" level=info msg="stopping server"
#1 25.79 �\0\0\0\0\0\0�buildkitd: context canceled
#1 25.79 �\0\0\0\0\0\0time="2023-04-27T15:13:51Z" level=info msg="stopping server"
#1 25.79 time="2023-04-27T15:56:16Z" time="2023-04-27T15:56:16Z" level=info msg="auto snapshotter: using overlayfs"
#1 25.79 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
#1 ERROR: exit code 1
------
 > [internal] booting buildkit:
#1 25.79 time="2023-04-26T23:43:57Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-26T23:43:57Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T07:09:15Z" level=warning msg="healthcheck failed" actualDuration=2.730639ms spanID=08a1time="2023-04-27T07:09:15Z" level=warning msg="healthcheck failed" actualDuration=2.730639ms spanID=08a1bdd812626c38 timeout=30s traceID=839205f66c646af4fb2141b338a3c9b8
#1 25.79 time="2023-04-27T07:38:27Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T07:38:27Z" level=warning msg="forcibly turning on oci-mediatype mode for attestations"
#1 25.79 time="2023-04-27T15:13:51Z" level=info msg="stopping server"
#1 25.79 �\0\0\0\0\0\0�buildkitd: context canceled
#1 25.79 �\0\0\0\0\0\0time="2023-04-27T15:13:51Z" level=info msg="stopping server"
#1 25.79 time="2023-04-27T15:56:16Z" time="2023-04-27T15:56:16Z" level=info msg="auto snapshotter: using overlayfs"
#1 25.79 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"
------
ci-builder
$ docker --config .ro_config buildx ls
error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory
NAME/NODE     DRIVER/ENDPOINT             STATUS  BUILDKIT PLATFORMS
ci-builder    docker-container                             
  ci-builder0 unix:///var/run/docker.sock error            
default *     docker                                       
  default     default                     running 23.0.5   linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386
Failed to get status for ci-builder (ci-builder0): listing workers: failed to list workers: DeadlineExceeded: context deadline exceeded
$ docker --config .ro_config build <parameters>
<builds the image>

@willzhang
Copy link

willzhang commented Sep 12, 2023

same here use: https://github.com/argoproj/argo-workflows/blob/master/examples/buildkit-template.yaml

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  12m                default-scheduler  Successfully assigned default/buildkit-xfh56-image-927359974 to ubuntu
  Normal   Pulled     12m                kubelet            Container image "quay.io/argoproj/argoexec:v3.4.10" already present on machine
  Normal   Created    12m                kubelet            Created container init
  Normal   Started    12m                kubelet            Started container init
  Normal   Pulled     12m                kubelet            Container image "quay.io/argoproj/argoexec:v3.4.10" already present on machine
  Normal   Created    12m                kubelet            Created container wait
  Normal   Started    12m                kubelet            Started container wait
  Normal   Pulling    12m                kubelet            Pulling image "moby/buildkit:v0.12.1"
  Normal   Pulled     12m                kubelet            Successfully pulled image "moby/buildkit:v0.12.1" in 51.98314608s (51.983168709s including waiting)
  Normal   Created    11m                kubelet            Created container main
  Normal   Started    11m                kubelet            Started container main
  Warning  Unhealthy  11m (x2 over 11m)  kubelet            Readiness probe failed: error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"

@Malik-Muneeb
Copy link

Malik-Muneeb commented Nov 30, 2023

We are also facing the same issue here. Do we have any resolution so far?

`

[internal] booting buildkit:
24.28 error: failed to list workers: Unavailable: connection error: desc = "transport: error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"


ERROR: exit code 1
`

@MalteMagnussen
Copy link

MalteMagnussen commented May 7, 2024

I literally just installed buildkit from homebrew, and hitting this error.

What does it mean?

$ brew install buildkit

$ buildctl --help

$ buildctl du
error: failed to call diskusage: Unavailable: connection error: desc = "transport: Error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"

$ buildctl --version
buildctl github.com/moby/buildkit 0.13.2 2e18d709fefdcc2db20853ee241c75b058189d39

@munishchouhan
Copy link

facin the same issue in mac m2
error: listing workers for Build: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory"

@tarek1375
Copy link

Any solution to this ?
Facing the same error.
error: desc = "transport: Error while dialing: dial unix /run/buildkit/buildkitd.sock

@munishchouhan
Copy link

I solved this error by adding --entrypoint buildctl-daemonless.sh

@munishchouhan
Copy link

if you still getting this error in mac, you can use --platform linux/arm64

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

9 participants