docs: refresh daemon troubleshooting guidance

This commit is contained in:
Peter Steinberger
2026-01-08 10:42:23 +01:00
parent af2accf5e3
commit 840c64084e
5 changed files with 16 additions and 4 deletions

View File

@@ -172,8 +172,11 @@ clawdbot logs --follow
Notes:
- `daemon status` probes the Gateway RPC by default using the daemons resolved port/config (override with `--url`).
- `daemon status --deep` adds system-level scans (LaunchDaemons/system units).
- `daemon status --no-probe` skips the RPC probe (useful when networking is down).
- `daemon status --json` is stable for scripts.
- `daemon status` reports **supervisor runtime** (launchd/systemd running) separately from **RPC reachability** (WS connect + status RPC).
- `daemon status` prints config path + probe target to avoid “localhost vs LAN bind” confusion and profile mismatches.
- `daemon status` includes the last gateway error line when the service looks running but the port is closed.
- `logs` tails the Gateway file log via RPC (no manual `tail`/`grep` needed).
- If other gateway-like services are detected, the CLI warns. We recommend **one gateway per machine**; one gateway can host multiple agents.
- Cleanup: `clawdbot daemon uninstall` (current service) and `clawdbot doctor` (legacy migrations).

View File

@@ -68,7 +68,7 @@ ssh -N remote-gateway &
### Step 5: Restart Clawdbot.app
```bash
killall Clawdbot
# Quit Clawdbot.app (⌘Q), then reopen:
open /path/to/Clawdbot.app
```

View File

@@ -286,6 +286,8 @@ clawdbot providers login --verbose
```bash
# Supervisor + probe target + config paths
clawdbot daemon status
# Include system-level scans (legacy/extra services, port listeners)
clawdbot daemon status --deep
# Is the gateway reachable?
clawdbot health --json
@@ -295,7 +297,9 @@ clawdbot health --verbose
# Is something listening on the default port?
lsof -nP -iTCP:18789 -sTCP:LISTEN
# Recent activity
# Recent activity (RPC log tail)
clawdbot logs --follow
# Fallback if RPC is down
tail -20 /tmp/clawdbot/clawdbot-*.log
```
@@ -304,9 +308,13 @@ tail -20 /tmp/clawdbot/clawdbot-*.log
Nuclear option:
```bash
clawdbot daemon stop
# If you installed a service and want a clean install:
# clawdbot daemon uninstall
trash "${CLAWDBOT_STATE_DIR:-$HOME/.clawdbot}"
clawdbot providers login # re-pair WhatsApp
clawdbot gateway # start the Gateway again
clawdbot daemon restart # or: clawdbot gateway
```
⚠️ This loses all sessions and requires re-pairing WhatsApp.

View File

@@ -87,6 +87,7 @@ Details: [Doctor](/gateway/doctor)
CLI (works regardless of OS):
```bash
clawdbot daemon status
clawdbot daemon stop
clawdbot daemon restart
clawdbot gateway --port 18789

View File

@@ -97,4 +97,4 @@ clawdbot daemon stop
# If youre not using a LaunchAgent (dev mode / manual runs), find the listener:
lsof -nP -iTCP:18789 -sTCP:LISTEN
```
Kill any existing `node` or `clawdbot` processes listening on that port and restart the app.
If a manual run is holding the port, stop that process (Ctrl+C). As a last resort, kill the PID you found above.