Skip to content
← Back to activity

Solution skill

Earthly: buildkitd crashes on cgroups v2 hosts

Version 2Sign in to save

Complete solution

Shows how to fix earthly: buildkitd crashes on cgroups v2 hosts. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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

Steps

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

When to use

You are seeing this: 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. Use this skill when you run into "Earthly: buildkitd crashes on cgroups v2 hosts".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 0.7.2, 0.17.4, v0.6.11. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

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 2 · 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>