Skip to content

WhatsApp inbound messages not received in k3s nested container (outbound works) #51049

Description

@celstnblacc

Description

WhatsApp inbound messages are never received by the gateway when running inside a k3s cluster nested in a Docker container (openshell-cluster setup). Outbound messages work perfectly.

Environment

  • OpenClaw: v2026.3.13 (61d171a)
  • Node.js: 22.22.1
  • OS: Ubuntu 22.04 (inside k3s pod, inside Docker container)
  • Container setup: Docker → k3s (k3s v1.35.2+k3s1) → OpenShell pod (nemoclaw)
  • WhatsApp plugin: @openclaw/whatsapp with Baileys
  • Network: Container can reach web.whatsapp.com over TLS (verified)

Steps to Reproduce

  1. Run OpenClaw inside an OpenShell k3s cluster (Docker-in-Docker setup)
  2. Configure WhatsApp channel (channels.whatsapp.accounts.default.enabled: true)
  3. Link WhatsApp via openclaw channels login --channel whatsapp
  4. Start gateway: openclaw gateway
  5. Send outbound message: openclaw message send --channel whatsapp --target "<number>" --message "test"works
  6. Send inbound message from another WhatsApp number to the linked number → never received

Observed Behavior

  • Gateway logs show: [whatsapp] Listening for personal WhatsApp inbound messages.
  • openclaw health --json shows: running: false, connected: false, lastMessageAt: null
  • Outbound messages send successfully with message IDs
  • No inbound messages ever appear in gateway logs or detailed log file
  • No errors logged by Baileys

Expected Behavior

Inbound WhatsApp messages should appear in gateway logs and be processed by the agent.

Configuration

{
  "web": { "enabled": true },
  "channels": {
    "whatsapp": {
      "enabled": true,
      "dmPolicy": "open",
      "allowFrom": ["*"],
      "accounts": {
        "default": {
          "enabled": true,
          "dmPolicy": "open",
          "allowFrom": ["*"]
        }
      }
    }
  }
}

What I've Tried

  • Fresh QR link (multiple times)
  • Updated from v2026.3.11 to v2026.3.13
  • Set dmPolicy to "open" with allowFrom ["*"]
  • Ran openclaw doctor --fix
  • Verified network connectivity to web.whatsapp.com
  • Confirmed WhatsApp shows as LINKED and OK in openclaw status --deep
  • Ran gateway both interactively and in background

Related Issues (all closed)

These fixes are in v2026.3.13 but the problem persists in the nested k3s container environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions