Repository navigation
Closed as not planned
Closed as not planned
Copy link
Description
Summary
Browser control server hangs indefinitely when receiving POST requests to /start endpoint, causing timeout errors despite the server being active and responding to other requests.
Steps to reproduce
- Install Clawdbot on Ubuntu 24.04 x64
- Configure browser with Playwright's Chromium:
"browser": { "enabled": true, "defaultProfile": "clawd", "executablePath": "/home/user/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome", "headless": true }
- Start gateway:
clawdbot gateway start - Attempt to use browser:
browser.start()
Expected behavior
Browser should launch successfully in headless mode.
Actual behavior
- Browser control server starts and listens on port 18791
- Server responds to GET requests (e.g.,
curl http://127.0.0.1:18791/returns 200 OK) - POST requests to
/starthang indefinitely without any error logs - After 15 seconds, timeout error occurs:
Can't reach the clawd browser control server at http://127.0.0.1:18791/start (timed out after 15000ms)
Environment
- Clawdbot Version: 2026.1.24-3
- OS: Ubuntu 24.04.1 LTS (x64)
- Node.js: v22.22.0
- Playwright: Chromium 145.0.7632.6 (installed via
npx playwright install chromium) - Display: No X11 (SSH connection, headless mode required)
Additional context
- Playwright works correctly when tested directly:
const browser = await chromium.launch({ executablePath: '/home/user/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome', headless: true }); // Works perfectly ✓
- Browser control server logs show it starts successfully but no errors when it hangs
- Similar to [Bug]: Browser Control Server Fails to Start on arm64 Ubuntu #2702 but on x64 instead of arm64
- The
/startendpoint specifically causes the hang - other endpoints respond
Logs
Gateway starts successfully:
{"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/
Tool call attempt:
{"subsystem":"agent/embedded"} embedded run tool start: tool=browser toolCallId=...
[tools] browser failed: Can't reach the clawd browser control server at http://127.0.0.1:18791/start (timed out after 15000ms)
No errors or exceptions logged during the hang.
Reacted by Jinuk Kim, Creeps44 and Denis
Activity
AlbertoSpain commentedon Jan 29, 2026
Root Cause Analysis
I've identified the exact source of this bug by analyzing the moltbot source code.
The Problem
The endpoint is synchronously blocking during Chrome launch, consuming the entire 15-second timeout without responding to the HTTP client.
Location:
src/browser/chrome.ts-launchClawdChrome()function (lines 201-205)Call Chain
POST /start→src/browser/routes/basic.ts(line ~93)profileCtx.ensureBrowserAvailable()→src/browser/server-context.tslaunchClawdChrome()→src/browser/chrome.tsWhy Both Timeouts Collide
launchClawdChrome()The Fix
The
/startendpoint should:{ status: 'starting' }GET /statuswithrunningfield)Or alternatively:
Related Code
All relevant files in the browser subsystem:
src/browser/server.ts- HTTP server setupsrc/browser/routes/basic.ts- Route handlerssrc/browser/server-context.ts- Profile context andensureBrowserAvailable()src/browser/chrome.ts- The blocking loop inlaunchClawdChrome()This explains why GET requests work fine (no Chrome launch) but POST /start hangs (launches Chrome synchronously).
AlbertoSpain commentedon Jan 29, 2026
Update: Root Cause Confirmed + Workaround Found
Confirmation
Chrome does work on x64 Ubuntu when properly configured. The blocking timeout is definitely the root cause of the issue.
The Missing Piece:
noSandboxIn headless environments without X11, Chrome requires:
Without
noSandbox: true, Chrome fails silently in headless mode.Temporary Workaround
I've patched the timeout locally to validate the fix:
File:
dist/browser/chrome.js(line ~203)With this change +
noSandbox: true, browser now starts successfully:Why The Issue Still Matters
Even though Chrome works with the right config, the synchronous blocking design is still a bug:
Recommended Fix
As stated in the original analysis,
/startshould:{ status: 'starting', profile: '...' }GET /(status endpoint) forrunning: trueThis pattern is standard for long-running operations in REST APIs.
openclaw-barnacle commentedon Feb 14, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
SichangHe commentedon Feb 15, 2026
No stale.
openclaw-barnacle commentedon Feb 24, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
SichangHe commentedon Feb 24, 2026
g
tbertran commentedon Mar 1, 2026
#2702 is marked as a duplicate of this one but 2702 is on arm64 and this is on x64. Are we really sure it's the same issue @sebslight ?
openclaw-barnacle commentedon Mar 9, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Mar 15, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh repro steps.