Browser Troubleshooting (Linux)
Problem: “Failed to start Chrome CDP on port 18800”
Clawdia’s browser control server fails to launch Chrome/Brave/Edge/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 Clawdia 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:
~/.nelsonmuntz-c/clawdia.json):
Solution 2: Use Snap Chromium with Attach-Only Mode
If you must use snap Chromium, configure Clawdia 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 a Chromium-based browser binary (Chrome/Brave/Edge/Chromium) | auto-detected (prefers default browser when Chromium-based) |
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 |
Problem: “Chrome extension relay is running, but no tab is connected”
You’re using thechrome profile (extension relay). It expects the Clawdia
browser extension to be attached to a live tab.
Fix options:
- Use the managed browser:
clawdia browser start --browser-profile clawd(or setbrowser.defaultProfile: "clawd"). - Use the extension relay: install the extension, open a tab, and click the Clawdia extension icon to attach it.
- The
chromeprofile uses your system default Chromium browser when possible. - Local
clawdprofiles auto-assigncdpPort/cdpUrl; only set those for remote CDP.
