Browser Troubleshooting (Linux)
Problem: “Failed to start Chrome CDP on port 18800”
Clawdbot’s browser control server fails to launch Chrome/Chromium with the error:Root Cause
On Ubuntu (and many Linux distros), the default Chromium installation is a snap package. Snap’s AppArmor confinement interferes with how Clawdbot spawns and monitors the browser process. Theapt install chromium command installs a stub package that redirects to snap:
Solution 1: Install Google Chrome (Recommended)
Install the official Google Chrome.deb package, which is not sandboxed by snap:
~/.clawdbot/clawdbot.json):
Solution 2: Use Snap Chromium with Attach-Only Mode
If you must use snap Chromium, configure Clawdbot to attach to a manually-started browser:- Update config:
- Start Chromium manually:
- Optionally create a systemd user service to auto-start Chrome:
systemctl --user enable --now clawd-browser.service
Verifying the Browser Works
Check status:Config Reference
| Option | Description | Default |
|---|---|---|
browser.enabled | Enable browser control | true |
browser.executablePath | Path to Chrome/Chromium binary | auto-detected |
browser.headless | Run without GUI | false |
browser.noSandbox | Add --no-sandbox flag (needed for some Linux setups) | false |
browser.attachOnly | Don’t launch browser, only attach to existing | false |
browser.cdpPort | Chrome DevTools Protocol port | 18800 |