openclaw - 💡(How to fix) Fix [v2026.4.24] Gateway crash loop: CIAO ANNOUNCEMENT CANCELLED in [plugins] bonjour [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71771Fetched 2026-04-26 05:08:35
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
commented ×2labeled ×2closed ×1cross-referenced ×1

After upgrading from 2026.4.23 to 2026.4.24 (commit cbcfdf6) via npm i -g openclaw (manual-update), the gateway entered a tight crash loop with an unhandled promise rejection from the bonjour mDNS advertiser. Crashes occurred roughly every ~16 seconds. Downgrading to 2026.4.23 (commit a979721) immediately restored stability.

Root Cause

After upgrading from 2026.4.23 to 2026.4.24 (commit cbcfdf6) via npm i -g openclaw (manual-update), the gateway entered a tight crash loop with an unhandled promise rejection from the bonjour mDNS advertiser. Crashes occurred roughly every ~16 seconds. Downgrading to 2026.4.23 (commit a979721) immediately restored stability.

Fix Action

Workaround

npm i -g [email protected]
openclaw doctor --fix

Stack returns to stable in seconds. Note that v24 added plugins.entries.feishu and plugins.entries.whatsapp which require >=2026.4.24; doctor --fix cleans those out of openclaw.json so v23 can boot cleanly.

Code Example

[plugins] bonjour: watchdog detected non-announced service; attempting re-advertise (gateway fqdn=<host>._openclaw-gw._tcp.local. host=<host>.local. port=18789 state=probing)
[plugins] bonjour: restarting advertiser (service stuck in announcing for 8214ms (gateway fqdn=<host>._openclaw-gw._tcp.local. host=<host>.local. port=18789 state=announcing))
[openclaw] Unhandled promise rejection: CIAO ANNOUNCEMENT CANCELLED
[openclaw] wrote stability bundle: /Users/<user>/.openclaw/logs/stability/openclaw-stability-2026-04-25T20-49-21-318Z-13305-unhandled_rejection.json

---

{
  "version": 1,
  "reason": "unhandled_rejection",
  "process": {
    "pid": 13305, "platform": "darwin", "arch": "arm64",
    "node": "24.14.0", "uptimeMs": 16523
  }
}

---

npm i -g openclaw@2026.4.23
openclaw doctor --fix
RAW_BUFFERClick to expand / collapse

Summary

After upgrading from 2026.4.23 to 2026.4.24 (commit cbcfdf6) via npm i -g openclaw (manual-update), the gateway entered a tight crash loop with an unhandled promise rejection from the bonjour mDNS advertiser. Crashes occurred roughly every ~16 seconds. Downgrading to 2026.4.23 (commit a979721) immediately restored stability.

Environment

  • OpenClaw version: 2026.4.24 (commit cbcfdf6)
  • Last known good: 2026.4.23 (commit a979721)
  • macOS Darwin 25.3.0, Apple Silicon Mac mini (arm64)
  • Node.js v24.14.0
  • Install: npm i -g openclaw

Symptom (~/.openclaw/logs/gateway.err.log)

Repeating every ~16 seconds, with the "stuck in announcing" duration consistently in the 8000–8300 ms range:

[plugins] bonjour: watchdog detected non-announced service; attempting re-advertise (gateway fqdn=<host>._openclaw-gw._tcp.local. host=<host>.local. port=18789 state=probing)
[plugins] bonjour: restarting advertiser (service stuck in announcing for 8214ms (gateway fqdn=<host>._openclaw-gw._tcp.local. host=<host>.local. port=18789 state=announcing))
[openclaw] Unhandled promise rejection: CIAO ANNOUNCEMENT CANCELLED
[openclaw] wrote stability bundle: /Users/<user>/.openclaw/logs/stability/openclaw-stability-2026-04-25T20-49-21-318Z-13305-unhandled_rejection.json

13+ stability bundles dropped in ~4 minutes before I downgraded. Each one matched the same unhandled_rejection shape.

Root-cause hypothesis

The bonjour watchdog forcibly restarts the CIAO advertiser when the service stays in announcing state past ~8000 ms. CIAO appears to surface that cancellation as a rejected promise that no code is awaiting; the rejection escapes as unhandled and brings the gateway down. Launchd restarts the gateway and the loop repeats.

Two angles worth checking:

  1. The CIAO advertiser cancel path needs .catch() (or to be awaited inside a try/catch) so cancellation cannot escape as an unhandled rejection.
  2. The ~8000ms "stuck in announcing" watchdog threshold may be too tight for the Bonjour state machine on macOS Sequoia / arm64 — every cycle hit it. v23 emits the same watchdog detected non-announced service warning but does not throw, so the trigger condition existed before; what changed in v24 is that the cancellation now leaks.

Stability bundle excerpt

{
  "version": 1,
  "reason": "unhandled_rejection",
  "process": {
    "pid": 13305, "platform": "darwin", "arch": "arm64",
    "node": "24.14.0", "uptimeMs": 16523
  }
}

(events array was empty in the bundle — no captured trace beyond the reason. Happy to attach raw bundles if useful.)

Impact

Gateway unavailable; the entire stack depending on it (in my case an email bridge driving an agent on every inbound mail) is down until manual intervention.

Workaround

npm i -g [email protected]
openclaw doctor --fix

Stack returns to stable in seconds. Note that v24 added plugins.entries.feishu and plugins.entries.whatsapp which require >=2026.4.24; doctor --fix cleans those out of openclaw.json so v23 can boot cleanly.

Asks

  1. Catch the CIAO cancellation rejection at the source (or change the watchdog to await its own cancel call so it can swallow the reject).
  2. Consider raising the watchdog threshold or backing off when the Bonjour state machine is consistently hitting the ceiling on a given platform — the warning was already firing on v23 every few minutes; a watchdog that fires that often probably indicates the threshold is wrong for the host.
  3. Once shipped, would also unblock the workaround removal that I am holding for openclaw/openclaw#71457 — I cannot upgrade to act on the #71457 fix until the bonjour regression is resolved.

extent analysis

TL;DR

The most likely fix is to catch the CIAO cancellation rejection at the source or adjust the watchdog threshold to prevent frequent restarts.

Guidance

  • Investigate the CIAO advertiser cancel path to ensure it is properly handled with .catch() or try/catch to prevent unhandled rejections.
  • Consider increasing the watchdog threshold or implementing a backoff strategy to reduce the frequency of restarts, especially on macOS Sequoia / arm64.
  • Review the openclaw code to determine why the cancellation rejection is not being handled in version 2026.4.24, but was not an issue in 2026.4.23.
  • Test the workaround of downgrading to 2026.4.23 and running openclaw doctor --fix to verify stability.

Example

No code example is provided as the issue is related to the internal implementation of the openclaw package.

Notes

The root cause of the issue is likely related to the changes introduced in version 2026.4.24, which caused the CIAO cancellation rejection to become unhandled. The workaround of downgrading to 2026.4.23 suggests that the issue is specific to the newer version.

Recommendation

Apply the workaround by downgrading to 2026.4.23 and running openclaw doctor --fix to restore stability, as this has been proven to resolve the issue in the short term.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [v2026.4.24] Gateway crash loop: CIAO ANNOUNCEMENT CANCELLED in [plugins] bonjour [2 comments, 3 participants]