Skip to content

[Bug] [Slack] Slack Websocket in Nemoclaw Onboard failure #2031

@n0k0m3

Description

@n0k0m3

Description

Regardless of setup method, once App Token is set the gateway WILL fail. Potentially related to #2024 due to openclaw can't connect using WebSocket and OpenShell blocking it.

Reproduction Steps

2 paths:
Path 1:

export SLACK_APP_TOKEN=xapp-1-<restofkey>
export SLACK_BOT_TOKEN=xoxb-<restofkey>
nemoclaw onboard
#with ANY model

Path 2:

  • run nemoclaw onboard with all interactive setup for slacks
  • edit openclaw.json in /var/lib/docker/volumes/openshell-cluster-nemoclaw/_data/storage/<pvc_path>/.openclaw/openclaw.json
"channels": {
    "defaults": {},
    "slack": {
      "accounts": {
        "default": {
          "botToken": "openshell:resolve:env:SLACK_BOT_TOKEN",
          "appToken": "xapp-<apptoken>",
          "enabled": true
        }
      },
      "enabled": true
    }
  },

Debug progress:

  • Once done, nemoclaw <name> connect will report
OpenClaw gateway is not running inside the sandbox (sandbox likely restarted).
  Recovering...
  Gateway process started but is not responding.
  Check /tmp/gateway.log inside the sandbox for details.

  ✓ Connecting to sandbox 'ufrclaw'
  Inside the sandbox, run `openclaw tui` to start chatting with the agent.
  Type `exit` (or Ctrl-D) to return to the host shell.

sandbox@ufrclaw:~$ openclaw tui
(node:8703) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8711) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)

🦞 OpenClaw 2026.4.2 (d74a122) — I've survived more breaking changes than your last three relationships.

 openclaw tui - ws://127.0.0.1:18789 - agent main - session main
 gateway disconnected: closed | idle
 agent main | session main | unknown | tokens ?
  • Reading gateway log shows slack auth error with app token.
sandbox@ufrclaw:~$ cat /tmp/gateway.log
(node:8657) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8666) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
2026-04-17T18:22:12.244+00:00 [canvas] host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /sandbox/.openclaw/canvas)
2026-04-17T18:22:12.272+00:00 [tasks/registry] Failed to restore task registry
2026-04-17T18:22:12.278+00:00 [heartbeat] started
2026-04-17T18:22:12.279+00:00 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
2026-04-17T18:22:12.284+00:00 [gateway] agent model: inference/nemotron-3-super-120b-a12b
2026-04-17T18:22:12.285+00:00 [gateway] listening on ws://127.0.0.1:18789, ws://[::1]:18789 (PID 8666)
2026-04-17T18:22:12.285+00:00 [gateway] log file: /tmp/openclaw/openclaw-2026-04-17.log
2026-04-17T18:22:12.286+00:00 [gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true, gateway.controlUi.dangerouslyDisableDeviceAuth=true. Run `openclaw security audit`.
2026-04-17T18:22:12.414+00:00 [hooks] loaded 4 internal hook handlers
2026-04-17T18:22:13.852+00:00 [slack] [default] starting provider
2026-04-17T18:22:13.861+00:00 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token)
2026-04-17T18:22:13.967+00:00 [openclaw] Unhandled promise rejection: Error: An API error occurred: invalid_auth
    at platformErrorFromResult (/usr/local/lib/node_modules/openclaw/node_modules/@slack/web-api/src/errors.ts:119:5)
    at WebClient.apiCall (/usr/local/lib/node_modules/openclaw/node_modules/@slack/web-api/src/WebClient.ts:405:36)
    at processTicksAndRejections (node:internal/process/task_queues:103:5)

If we setup with just the Oauth bot token then there's no error

Environment

  • OS: NVIDIA DGX OS on DGX Spark GB10
  • NemoClaw version: v0.0.18 (failed since 0.0.16)

Debug Output

nemoclaw-debug.tar.gz

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration: slackSlack integration or channel behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions