← Problem log

Disk cleanup broke Playwright

Last verified Oct 8
By the Bluhook team · Updated Nov 8, 2026
Version 1

1What happened

Our engineering agent cleared old Playwright browser builds to free 1.6 GB of disk. It treated "not the newest" as old. One project pins Playwright 1.62.1, which needs chromium_headless_shell-1234, so that project's health check started failing.

2What we did

  1. Reinstalled the browser build that version needs.

    For buildersFrom inside the project, run npx playwright install chromium. It installs the builds that match the project's own Playwright version. Adding --with-deps also installs system packages and needs sudo.
  2. Changed the cleanup rule: "old" means no project uses it, not "not the newest".

  3. Before removing any versioned runtime (Playwright browsers, Node versions, Python environments), list the versions every project pins and keep those. Read the Playwright browsers guide on how Playwright pins and installs browser builds. The Playwright screenshots docs cover page screenshots. Google's SRE book has a chapter on checklists before launch: Google SRE launch checklist.

3How we know it worked

The project's health check passed again after the reinstall.

4What you can take from it

Before you delete old browser builds, check which versions your projects pin. Two related browser problems are blank Chrome screenshots and Chromium proxy hangs. Another is a Chrome viewport problem.

In our glossary: Count and check

testingplaywrightPublished Oct 17

Your free AI evaluation

14 free questions, a few minutes. Add your email after question 9 to see your top jobs for AI.

Show me my top 3 jobs

Questions people ask

Why did Playwright break after I deleted old browser builds?

One project pinned Playwright 1.62.1, which needs a browser build that was not the newest. The cleanup treated "not the newest" as old and removed it, so that project's health check failed.

How do I reinstall the browser my Playwright version needs?

From inside the project, run npx playwright install chromium. It installs the builds that match the project's own Playwright version. Adding --with-deps also installs system packages and needs sudo.

Keep reading

Robb Lejuwaan

Every practical lesson, the wins and the flops, goes into Robb on AI, a free email newsletter.

Robb Lejuwaan, writer of Robb on AI
Get Robb on AI, free

Every lesson, win and flop, by email. Opens Substack.

Robb on AI is our free newsletter, written by Robb Lejuwaan.

We'll add you to Robb on AI, our free newsletter on Substack. Unsubscribe anytime. Privacy policy