Skip to content

wsl.exe --update can fails with 403 and is not retried #66

Closed
@ssbarnea

Description

@ssbarnea

I already have seen this happening multiple times over the last weeks in the last weeks and I think we should add some kind of retry mechanism for it:

  C:\Windows\system32\wsl.exe --set-default-version 2
  For information on key differences with WSL 2 please visit https://aka.ms/wsl2
  
  The operation completed successfully.
    
  C:\Windows\system32\wsl.exe --update
  Forbidden (403).
    
  ::endgroup::
  Error: The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295

Apparently the 403 error is not really a permanent error and it should be recoverable with retries.

https://github.com/jdx/mise-action/actions/runs/12547219939/job/34984712978?pr=157

It should be noted that in my case I was using Ubuntu-22.04 distro, which is still listed as active. Not sure if others are less likely to cause this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions