OpenClawHomeAssistant icon indicating copy to clipboard operation
OpenClawHomeAssistant copied to clipboard

bug: `openclaw cron list` fails with error `Gateway closed (1000)`

Open gpayer opened this issue 8 months ago • 2 comments

Pre-flight checks

  • [x] I updated to the latest add-on version and restarted it.
  • [x] I checked the docs/troubleshooting section first.

What happened?

I wanted openclaw to set a cron job, but it failed. then I tested manually. The gateway is somehow not reachable from localhost in the recommended configuration.

What did you expect to happen?

I expected openclaw cron list to not fail.

Steps to reproduce

Open the openclaw addon terminal and enter openclaw cron list

Add-on version

0.5.63

OpenClaw version (if known)

2026.3.13

Access mode

lan_https

Relevant add-on configuration (redacted)

"gateway": {
    "port": 18790,
    "mode": "local",
    "bind": "loopback",
    "controlUi": {
      "allowedOrigins": [
        "https://192.168.178.42:18789",
        "https://homeassistant.local:18789",
        "https://homeassistant:18789",
        "http://localhost:18790",
        "http://127.0.0.1:18790"
      ],
      "dangerouslyDisableDeviceAuth": true
    },
    "auth": {
      "mode": "token",
      "token": "<token>"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "remote": {},
    "http": {
      "endpoints": {
        "chatCompletions": {}
      }
    }
  },

Add-on logs

[2026/03/16 15:38:50:0000] N: WS closed from 127.0.0.1, clients: 0
[2026/03/16 15:38:50:0003] N: killing process, pid: 218
[2026/03/16 15:38:50:0006] N: __lws_lc_untag:  -- [wsisrv|2|adopted] (0) 10.359min
172.30.32.2 - - [16/Mar/2026:15:38:49 +0100] "GET /terminal/ws HTTP/1.1" 101 34818 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:38:50:0069] N: process killed with signal 1, pid: 218
172.30.32.2 - - [16/Mar/2026:15:39:22 +0100] "GET / HTTP/1.1" 304 0 "http://homeassistant:8123/17e0cc66_openclaw_assistant" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:39:22:2994] N: __lws_lc_tag:  ++ [wsisrv|3|adopted] (1)
[2026/03/16 15:39:22:3248] N: HTTP /terminal/ - 127.0.0.1
172.30.32.2 - - [16/Mar/2026:15:39:22 +0100] "GET /terminal/ HTTP/1.1" 200 191356 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:39:22:3329] N: __lws_lc_untag:  -- [wsisrv|3|adopted] (0) 33.463ms
192.168.178.49 - - [16/Mar/2026:15:39:22 +0100] "GET /api/health HTTP/1.1" 404 9 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:39:22:4948] N: __lws_lc_tag:  ++ [wsisrv|4|adopted] (1)
[2026/03/16 15:39:22:4954] N: HTTP /terminal/token - 127.0.0.1
172.30.32.2 - - [16/Mar/2026:15:39:22 +0100] "GET /terminal/token HTTP/1.1" 200 13 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:39:22:4986] N: __lws_lc_untag:  -- [wsisrv|4|adopted] (0) 3.740ms
[2026/03/16 15:39:22:5310] N: __lws_lc_tag:  ++ [wsisrv|5|adopted] (1)
[2026/03/16 15:39:22:5318] N: WS   /terminal/ws - 127.0.0.1, clients: 1
[2026/03/16 15:39:22:5424] N: started process, pid: 369
2026-03-16T15:39:26.583+01:00 [bonjour] watchdog detected non-announced service; attempting re-advertise (gateway fqdn=17e0cc66-openclaw-assistant._openclaw-gw._tcp.local. host=openclaw.local. port=18790 state=probing)
2026-03-16T15:40:26.584+01:00 [bonjour] watchdog detected non-announced service; attempting re-advertise (gateway fqdn=17e0cc66-openclaw-assistant._openclaw-gw._tcp.local. host=openclaw.local. port=18790 state=probing)
[2026/03/16 15:40:43:7420] N: WS closed from 127.0.0.1, clients: 0
[2026/03/16 15:40:43:7422] N: killing process, pid: 369
172.30.32.2 - - [16/Mar/2026:15:40:43 +0100] "GET /terminal/ws HTTP/1.1" 101 6815 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
[2026/03/16 15:40:43:7424] N: __lws_lc_untag:  -- [wsisrv|5|adopted] (0) 1.353min
[2026/03/16 15:40:43:7462] N: process killed with signal 1, pid: 369
2026-03-16T15:41:02.916+01:00 [bonjour] gateway name conflict resolved; newName="17e0cc66-openclaw-assistant (2)"
2026-03-16T15:41:02.932+01:00 [bonjour] gateway hostname conflict resolved; newHostname="openclaw-(2)"
2026-03-16T15:41:26.585+01:00 [bonjour] watchdog detected non-announced service; attempting re-advertise (gateway fqdn=17e0cc66-openclaw-assistant (2)._openclaw-gw._tcp.local. host=openclaw-(2).local. port=18790 state=probing)

Additional context

No response

gpayer avatar Mar 16 '26 14:03 gpayer

I have had a similar issue for a few days. I think it might be linked to a previous bug fix (gateway restart loop)

Image

jata1 avatar Mar 18 '26 07:03 jata1

Multiple versions were already released after this, while I was not able to reproduce it on my side. So I'm closing the issue but if somebody still experience it, please let me know or create a new one.

techartdev avatar May 03 '26 09:05 techartdev