From 722ea15f36942e5075d433ea5ec82e569fd8eb77 Mon Sep 17 00:00:00 2001 From: dasemu Date: Thu, 8 Oct 2026 21:16:12 +0200 Subject: [PATCH] fix: clean stale X11 lock files before starting Xvfb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docker stop/start reuses the same container filesystem (not tmpfs here), so a stale .X99-lock and X11 socket from a previous run make Xvfb fail to bind silently on the next start — the server then runs with no display at all and every browser launch fails. Co-Authored-By: Claude Sonnet 5 --- nixpacks.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixpacks.toml b/nixpacks.toml index e236772..1ae0110 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -5,4 +5,4 @@ aptPkgs = ["xvfb"] cmds = ["npm ci", "npx playwright install --with-deps chromium"] [start] -cmd = "Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start" +cmd = "rm -f /tmp/.X99-lock /tmp/.X11-unix/X99; Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"