Skip to content

Seeing occasional Forbidden (403) errors when running wsl.exe --update #72

Closed as not planned
@devversion

Description

@devversion

Hi there, thanks for this nice action! Great work!

I wanted to report an issue, and also see if others/you potentially saw a similar issue with GitHub's Windows runners. Note that I only saw this once now of many runs. Looks like a flake somehow:

  ]C:\Windows\system32\wsl.exe --update
  Forbidden (403).
  
  
  ::debug::Error: The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295%0A    at ExecState._setResult (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:592:1)%0A    at ExecState.CheckComplete (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:575:1)%0A    at ChildProcess.<anonymous> (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:469:1)%0A    at ChildProcess.emit (node:events:519:28)%0A    at maybeClose (node:internal/child_process:1105:16)%0A    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)%0A
  Failure happened, retrying (The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295)
  C:\Windows\system32\wsl.exe --update
  Forbidden (403).
  
  
  ::debug::Error: The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295%0A    at ExecState._setResult (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:592:1)%0A    at ExecState.CheckComplete (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:575:1)%0A    at ChildProcess.<anonymous> (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:469:1)%0A    at ChildProcess.emit (node:events:519:28)%0A    at maybeClose (node:internal/child_process:1105:16)%0A    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)%0A
  Failure happened, retrying (The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295)
  C:\Windows\system32\wsl.exe --update
  Forbidden (403).
  
  
  ::debug::Error: The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295%0A    at ExecState._setResult (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:592:1)%0A    at ExecState.CheckComplete (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:575:1)%0A    at ChildProcess.<anonymous> (file:///D:/a/_actions/Vampire/setup-wsl/node_modules/@actions/exec/lib/toolrunner.js:469:1)%0A    at ChildProcess.emit (node:events:519:28)%0A    at maybeClose (node:internal/child_process:1105:16)%0A    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)%0A
  Failure happened, retrying (The process 'C:\Windows\system32\wsl.exe' failed with exit code 4294967295)
  C:\Windows\system32\wsl.exe --update
  Forbidden (403).

I'm setting up via

- uses: Vampire/setup-wsl@v4
  with:
    wsl-conf: 
      [interop]
        appendWindowsPath=false
      [wsl2]
        firewall=false
      localhostForwarding=false
    wsl-shell-command: bash --login -euo pipefail
    additional-packages: curl
      ca-certificates
      g++
      unzip
      zip
      git
      python3
      tar

(See example run: https://github.com/angular/angular-cli/actions/runs/13431119282/job/37523040562?pr=29637).

I'll try the Windows 2025 beta runners, but not sure if those suffer the same problems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions