openclaw - 💡(How to fix) Fix Gateway exits on VPS after Bonjour/CIAO announcement cancellation [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#72147Fetched 2026-04-27 05:34:10
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
commented ×2cross-referenced ×2closed ×1

On a Linux VPS, the gateway starts and reaches ready, then exits with status 1 after Bonjour/mDNS advertisement gets stuck and @homebridge/ciao rejects with an announcement/probing cancellation.

Root Cause

On a Linux VPS, the gateway starts and reaches ready, then exits with status 1 after Bonjour/mDNS advertisement gets stuck and @homebridge/ciao rejects with an announcement/probing cancellation.

Fix Action

Workaround

Disabling mDNS discovery stopped the crash:

{
  "discovery": {
    "mdns": {
      "mode": "off"
    }
  }
}

Code Example

[gateway] ready (... plugins: acpx, bonjour, browser, device-pair, phone-control, talk-voice, telegram)
[plugins] bonjour: watchdog detected non-announced service; attempting re-advertise
[plugins] bonjour: restarting advertiser (service stuck in announcing/probing ...)
[openclaw] Unhandled promise rejection: CIAO ANNOUNCEMENT CANCELLED
[openclaw] Unhandled promise rejection: CIAO PROBING CANCELLED
systemd: Main process exited, code=exited, status=1/FAILURE

---

{
  "discovery": {
    "mdns": {
      "mode": "off"
    }
  }
}
RAW_BUFFERClick to expand / collapse

Summary

On a Linux VPS, the gateway starts and reaches ready, then exits with status 1 after Bonjour/mDNS advertisement gets stuck and @homebridge/ciao rejects with an announcement/probing cancellation.

Environment

  • OpenClaw 2026.4.24 (cbcfdf6)
  • Node 22.22.2
  • Linux VPS
  • systemd user service
  • Gateway bound to loopback on port 18789

Minimal log excerpt

[gateway] ready (... plugins: acpx, bonjour, browser, device-pair, phone-control, talk-voice, telegram)
[plugins] bonjour: watchdog detected non-announced service; attempting re-advertise
[plugins] bonjour: restarting advertiser (service stuck in announcing/probing ...)
[openclaw] Unhandled promise rejection: CIAO ANNOUNCEMENT CANCELLED
[openclaw] Unhandled promise rejection: CIAO PROBING CANCELLED
systemd: Main process exited, code=exited, status=1/FAILURE

Workaround

Disabling mDNS discovery stopped the crash:

{
  "discovery": {
    "mdns": {
      "mode": "off"
    }
  }
}

Expected behavior

Bonjour/mDNS advertisement failures should not terminate the gateway process. The gateway should either ignore/degrade gracefully on mDNS failures, or handle the Ciao cancellation rejection without exiting.

extent analysis

TL;DR

Disable mDNS discovery by setting its mode to "off" to prevent the gateway from crashing due to Bonjour/mDNS advertisement failures.

Guidance

  • The issue seems to be caused by the gateway's inability to handle Ciao announcement/probing cancellations, which leads to an unhandled promise rejection and subsequent process exit.
  • To verify the fix, apply the workaround and check if the gateway remains running even when Bonjour/mDNS advertisement fails.
  • Consider investigating the root cause of the Bonjour/mDNS advertisement failures to determine if there's a more permanent solution.
  • Review the OpenClaw and @homebridge/ciao documentation to see if there are any known issues or configuration options that can help mitigate this problem.

Example

{
  "discovery": {
    "mdns": {
      "mode": "off"
    }
  }
}

This configuration disables mDNS discovery, which can help prevent the gateway from crashing due to Bonjour/mDNS advertisement failures.

Notes

This workaround may not be desirable in all scenarios, as it disables mDNS discovery entirely. Further investigation into the root cause of the Bonjour/mDNS advertisement failures may be necessary to find a more permanent solution.

Recommendation

Apply the workaround by disabling mDNS discovery, as it is a straightforward and effective way to prevent the gateway from crashing due to Bonjour/mDNS advertisement failures.

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…

FAQ

Expected behavior

Bonjour/mDNS advertisement failures should not terminate the gateway process. The gateway should either ignore/degrade gracefully on mDNS failures, or handle the Ciao cancellation rejection without exiting.

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 Gateway exits on VPS after Bonjour/CIAO announcement cancellation [2 comments, 3 participants]