#Protocol mismatch

1 messages · Page 1 of 1 (latest)

safe wasp
#

I just upgraded to latest beta and have these errors, and cannot log into the OpenClaw Control portal.

12:04:40 [ws] protocol mismatch conn=1b5fe784-a067-4213-b4ed-3a5d9d1e7f17 remote=127.0.0.1 client=openclaw-control-ui webchat v2026.5.16-beta.3
12:04:40 [ws] closed before connect conn=1b5fe784-a067-4213-b4ed-3a5d9d1e7f17 peer=127.0.0.1:50538->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=http://127.0.0.1:18789 host=127.0.0.1:18789 ua=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 code=1002 reason=protocol mismatch
12:04:44 [ws] protocol mismatch conn=e6f61192-2c5a-4c7e-a044-f4a971700db3 remote=127.0.0.1 client=openclaw-control-ui webchat v2026.5.16-beta.4
12:04:44 [ws] closed before connect conn=e6f61192-2c5a-4c7e-a044-f4a971700db3 peer=127.0.0.1:53214->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=http://127.0.0.1:18789 host=127.0.0.1:18789 ua=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 code=1002 reason=protocol mismatch
12:04:48 [ws] Proxy headers detected from untrusted address. Connection will not be treated as local. Configure gateway.trustedProxies to restore local client detection behind your proxy.
12:04:48 [ws] protocol mismatch conn=89aa4f24-d1dd-4684-a374-4b411bd9f703 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
12:04:48 [ws] closed before connect conn=89aa4f24-d1dd-4684-a374-4b411bd9f703 peer=127.0.0.1:53222->127.0.0.1:18789 remote=127.0.0.1 fwd=100.108.130.102 origin=https://openclaw.tail967935.ts.net host=openclaw.tail967935.ts.net ua=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0 code=1002 reason=protocol mismatch
12:04:55 [ws] protocol mismatch conn=9583a430-e97c-4a12-9b29-5df29595fbe3 remote=127.0.0.1 client=openclaw-control-ui webchat v2026.5.16-beta.3
12:04:55 [ws] closed before connect conn=9583a430-e97c-4a12-9b29-5df29595fbe3 peer=127.0.0.1:33332->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=http://127.0.0.1:18789 host=127.0.0.1:18789 ua=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 code=1002 reason=protocol mismatch

The thing that I see is that in the same logs 2 beta versions are mentioned...

proud waveBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

stable sunBOT
# safe wasp I just upgraded to latest beta and have these errors, and cannot log into the Op...

First thing: please run openclaw --version and paste it. Version mismatch is very often the cause here.

From those logs, this looks less like an auth problem and more like the browser Control UI assets and the running Gateway disagree on the WS protocol. Seeing v2026.5.16-beta.3 and v2026.5.16-beta.4 in the same minute strongly suggests stale Control UI assets/browser cache, an old tab/service worker, or two installs/services fighting.

Try this order:

openclaw gateway status
openclaw doctor
openclaw gateway restart

Then hard-refresh the Control UI, or open it in a fresh private/incognito window. If you installed from source, also rebuild the UI assets before restarting:

pnpm install
stable sunBOT
# safe wasp I just upgraded to latest beta and have these errors, and cannot log into the Op...
pnpm build
pnpm ui:build
openclaw gateway restart

The Tailscale line is a second issue: Proxy headers detected from untrusted address. If you are using Tailscale Serve on the same host, the docs say to trust the local proxy source for forwarded-IP/local detection:

openclaw config set gateway.trustedProxies '["127.0.0.1"]'
openclaw gateway restart

Docs:
https://docs.openclaw.ai/help/faq
https://docs.openclaw.ai/web/control-ui
https://docs.openclaw.ai/gateway/configuration

safe wasp
#

Cnajef@OpenClaw-Server:~pnpm buildld

[ERR_PNPM_NO_PKG_MANIFEST] No package.json found in /home/najef
[ERROR] Command failed with exit code 1: pnpm install

