Playwright · infra · fg-0070

Playwright fails with 'libglib-2.0.so.0: cannot open shared object file' on a Nixpacks build

If you see libglib-2.0.so.0: cannot open shared object file, the cause and the fix for Playwright are below, last verified 2026-06-22.

Staletrust 50/100

This trap has not been confirmed recently and may be out of date.

Symptom
libglib-2.0.so.0: cannot open shared object fileBrowser binary is installed but launch fails
Cause
playwright install --with-deps needs apt-get, which the Nixpacks build sandbox does not offer, so the fallback installed the browser without its system libraries.
Fix
Build from the official Playwright Docker image, keeping its tag in step with the playwright package version.
Apply
FROM mcr.microsoft.com/playwright:v1.60.0-jammy
Affected
Playwright 1.60.0 on Railway Nixpacks, June 2026

Last verified 2026-06-22 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun