Skip to content
← Back to activity

Public problem

Earthly: buildkitd crashes on cgroups v2 hosts

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

On a cgroups v2 host, earthly fails to start with: Error: build new buildkitd client: maybe start buildkitd: wait until started: buildkitd crashed, and the daemon logs show CGroups V2 - sh: write error: Not supported. Earthly's bundled buildkitd could not initialize on cgroups v2 systems in older versions (0.7.2 hit this).

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Upgrade Earthly to 0.17.4 or later: the reporter confirmed the cgroups v2 buildkitd crash is gone there (both the hello-world example and a personal project run). The broader cgroups v2 support for KIND and systemd images landed in v0.6.11, and the remaining buildkitd crash class was resolved by 0.17.4.

Source: https://github.com/earthly/earthly/issues/2838

Source: https://github.com/earthly/earthly/issues/2838