pnpm: Command failed with exit code 1: pnpm install
at getFinalError (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:28776:14)
at makeError (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:31083:21)
at getSyncResult (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:32927:10)
at spawnSubprocessSync (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:32887:14)
at execaCoreSync (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:32817:23)
at callBoundExeca (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:35345:23)
at boundExeca (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:35322:49)
at sync (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:35477:14)
at runPnpmCli (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:211260:5)
at runDepsStatusCheck (file:///usr/local/lib/node_modules/pnpm/dist/pnpm.mjs:212964:7)

stable sunBOT
# safe wasp Cnajef@OpenClaw-Server:~pnpm buildld [ERR_PNPM_NO_PKG_MANIFEST] No package.json...

That error just means pnpm is being run from your home directory (/home/najef), which has no package.json.

Only run the build commands inside the OpenClaw source checkout, for example:

cd ~/openclaw
pnpm install
pnpm build
pnpm ui:build
openclaw gateway restart

If ~/openclaw does not exist, find the checkout first:

find ~ -maxdepth 3 -name package.json -path '*openclaw*' 2>/dev/null
stable sunBOT
safe wasp
#

najef@OpenClaw-Server:~/.openclaw$ pnpm install
✔ The modules directory at "/home/najef/.openclaw/node_modules" will be removed and reinstalled from scratch. Proceed? (Y/n) · true
Recreating /home/najef/.openclaw/node_modules
[WARN] deprecated @types/dompurify@3.2.0: This is a stub types definition. dompurify provides its own type definitions, so you do not need this installed.
Downloading @biomejs/cli-linux-x64@2.4.4: 17.81 MB/17.81 MB, done
Downloading @node-llama-cpp/linux-x64@3.16.2: 7.41 MB/7.41 MB, done
[WARN] 5 deprecated subdependencies found: @esbuild-kit/core-utils@3.3.2, @esbuild-kit/esm-loader@2.6.5, @ungap/structured-clone@1.3.0, prebuild-install@7.1.3, uuid@9.0.1
Packages: +532
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Downloading @node-llama-cpp/linux-x64-vulkan@3.16.2: 24.10 MB/24.10 MB, done
Downloading @node-llama-cpp/linux-x64-cuda@3.16.2: 124.71 MB/124.71 MB, done
Downloading node-llama-cpp@3.16.2: 28.40 MB/28.40 MB, done
Downloading @node-llama-cpp/linux-x64-cuda-ext@3.16.2: 194.22 MB/194.22 MB, done
Progress: resolved 629, reused 0, downloaded 532, added 532, done

dependencies:

  • @hono/node-server 1.19.9 (2.0.2 is available)
  • @radix-ui/react-dialog 1.1.15
  • @radix-ui/react-dropdown-menu 2.1.16
  • @radix-ui/react-label 2.1.8
  • @radix-ui/react-slot 1.2.4
  • @radix-ui/react-switch 1.2.6
  • @tanstack/react-query 5.90.21 (5.100.10 is available)
  • @tobilu/qmd 1.0.7 (2.1.0 is available)
  • @types/dompurify 3.2.0 deprecated
  • better-sqlite3 12.6.2 (12.10.0 is available)
  • clsx 2.1.1
  • dompurify 3.3.1 (3.4.4 is available)
  • drizzle-kit 0.31.9 (0.31.10 is available)
  • drizzle-orm 0.45.1 (0.45.2 is available)
  • hono 4.12.2 (4.12.19 is available)
  • lucide-react 0.577.0 (1.16.0 is available)
  • mdx-bundler 10.1.1
  • nanoid 5.1.6 (5.1.11 is available)
  • react-router-dom 7.13.1 (7.15.1 is available)
  • zod 4.3.6 (4.4.3 is available)

devDependencies:

  • @biomejs/biome 2.4.4 (2.4.15 is available)
  • @tailwindcss/typography 0.5.19
  • @types/better-sqlite3 7.6.13
  • autoprefixer 10.4.27 (10.5.0 is available)
  • concurrently 9.2.1
  • postcss 8.5.14
  • tailwindcss 4.2.1 (4.3.0 is available)
  • tsx 4.21.0 (4.22.1 is available)

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: better-sqlite3@11.10.0, better-sqlite3@12.6.2, esbuild@0.18.20, esbuild@0.25.12, esbuild@0.27.3, node-llama-cpp@3.16.2

stable sunBOT
# safe wasp najef@OpenClaw-Server:~/.openclaw$ pnpm install ✔ The modules directory at "/hom...

Good, that got further. Two notes:

  1. ~/.openclaw is usually OpenClaw’s config/state dir, not necessarily the source checkout. If it has a package.json, it may be your install checkout, but please confirm with:
pwd
git remote -v
openclaw --version
  1. The current blocker is pnpm blocking native build scripts. OpenClaw docs call this out. From the same directory where you ran pnpm install, run:
pnpm approve-builds
pnpm rebuild
pnpm build
stable sunBOT
safe wasp
#

nothing worked, downgraded to previeus beta and that worked..

stable sunBOT
# safe wasp nothing worked, downgraded to previeus beta and that worked..

That’s useful signal: if previous beta works and latest beta consistently throws protocol mismatch, this is likely a beta regression or stale packaged UI asset in that release, not your machine setup.

Please keep the working previous beta for now, and file this with the exact versions/logs so it doesn’t get lost:
https://github.com/openclaw/openclaw/issues

Useful bits to include:

openclaw --version
openclaw gateway status

And paste the protocol mismatch lines showing v2026.5.16-beta.3 / v2026.5.16-beta.4. Mention that downgrading to the previous beta immediately fixed Control UI login. That comparison is the important clue.