Skip to content

[SOLVED] [Bug]: After upgrading from Moltbot to Openclaw, I can't connect to the gateway. #4529

@Xy2002

Description

@Xy2002

Solution: See this comment

Summary

I installed Moltbot by cloning this repository and building it. Just now, after running git pull and executing ui:build and build, I ran moltbot doctor && moltbot gateway restart && moltbot health.

However, when I opened the web UI at this point, I found that I couldn't connect to the gateway. Using DevTools, I examined the interaction with WebSocket and found the following information:

{"type":"event","event":"connect.challenge","payload":{"nonce":"32f06b80-f5ff-470d-8a87-b8d91bc51a14","ts":1769763506652}} // received

{"type":"req","id":"ba0ee22b-65b8-4f25-b784-3e22a63a1d0e","method":"connect","params":{"minProtocol":3,"maxProtocol":3,"client":{"id":"openclaw-control-ui","version":"dev","platform":"Win32","mode":"webchat"},"role":"operator","scopes":["operator.admin","operator.approvals","operator.pairing"],"device":{"id":"49afa13d948de4c09ab5d057f48c78f884759657c38388c6c8d2d06b94662c50","publicKey":"TI3huAGMidUc9GMpQu_Eg0_73W0Ts0W0jfINBYHb5FI","signature":"ave71JiPNVKhdYU_nFv9TK7gHO2pUsxXMmZin6ohqao6df2JpEdRQbn--U5TsBP638lx3YJup1QvUkcjDtpcBQ","signedAt":1769763506654,"nonce":"32f06b80-f5ff-470d-8a87-b8d91bc51a14"},"caps":[],"auth":{"token":"d517521449cefe6eada25506f1da6d4af6c0e4a11809a548"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36","locale":"en-US"}} // sent

{"type":"res","id":"ba0ee22b-65b8-4f25-b784-3e22a63a1d0e","ok":false,"error":{"code":"INVALID_REQUEST","message":"invalid connect params: at /client/id: must be equal to constant; at /client/id: must match a schema in anyOf"}} // received

Steps to reproduce

  1. Clone the commits when this repository was named moltbot
  2. Complete the build
  3. Git pull and rebuild it
  4. Restart the gateway

Expected behavior

Expected to work normally for the web UI.

Actual behavior

The web UI is not functioning properly because it cannot establish a normal connection with the gateway, and the gateway has rejected the connection.

Environment

  • Clawdbot version: 2026.1.29 (openclaw)
  • OS: Linux 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 GNU/Linux
  • Install method (pnpm/npx/docker/etc): pnpm

Logs or screenshots

Paste relevant logs or add screenshots (redact secrets).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions