Gateway Installation failed
I installed the companion and clicked the button to install an openclaw gateway fresh but it fails with this error:
"{"ts":"2026-06-03T15:12:58.6900174\u002B00:00","run":"58fa1de1d7f2","level":"warn","msg":"cmd.done: wsl.exe exit=-1 (30087ms)","data":{"exe":"wsl.exe","exit_code":-1,"stdout":"Updated gateway.mode. Restart the gateway to apply.\r\nUpdated gateway.port. Restart the gateway to apply.\r\nUpdated gateway.bind. Restart the gateway to apply.\r\nUpdated gateway.auth.mode. Restart the gateway to apply.\r\nUpdated gateway.auth.token. [REDACTED] the gateway to apply.\r\nUpdated gateway.reload.mode. Restart the gateway to apply.\r\nUpdated gateway.nodes.allowCommands. Restart the gateway to apply.\r\n","stderr":"","elapsed_ms":30087.4448,"timed_out":true}} {"ts":"2026-06-03T15:12:58.6908442\u002B00:00","run":"58fa1de1d7f2","level":"info","msg":"step.completed: configure-gateway \u2192 Failed","data":{"step_id":"configure-gateway","outcome":"Failed","message":"Gateway configuration failed (exit -1): ","elapsed_ms":96358.6756}} {"ts":"2026-06-03T15:12:58.6913006\u002B00:00","run":"58fa1de1d7f2","level":"error","msg":"Step \u0027configure-gateway\u0027 failed: Gateway configuration failed (exit -1): "}"
Windows 11, latest openclaw companion
Thanks for the context here. I did a careful shell check against current main, and this is already implemented.
Close as implemented: the failure signature matches the old 30s configure-gateway timeout, and current main extends that step to 120s with regression coverage and clearer timeout diagnostics.
I found the merged PR that appears to have closed this: #652: Extend gateway configuration timeout.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the 120s configure-gateway timeout and specific timeout message, and direct affected users to a companion build containing 3ddade7072b068b72afd228bbebd8fdd54f7ba23 or later.
Do we have a high-confidence way to reproduce the issue?
Do we have a high-confidence way to reproduce the issue? No current-main failing path was reproduced; the reporter's log matches the v0.6.0 30s configure-gateway timeout exactly, and current main replaces that path with a 120s timeout covered by tests.
Is this the best way to solve the issue?
Is this the best way to solve the issue? Yes; extending the WSL config step timeout and improving timeout diagnostics directly addresses the observed slow-WSL failure without changing credential handling or the setup flow.
Security review:
Security review: No PR patch or security-sensitive issue content was under review.
AGENTS.md: found and applied where relevant.
What I checked:
- Current source: Current main defines
ConfigureGatewayStep.GatewayConfigurationTimeoutas 120 seconds and passes it toRunInWslAsyncfor theconfigure-gatewayscript; timeout failures now get a specific 120s message. (src/OpenClaw.SetupEngine/SetupSteps.cs:1194, f839cf53aa0c) - Regression tests: Setup engine tests assert the WSL config call uses
GatewayConfigurationTimeoutand that timeout failures no longer surface the genericexit -1message. (tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs:742, f839cf53aa0c) - Fix provenance: Commit 3ddade7072b068b72afd228bbebd8fdd54f7ba23 changed the configure-gateway timeout from 30 seconds to the shared 120-second constant and added the regression tests; its commit message names slow WSL startup and empty exit -1 diagnostics. (
src/OpenClaw.SetupEngine/SetupSteps.cs:1247, 3ddade7072b0) - Blame provenance:
git blameattributes the current 120-second timeout constant, the call-site timeout change, and the timeout-specific failure branch to 3ddade7072b068b72afd228bbebd8fdd54f7ba23. (src/OpenClaw.SetupEngine/SetupSteps.cs:1194, 3ddade7072b0) - Affected release comparison: The v0.6.0 source used
TimeSpan.FromSeconds(30)for the same WSL config command and returned the genericGateway configuration failed (exit -1)path, matching the reported log. (src/OpenClaw.SetupEngine/SetupSteps.cs:1246, 7d9152f427a3) - Release/tag provenance: The fix commit is contained in tag v0.6.2-alpha.1 in this checkout; v0.6.0 does not contain it. (3ddade7072b0)
Likely related people:
- ranjeshj: Authored the current-main fix that extends the configure-gateway timeout and adds targeted setup-engine regression tests. (role: recent area contributor; confidence: high; commits: 3ddade7072b0; files:
src/OpenClaw.SetupEngine/SetupSteps.cs,tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs) - Régis Brid: Blame shows the v0.6.0 setup flow introduced
ConfigureGatewayStepand the progress grouping that surfacesconfigure-gatewayduring local WSL setup. (role: introduced behavior; confidence: medium; commits: 7d9152f427a3; files:src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine.UI/Pages/ProgressPage.xaml.cs)
Codex review notes: model gpt-5.5, reasoning high; reviewed against f839cf53aa0c; fix evidence: merged PR #652, release v0.6.2-alpha.1, commit 3ddade7072b0.
Has that PR made it into a new release?