earthly: buildkitd Crashes with `CGroups V2 - sh: write error: Not supported`

Hello!

Im trying to package earthly for Gentoo Linux and as a test project I’m using https://github.com/earthly/hello-world.

When running earthly +hello I get the following error:

 Init πŸš€β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

           buildkitd | Starting buildkit daemon as a docker container (earthly-buildkitd)...
Share your logs with an Earthly account (experimental)! Register for one at https://ci.earthly.dev.
Error: build new buildkitd client: maybe start buildkitd: wait until started: buildkitd crashed
It seems that buildkitd is shutting down or it has crashed. You can report crashes at https://github.com/earthly/earthly/issues/new.

================================= System Info ==================================

version: 0.7.2
build-sha: e6fed708700425fc2616bd1e7a0f202d414f5f23
platform: linux/amd64; Gentoo 

================================ Docker Version ================================

&containerutil.FrontendInfo{ClientVersion:"20.10.22", ClientAPIVersion:"1.41", ClientPlatform:"linux/amd64", ServerVersion:"20.10.22", ServerAPIVersion:"1.41", ServerPlatform:"linux/amd64", ServerAddress:"/var/run/docker.sock"}

================================ Buildkit Logs =================================

starting earthly-buildkit with EARTHLY_GIT_HASH=e6fed708700425fc2616bd1e7a0f202d414f5f23 BUILDKIT_BASE_IMAGE=github.com/earthly/buildkit:f8a515367d7b629d375897715ff28ea5ad9c0c8f+build
detected cgroups v2; buildkit/entrypoint.sh running under pid=1

The earthly-buildkitd logs:

starting earthly-buildkit with EARTHLY_GIT_HASH=e6fed708700425fc2616bd1e7a0f202d414f5f23 BUILDKIT_BASE_IMAGE=github.com/earthly/buildkit:f8a515367d7b629d375897715ff28ea5ad9c0c8f+build
detected cgroups v2; buildkit/entrypoint.sh running under pid=1
sh: write error: Not supported

sh: write error: Not supported looks very suspicious, you you think there is something wrong with the docker installation or with buildkitd container?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18

Commits related to this issue

Most upvoted comments

if it does show up again please reopen this issue.

This issue is solved for me with Earthly version 0.17.4. Tested it with the hello example and with a personal project. Thanks!

Excellent, thank you! I will stress test i over the coming weeks but I can run the hello world example from the docs.

Would it also make sense to rename this issue to e.g. β€œbuildkitd Crashes with CGroups V2 - sh: write error: Not supported” ?