Symptom
The Gateway exits with Error: Gateway state ownership is no longer current ... heartbeat clock moved backwards; restart the Gateway. systemd then restarts it.
Evidence what you'll see
- The log line is
[state] Gateway state ownership is no longer current at /home/<user>/.openclaw/tmp/openclaw-1000/state.<id>.lock: heartbeat clock moved backwards; restart the Gateway. - Admission closed with
restart (SIGUSR2: Error: Gateway state ownership is no longer current ... heartbeat clock moved backwards; restart the Gateway.)and[gateway] received SIGUSR2; restarting. - The unit then logged
Main process exited, code=exited, status=1/FAILURE. Users sawGateway is restarting. Please wait a few seconds and try again.during an in-flight turn.dmesgcounted 15Time jumped backwardslines;timedatectl timesync-statusshowedOffset: -664.141ms.
Why it happens
The ownership heartbeat treated a negative wall-clock age as loss of ownership. A routine NTP step of about 0.1 to 0.7 seconds was enough. Pull request 170790 verifies the held file, inode, and acquisition bytes before renewing expired or future timestamps.
Affected versions
OpenClaw 2026.10.2 (npm latest), Node v26.8.2, WSL2 Ubuntu 24.04, kernel 6.18.33.2-microsoft-standard-WSL2, systemd user unit openclaw-gateway.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- After an NTP backward step, the Gateway keeps running and does not print
heartbeat clock moved backwards; restart the Gateway.
If it still fails
- No published release tag contains pull request 170790. Tags
v2026.10.3,v2026.10.4, andv2026.10.5were compared against merged0554f4a2507and do not contain it. - Real ownership loss still fences database access. Errors still tell the operator to restart the Gateway.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it