Skip to content

Setup fails at wsl-create step: Wsl/InstallDistro/0x800072f78 on Windows 26200 + WSL 2.7.3 #1050

Description

@simonxk

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

  1. Windows 10.0.26200.0 (64-bit), WSL version 2.7.3.0
  2. Existing WSL distro: Ubuntu-24.04 (working normally)
  3. 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.04 succeeds)
  • Manual wsl --import to 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

No one assigned

    Labels

    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions