openclaw 2026.3.2 版本更新紀錄

openclaw 2026.3.2 版本更新紀錄:

sudo openclaw update

更新完後,會有錯誤訊息,
Gateway service check failed: Error: systemctl –user unavailable: Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using –machine=<user>@.host –user to connect to bus of other user)

處理如下:
1. user 問題:
# 以 root 執行(一次設定,永久有效)
sudo su
loginctl enable-linger bob
exit

# 確保在 user 的 shell 中
export XDG_RUNTIME_DIR=”/run/user/$(id -u)”
export DBUS_SESSION_BUS_ADDRESS=”unix:path=$XDG_RUNTIME_DIR/bus”
mkdir -p “$XDG_RUNTIME_DIR”

# 重新載入並重啟
systemctl –user daemon-reload
systemctl –user restart openclaw-gateway
systemctl –user status openclaw-gateway
回應:
Active: active (running) since Thu 2026-03-05 15:09:18 CST; 5s ago
ok.

2. telegram group 群組設定:
在 openclaw.json channel 段加入:

“groupPolicy”: “allowlist”, <—– allowlist,然後下面加:

“groups”: {
“(群組ID)”: {
“enabled”: true,
“groupPolicy”: “open”,
“requireMention”: true
}
},

存檔
執行 : 把群組編號加到白名單中

openclaw config set channels.telegram.groupAllowFrom ‘[“(群組ID)”]’

 

這是我用來 proxy 用的:

“trustedProxies”: [“192.168.8.203”],

3. 避免 ipv6 困擾:

systemctl –user edit openclaw-gateway

加入:

[Service]
Environment=”NODE_OPTIONS=–dns-result-order=ipv4first”

這兩舉要加在最上面 空白處。像這樣:

### Editing /home/bob/.config/systemd/user/openclaw-gateway.service.d/override.>
### Anything between here and the comment below will become the new contents of>

[Service]
Environment=”NODE_OPTIONS=–dns-result-order=ipv4first”

### Lines below this comment will be discarded

然後:

systemctl –user daemon-reload
systemctl –user restart openclaw-gateway
systemctl –user status openclaw-gateway

完工。

發佈留言

47 + = 51
Powered by MathCaptcha

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料