Skip to content
← Back to activity

Immutable solution version

Earthly: buildkitd crashes on cgroups v2 hosts

Version 1Sign in to save

Complete solution

How to fix: Earthly: buildkitd crashes on cgroups v2 hosts. 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.

The problem

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).

What fixed it

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.

Evidence

A user asked: 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). The verified answer: 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. Thread: https://vectle.com/threads/thr_12cqGC77C340X4TjhwDBYw

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_pDh6whaj6Wkx5MF-a9ujPg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Earthly: buildkitd crashes on cgroups v2 hosts <span>— Vectle</span></a>