Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu-20.04 has stopped working #17

Closed
briantist opened this issue Feb 6, 2022 · 2 comments
Closed

Ubuntu-20.04 has stopped working #17

briantist opened this issue Feb 6, 2022 · 2 comments
Milestone

Comments

@briantist
Copy link

I'm not sure when this started happening but I can no longer get this working with Ubuntu 20,04. Here's the action output with debug logging:

##[debug]Evaluating condition for step: 'Run Vampire/setup-wsl@v1'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run Vampire/setup-wsl@v1
##[debug]Loading inputs
##[debug]Evaluating: matrix.distro
##[debug]Evaluating Index:
##[debug]..Evaluating matrix:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'distro'
##[debug]=> 'Ubuntu-[2](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:2)0.04'
##[debug]Result: 'Ubuntu-20.04'
##[debug]Loading env
Run Vampire/setup-wsl@v1
  with:
    use-cache: false
    distribution: Ubuntu-20.04
    additional-packages: git
  coreutils
  python[3](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:3)
  python3-pip
  
    set-as-default: true | false
    update: false
::group::Verify Windows Environment
Verify Windows Environment
  ::endgroup::
::group::Install Distribution
Install Distribution
  ##[debug]isExplicit: 20.[4](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:4).0
  ##[debug]explicit? true
  ##[debug]checking cache: C:\hostedtoolcache\windows\Ubuntu\20.4.0\x64
  ##[debug]not found
  ##[debug]Caching tool Ubuntu 20.4.0 x64
  ##[debug]source dir: C:\Users\RUNNER~1\AppData\Local\Temp\setup_wsl_fake_dir_NoiVqU
  ##[debug]destination C:\hostedtoolcache\windows\Ubuntu\20.4.0\x64
  ##[debug]finished caching tool
  ##[debug]Downloading https://aka.ms/wslubuntu2004
  ##[debug]Destination D:\a\_temp\81[5](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:5)f9faa-4d4b-4ca4-b5[6](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:6)5-343bdb1fd3a3
  ##[debug]download complete
  C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\815f9faa-4d4b-4ca4-b565-343bdb1fd3a3', 'D:\a\_temp\48[7](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:7)b[8](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:8)435-e213-4a5b-807a-45b8416[9](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:9)fe39')"
  C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\487b8435-e2[13](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:13)-4a5b-807a-45b84[16](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:16)9fe39\Ubuntu_2004.2021.825.0_x64.appx', 'D:\a\_temp\bfe4d745-65bd-487b-b542-8c742507722c')"
  ##[debug]Caching tool Ubuntu 20.4.0 x64
  ##[debug]source dir: D:\a\_temp\487b8435-e213-4a5b-807a-45b84169fe39
  ##[debug]destination C:\hostedtoolcache\windows\Ubuntu\20.4.0\x64
  ##[debug]finished caching tool
  ::endgroup::
##[debug]Error: Unable to locate executable file: C:\hostedtoolcache\windows\Ubuntu\20.4.0\x64\ubuntu2004.exe. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
##[debug]    at Object.<anonymous> (D:\a\_actions\Vampire\setup-wsl\v1\build\node_modules\@actions\io\lib\io.js:[18](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:18)4:1)
##[debug]    at Generator.next (<anonymous>)
##[debug]    at fulfilled (D:\a\_actions\Vampire\setup-wsl\v1\build\node_modules\@actions\io\lib\io.js:5:1)
##[debug]
Error: Unable to locate executable file: C:\hostedtoolcache\windows\Ubuntu\[20](https://github.com/briantist/gha-junk/runs/5084790249?check_suite_focus=true#step:5:20).4.0\x64\ubuntu2004.exe. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run Vampire/setup-wsl@v1

I had thought it might be related to the cache setting, so this run uses use-cache: 'false'; it appears to successfully download the distribution and then attempt to cache it, but then it cannot find the executable anyway.

When I download the AppX bundle and extract the .appx files myself, what I see is that what presumably used to be called ubuntu2004.exe is now just ubuntu.exe, so I suspect this is where it's going wrong.

This looks like it could be the same issue: microsoft/WSL#7489

@Vampire
Copy link
Owner

Vampire commented Feb 7, 2022

Thanks for the report and the PR.
Actually I test with all supported distributions each night to make sure all still works as expected if something external changes.
But I didn't disable the cache, so the tests are still green.
As soon as I disable the cache, I also get the error.
I'm looking into how to best fix it.

@briantist
Copy link
Author

Ah! Yes I saw you have extensive tests and I was wondering why they were passing even on recent runs, that makes sense.

Thanks for looking into it and for all your work on this action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants