openclaw - 💡(How to fix) Fix [Bug]: Gateway health check fails (1006) + Ollama model timeout during onboarding on Windows [1 comments, 1 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#61805Fetched 2026-04-08 02:54:18
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2commented ×1

I encountered multiple issues while setting up OpenClaw on Windows using the QuickStart flow with Ollama.

After completing onboarding and restarting the gateway service, the health check fails with a WebSocket error. Additionally, the embedded agent fails due to a timeout when using the default Ollama model.

Error Message

After completing onboarding and restarting the gateway service, the health check fails with a WebSocket error. Additionally, the embedded agent fails due to a timeout when using the default Ollama model.

Root Cause

I encountered multiple issues while setting up OpenClaw on Windows using the QuickStart flow with Ollama.

After completing onboarding and restarting the gateway service, the health check fails with a WebSocket error. Additionally, the embedded agent fails due to a timeout when using the default Ollama model.

Code Example

Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason

[gateway] listening on ws://127.0.0.1:18789
[telegram] starting provider
[agent/embedded] Profile ollama:default timed out. Trying next account...
[agent/embedded] embedded run failover decision: surface_error reason=timeout
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

I encountered multiple issues while setting up OpenClaw on Windows using the QuickStart flow with Ollama.

After completing onboarding and restarting the gateway service, the health check fails with a WebSocket error. Additionally, the embedded agent fails due to a timeout when using the default Ollama model.

Steps to reproduce

Run:

openclaw reset

Run:

openclaw onboard Choose QuickStart Use Ollama (local) Default model: ollama/gpt-oss:20b Configure Telegram with a valid bot token Complete onboarding Gateway restarts automatically

Run:

openclaw gateway

Expected behavior

Gateway should pass health checks and remain stable Agent should successfully connect to Ollama and respond

Actual behavior

Health check fails with:

gateway closed (1006 abnormal closure (no close frame))

Agent fails with:

Profile ollama:default timed out embedded run failover decision: surface_error reason=timeout

OpenClaw version

2026.4.2 (d74a122)

Operating system

windows 11

Install method

No response

Model

gpt-oss:20b with ollama on windows

Provider / routing chain

openclaw > ollama > gpt-oss:20b

Additional provider/model setup details

OS: Windows (PowerShell) OpenClaw version: 2026.4.2 (d74a122) Setup mode: QuickStart Model provider: Ollama (local) Model: ollama/gpt-oss:20b Gateway bind: 127.0.0.1 Gateway port: 18789

Logs, screenshots, and evidence

Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason

[gateway] listening on ws://127.0.0.1:18789
[telegram] starting provider
[agent/embedded] Profile ollama:default timed out. Trying next account...
[agent/embedded] embedded run failover decision: surface_error reason=timeout

Impact and severity

No response

Additional information

<img width="1096" height="491" alt="Image" src="https://github.com/user-attachments/assets/582e8451-8df0-4a76-8781-cdba9cfd906d" />

extent analysis

TL;DR

  • The most likely fix involves investigating and resolving the WebSocket closure issue and the timeout error in the embedded agent, potentially by adjusting the configuration or the model settings.

Guidance

  • Verify the WebSocket connection settings and ensure that the gateway is properly configured to handle WebSocket connections.
  • Check the model configuration, specifically the ollama/gpt-oss:20b model, to see if there are any settings that could be causing the timeout error.
  • Investigate the logs to determine the cause of the gateway closed (1006 abnormal closure (no close frame)) error and the Profile ollama:default timed out error.
  • Consider testing with a different model or configuration to isolate the issue.

Example

  • No code snippet is provided as the issue does not explicitly mention a specific code-related problem.

Notes

  • The issue seems to be related to the specific setup and configuration of OpenClaw with Ollama on Windows, and the solution may depend on the details of this setup.
  • The provided image is not accessible, which may limit the ability to provide a more detailed solution.

Recommendation

  • Apply workaround: Adjust the configuration settings and model configurations to resolve the WebSocket closure and timeout errors, as the root cause of the issue is not explicitly stated and may require further investigation.

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

Gateway should pass health checks and remain stable Agent should successfully connect to Ollama and respond

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING