OpenClaw Dashboard 无法登录问题排查
结论
执行 openclaw dashboard 命令后无法登录 Web 控制面板,通常是因为 OpenClaw 的 Gateway 服务没有启动。在 systemd 不可用的环境(如 FreeBSD jail)中尤为常见。
常用命令说明
openclaw onboard: 配置向导openclaw dashboard: 显示 Web 控制面板登录信息openclaw gateway --verbose: 启动网关并输出详细日志openclaw gateway start: 尝试启动网关服务(依赖 systemd)
问题现象
运行状态检查时,Gateway 显示 unreachable:
OpenClaw status Overview
┌─────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Item │ Value │
├─────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Dashboard │ http://192.168.1.12:18789/ │
│ OS │ linux 5.15.0 (x64) · node 24.12.0 │
│ Gateway │ local · ws://127.0.0.1:18789 (local loopback) · unreachable │
│ Gateway service │ systemd not installed │
└─────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────┘
本地测试连接失败:
curl http://localhost:18789/
curl: (7) Failed to connect to localhost port 18789 after 0 ms: Connection refused
尝试手动启动网关提示服务禁用或 systemd 不可用:
openclaw gateway start
# Output: Gateway service disabled... systemd user services are unavailable...


