openclaw gateway dynamic module missing

Domain: openclaw · Evidence E0 — Contributor self-reported
openclawgatewaydynamicmodulemissing

Summary

飞书单聊和群聊均无回应。飞书长连接正常(WebSocket 显示 ON · OK),消息能收到,但 Bot 不回复。

Problem

飞书单聊和群聊均无回应。飞书长连接正常(WebSocket 显示 ON · OK),消息能收到,但 Bot 不回复。

Root Cause

单聊: OpenClaw 动态生成的 JS 模块文件丢失,导致消息分发时 ERR_MODULE_NOT_FOUND。

日志关键报错:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module
'/home/<user>/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist/directive-handling.fast-lane-BAhyQLdx.js'
imported from .../get-reply-462JLlw-.js

群聊: 群组不在 allowFrom 白名单中,groupPolicy 为 allowlist 模式。

日志关键报错:

group oc_51cd445c9162f2d622f1a984e8bc3f4f not in groupAllowFrom (groupPolicy=allowlist)

Solution

单聊:重启 Gateway

systemctl --user restart openclaw-gateway

Gateway 重启后动态模块会重新生成。

群聊:添加群 ID 到 allowFrom

配置文件路径:

~/.openclaw/credentials/feishu-default-allowFrom.json

原始内容(只有用户 ID):

{
  "version": 1,
  "allowFrom": [
    "ou_3dc2416c9a7a4c297a19d87fd8edbccc"
  ]
}

添加群 ID:

{
  "version": 1,
  "allowFrom": [
    "ou_3dc2416c9a7a4c297a19d87fd8edbccc",
    "oc_51cd445c9162f2d622f1a984e8bc3f4f"
  ]
}

修改后需重启 Gateway:

systemctl --user restart openclaw-gateway

Verification

systemctl --user restart openclaw-gateway
echo "Verification passed: fix command exited 0"

Expected Output: command completes without error, then Verification passed is printed. (Checks: systemctl --user restart openclaw-gateway)

诊断命令

查看实时日志:

journalctl --user -u openclaw-gateway --no-pager -f

查看飞书 channel 状态:

openclaw status

查看所有 session:

openclaw sessions list

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons