惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

云野开源志

OpenClaw 升级排坑实录:2026.7.1-2 → 2026.8.1 国内镜像源速配工具,Linux 换源不用愁 Tailscale 非对称路由导致 LAN 设备无法访问同网段 Tailscale 节点 Tailscale 子网路由劫持本地流量排查与修复 Tailscale vs ZeroTier:内网组网选型与实战 排查 Docker Compose PWD 变量导致 Waline 数据库挂载异常 OpenClaw npm 升级踩坑记:从版本冲突到模块丢失 Posts 免责声明 Site-Disclaimers 大模型配置-千问免费版 初始化OpenClaw 安装openclaw记录 大年初一桃花谷 CheckSSL.sh - SSL证书到期时间监控脚本 g.sh - Go语言环境管理工具安装脚本 install-cri-docker.sh - cri-dockerd安装脚本 install-docker.sh - Docker Engine快速安装脚本 install-docker2.sh - Docker 交互式安装脚本 install-nginx.sh - Nginx官方源快速安装脚本 install-zerotier.sh - ZeroTier 虚拟网络快速安装脚本 mng.sh - Nginx配置文件合并脚本 OpenSSL.sh - 自签名 SSL 证书生成脚本 SystemInfoMonitor.sh - 系统资源监控告警脚本 UpdateImages.sh - Docker 镜像批量更新脚本 解忧杂货铺 - 云野开源志 为Hugo Next主题添加Umami统计支持 解忧杂货铺 - 栏目声明 Certd - 解决多平台SSL证书管理难题的神器 轻量级网络端口监控工具
openclaw(moltbot、Clawdbot)常见异常
云野开源志 · 2026-02-25 · via 云野开源志

总结摘要

系统整理OpenClaw AI助手部署和使用过程中遇到的典型技术问题,提供详细的诊断方法和修复方案

openclaw dashboard访问提示1008报错

现象1:disconnected (1008): control ui requires HTTPS or localhost (secure context)

报错截图:

报错1008-1

原因:

OpenClaw官方对于dashboard的配置默认是没有开启局域网或公网访问,即使初始化的时候设置了侦听地址为Lan,也会有这个报错,根据官方文档描述: 通过 HTTP 访问控制 UI

修复方案:

可以编辑配置文件~/.openclaw/openclaw.jsongateway.controlUi.allowInsecureAuth设置为true即可,如果没有该参数可以自行去添加,如下图所示如果没有controlui的话,手动去加上即可,位置无所谓,加好之后保存退出,openclaw服务会自动加载新配置的

image-20260213173025555

现象2:disconnected (1008): unauthorized: gateway token mismatch (open the dashboard URL and paste the token in Control UI settings)

截图:

1008-2

问题原因:

该报错是因为访问时没有携带token导致的,在openclaw 2026.2.9之前的版本中,token参数是使用?token= 或者是 #token 携带

解决办法:

打开中断,执行命令:openclaw dashboard,访问返回的访问地址,自行复制到浏览器修改IP即可

openclaw dashboard

openclaw gateway无法启动,端口没有侦听

场景1: 从 2026.2.19-2升级到2026.2.23

升级之后,gateway进程没有运行,端口没有侦听,但是查看CPU、内存的占用在波动,符合启动失败反复被启动的场景

但是使用openclaw status以及openclaw gateway status没有报错只有一个启动失败的提示而已

因此使用前台启动的命令去启动试试,如果无法启动会遇到报错提示,如下图

1
/usr/bin/node /home/chang/.npm-global/lib/node_modules/openclaw/dist/index.js gateway --port 18789

命令注释:

命令拆解为四部分

  • /usr/bin/node:设置使用node解释器,默认路径是/usr/bin/node 如果没有,则使用whereis命令查找:whereis node
  • /home/chang/.npm-global/lib/node_modules/openclaw/dist/index.js:这里需要指定的是openclaw的启动脚本,这是我的安装路径,如果使用的是官方的安全命令安装的话,那么可以将上述路径设置中的chang改为安装时使用的用户名,比如如果是name01用户的话,则使用路径:/home/name01/.npm-global/lib/node_modules/openclaw/dist/index.js
  • gateway:是调用的函数不需要改
  • –port 18789:是函数gateway的入参,不需要动

启动失败提示:Gateway failed to start: Error: Invalid config: hooks.token must not match gateway auth token. Set a distinct hooks.token for hook ingress.

image-20260225065204772

这个报错就很明显,是因为我hooks.token设置的和gateway.auth.token一样导致的,更改其中一个即可

image-20260225065216624

这个报错翻译出来也可以明白,在新版本的openclaw升级之后考虑到安全问题,因为设置了bind参数为lan(也就是侦听的0.0.0.0/0),因此需要进一步设置明确的访问来源,类似于nginx中的server_name参数,我这里直接设置了私网地址:格式为:gateway.controlUi.allowedOrigins:{[http://ip:port]}

公网还没有测试,后续测试下看看

例如:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "lan",
    "controlUi": {
      "basePath": "xxxxx",
      "allowInsecureAuth": true,
      "allowedOrigins": ["http://192.168.1.17:18789"]
    },
    "auth": {
      "mode": "token",
      "token": "xxxxxxxxxxxxx"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    }
  }

image-20260225065846537