docs: refresh daemon troubleshooting guidance
This commit is contained in:
parent
af2accf5e3
commit
840c64084e
@ -172,8 +172,11 @@ clawdbot logs --follow
|
|||||||
Notes:
|
Notes:
|
||||||
- `daemon status` probes the Gateway RPC by default using the daemon’s resolved port/config (override with `--url`).
|
- `daemon status` probes the Gateway RPC by default using the daemon’s resolved port/config (override with `--url`).
|
||||||
- `daemon status --deep` adds system-level scans (LaunchDaemons/system units).
|
- `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` 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` 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).
|
- `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.
|
- 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).
|
- Cleanup: `clawdbot daemon uninstall` (current service) and `clawdbot doctor` (legacy migrations).
|
||||||
|
|||||||
@ -68,7 +68,7 @@ ssh -N remote-gateway &
|
|||||||
### Step 5: Restart Clawdbot.app
|
### Step 5: Restart Clawdbot.app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
killall Clawdbot
|
# Quit Clawdbot.app (⌘Q), then reopen:
|
||||||
open /path/to/Clawdbot.app
|
open /path/to/Clawdbot.app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -286,6 +286,8 @@ clawdbot providers login --verbose
|
|||||||
```bash
|
```bash
|
||||||
# Supervisor + probe target + config paths
|
# Supervisor + probe target + config paths
|
||||||
clawdbot daemon status
|
clawdbot daemon status
|
||||||
|
# Include system-level scans (legacy/extra services, port listeners)
|
||||||
|
clawdbot daemon status --deep
|
||||||
|
|
||||||
# Is the gateway reachable?
|
# Is the gateway reachable?
|
||||||
clawdbot health --json
|
clawdbot health --json
|
||||||
@ -295,7 +297,9 @@ clawdbot health --verbose
|
|||||||
# Is something listening on the default port?
|
# Is something listening on the default port?
|
||||||
lsof -nP -iTCP:18789 -sTCP:LISTEN
|
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
|
tail -20 /tmp/clawdbot/clawdbot-*.log
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -304,9 +308,13 @@ tail -20 /tmp/clawdbot/clawdbot-*.log
|
|||||||
Nuclear option:
|
Nuclear option:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
clawdbot daemon stop
|
||||||
|
# If you installed a service and want a clean install:
|
||||||
|
# clawdbot daemon uninstall
|
||||||
|
|
||||||
trash "${CLAWDBOT_STATE_DIR:-$HOME/.clawdbot}"
|
trash "${CLAWDBOT_STATE_DIR:-$HOME/.clawdbot}"
|
||||||
clawdbot providers login # re-pair WhatsApp
|
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.
|
⚠️ This loses all sessions and requires re-pairing WhatsApp.
|
||||||
|
|||||||
@ -87,6 +87,7 @@ Details: [Doctor](/gateway/doctor)
|
|||||||
CLI (works regardless of OS):
|
CLI (works regardless of OS):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
clawdbot daemon status
|
||||||
clawdbot daemon stop
|
clawdbot daemon stop
|
||||||
clawdbot daemon restart
|
clawdbot daemon restart
|
||||||
clawdbot gateway --port 18789
|
clawdbot gateway --port 18789
|
||||||
|
|||||||
@ -97,4 +97,4 @@ clawdbot daemon stop
|
|||||||
# If you’re not using a LaunchAgent (dev mode / manual runs), find the listener:
|
# If you’re not using a LaunchAgent (dev mode / manual runs), find the listener:
|
||||||
lsof -nP -iTCP:18789 -sTCP:LISTEN
|
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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user