Repository navigation
Description
Title: Setup fails at wsl-create step: Wsl/InstallDistro/0x800072f78 on Windows 26200 + WSL 2.7.3
Describe the bug
OpenClawTray setup pipeline fails consistently at the "Create WSL instance" step. The installer attempts wsl --install --distribution Ubuntu-24.04 --name OpenClawGateway --location %LOCALAPPDATA%\OpenClawTray\wsl\OpenClawGateway --no-launch --web-download, which exits with code -1 after ~62 seconds. Error detail: Wsl/InstallDistro/0x800072f78.
A manual workaround (wsl --import OpenClawGateway ...) succeeds, but the installer's cleanup-distro step detects the manually-created distro as "stale" and unregisters it before re-attempting the same failing wsl --install command.
To Reproduce
- Windows 10.0.26200.0 (64-bit), WSL version 2.7.3.0
- Existing WSL distro: Ubuntu-24.04 (working normally)
- Run OpenClawTray setup → pipeline fails at step 7/17 (wsl-create)
Expected behavior
Setup should either succeed at creating the WSL distro, or detect a manually-imported distro and skip the creation step.
Logs
Attached: setup-engine-20260724-154855.jsonl
Key lines:
- Line 16: Detects existing
OpenClawGateway, decides to terminate and unregister it - Line 35-37: Re-attempts
wsl --install ... --location %LOCALAPPDATA%\... --web-download, fails after 62157ms with exit -1 - Line 40: Step marked Failed:
Fresh WSL install failed ... Wsl/InstallDistro/0x800072f78
Additional context
- Port 18789 is available
- Existing Ubuntu-24.04 WSL distro works fine (
wsl -d Ubuntu-24.04succeeds) - Manual
wsl --importto the same target path works, but installer deletes it on next run - WSL kernel: 6.6.114.1-1
- Log files at
%APPDATA%\OpenClawTray\Logs\Setup\setup-engine-20260724-*.jsonl
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 24, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 25, 2026, 7:54 PM ET / 23:54 UTC.
Summary
Keep open. The merged safety fix prevents automatic deletion of a manually imported distro, but current setup still relies on WSL's online download and does not offer a supported way to continue with that imported distro after the reported download failure.
Reproducibility: no. for the original WSL HTTP failure without the reporter's Windows network environment. Source reproduces the remaining behavior: an unowned manually imported same-named distro is preserved and setup stops rather than adopting it.
Root-cause cluster
Relationship:
canonicalCanonical: #1050
Summary: The merged cleanup fix resolves the destructive subproblem, while this issue remains the canonical report for the unsupported recovery after WSL download failure.
Members:
partial_overlap: fix(setup): require ownership before WSL cleanup #1229 - It fixes automatic cleanup of the manually imported distro but leaves direct web-download installation and non-destructive adoption unresolved.adjacent_distinct: Keep the local WSL OpenClawGateway version in lock-step with the Windows Tray app #901 - It concerns version alignment of an already managed WSL gateway, not recovery from initial WSL creation failure.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Maintainer decision needed
Why: Current main deliberately preserves unproven distros, but the remaining recovery path requires deciding what evidence and configuration work make an imported WSL environment safe to manage.
Next step
A maintainer must choose the supported ownership and recovery policy before implementation can safely proceed.
Review details
Best possible solution:
Add a supported, user-confirmed in-product recovery path for WSL download failure that either validates and adopts a prepared gateway image or directs the user to a safe alternative without deleting their distro.
Do we have a high-confidence way to reproduce the issue?
No for the original WSL HTTP failure without the reporter's Windows network environment. Source reproduces the remaining behavior: an unowned manually imported same-named distro is preserved and setup stops rather than adopting it.
Is this the best way to solve the issue?
Unclear. The merged ownership gate is the right destructive-safety fix, but it does not provide the requested usable recovery path; its adoption policy needs maintainer direction.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against d938fc2bbf78.
Label changes
Label changes:
impact:data-loss: Current review impact labels areimpact:ux-release-blocker.Label justifications:
P0: A first-time local setup can be blocked by WSL's download path without an in-product continuation.impact:ux-release-blocker: The reported recovery requires manual WSL operations and is not available through the setup UI.Evidence reviewed
What I checked:
--web-download, so the reported WSL download failure has no alternate setup path on current main. (src/OpenClaw.SetupEngine/SetupSteps.cs:179, d938fc2bbf78)src/OpenClaw.SetupEngine/CleanupStaleDistroStep.cs:57, d938fc2bbf78)OpenClawGatewayis preserved and that setup asks for explicit confirmation rather than issuing termination or unregister commands. (tests/OpenClaw.SetupEngine.Tests/SetupStepsTests.cs:530, d938fc2bbf78)docs/ONBOARDING_WIZARD.md:27, d938fc2bbf78)src/OpenClaw.SetupEngine/ManagedDistroOwnership.cs:8, 787db18f3874)git tag --containsreturned no release tag for the fix, so that safety change is current-main-only. (787db18f3874)Likely related people:
src/OpenClaw.SetupEngine/ManagedDistroOwnership.cs,src/OpenClaw.SetupEngine/CleanupStaleDistroStep.cs)src/OpenClaw.SetupEngine/CreateWslInstanceStep.cs,src/OpenClaw.SetupEngine/CleanupStaleDistroStep.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.bkudiess commentedon Jul 28, 2026
Thanks for the detailed report. I traced
0x80072F78to WSL’s online distro download path. Microsoft defines it as an HTTP response that could not be parsed. WSL downloads and verifies the Ubuntu.wslimage before applying the requested name and location, while your localwsl --importsucceeds because it bypasses that network path.We also confirmed a Windows-node recovery bug: retry cleanup can unregister your manually imported
OpenClawGateway. The fix here should preserve an existing distro unless setup can prove it owns it, and report the WSL download-stage failure more clearly.To help identify what caused the original download response failure, could you share the redacted output from:
curl.exe -I -L -v https://releases.ubuntu.com/24.04.4/ubuntu-24.04.4-wsl-amd64.wslcurl.exe -I -L https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json13 remaining items
MilkyWay008 commentedon Aug 19, 2026
Your 0x800072f78 after ~62s is the WSL online download/verify path giving up, not OpenClaw itself.
curl.exe -I -Lthe releases.ubuntu.com WSL image URL and the raw.githubusercontent.com DistributionInfo.json one...... a proxy or firewall or AV blocking those is the usual cause, and it lines up with why your manual import works while the installer's fetch dies. If you'd rather dodge the whole step, manuallywsl --importthe distro and setCleanBeforeRunto false insrc/OpenClaw.SetupEngine/default-config.jsonso setup stops unregistering it as stale. Logs are under %APPDATA%\OpenClawTray\Logs\Setup if you need more. Oh btw, in case it might help that, I built a portable Hermes OTG repo, check it, imo it may be able to help you diagnose and figure out the fix in no time. https://github.com/MilkyWay008/Hermes-OTGshanselman commentedon Aug 26, 2026
Corrective live WSL BasePath ownership binding landed in #1230.