OpenClaw Gateway 频繁断开/重启问题诊断

OpenClaw v2026.3.13版本 自动断开服务问题:

PS C:\Users\13400> openclaw cron list

12:32:05 plugins feishu_doc: Registered feishu_doc, feishu_app_scopes

12:32:05 plugins feishu_chat: Registered feishu_chat tool

12:32:05 plugins feishu_wiki: Registered feishu_wiki tool

12:32:05 plugins feishu_drive: Registered feishu_drive tool

12:32:05 plugins feishu_bitable: Registered bitable tools

gateway connect failed: Error: gateway closed (1000):

Error: gateway closed (1000 normal closure): no close reason

Gateway target: ws://127.0.0.1:18789

Source: local loopback

Config: C:\Users\13400\.openclaw\openclaw.json

Bind: loopback

12:32:05 ws handshake timeout conn=1db993d9-b28c-4531-bbd1-6bee24a0f7a4 remote=127.0.0.1

12:32:05 ws closed before connect conn=1db993d9-b28c-4531-bbd1-6bee24a0f7a4 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a

目前GitHub有以及提了bug修复,并且合并到了主分支,等待最新发版会修复这个问题。

问题描述:

网关客户端在连接握手时2秒后超时,而服务器的握手超时为3秒。这导致CLI命令在认证超过2秒时失败。openclaw nodes list``gateway closed (1000 normal closure): no close reason

举措:

默认延迟从2000毫秒改成4000毫秒,以确保客户端在服务器完成认证前不会超时。connectChallengeTimeoutMs

相关:

GitHub修复: #45918

相关推荐
AlfredZhao15 小时前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐2 天前
Linux内存扩容指南
linux
zylyehuo2 天前
Linux 彻底且安全地删除文件
linux
用户805533698033 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297913 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux
Web3探索者4 天前
可视化服务器管理和传统命令行区别是什么?新手教程:Linux 运维到底该用图形界面还是 SSH 命令行?
linux·ssh
zylyehuo5 天前
Linux系统中网线与USB网络共享冲突
linux
Sokach10156 天前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao6 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
zzzzzz3108 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql