Vampire / setup-wsl

A GitHub action to install and setup a Linux distribution for the Windows Subsystem for Linux (WSL)
Apache License 2.0
107 stars 21 forks source link

Running Windows 2019 server produces an exit code of 1 #10

Closed peter-ro closed 3 years ago

peter-ro commented 3 years ago

When integrating the following into my repo:

Returns an exit code of 1 but the installation of file and directories looks like it ran successfully - unsure if the distribution is installed on the system. We are running this within an Azure cloud environment on a Windows 2019 Server - which is a self-hosted github runner.

Is it because the following command needs to be ran? wsl-shell-command: bash -c "sudo -u test bash --noprofile --norc -euo pipefail "

peter-ro commented 3 years ago

Please see above comment: https://github.com/Vampire/setup-wsl/issues/10#issue-951114668

peter-ro commented 3 years ago

The exit code 1 occurs when it tries to install Ubuntu-18.04

Vampire commented 3 years ago

Besides that cache is not a valid input to my action, but use-cache would be, what is the output of the action? Can you provide the log files? grafik Maybe also set a repository secret with name ACTIONS_STEP_DEBUG and value true first and rerun the job to get more verbose logging.

peter-ro commented 3 years ago

Apologies, I did not mean cache but use-cache. The output of the job is:

Run actions/setup-wsl@v1.1.0 Verify Windows Environment Install Distribution Error: The process 'C:\actions-runner_work_tool\Ubuntu\16.4.0\x64\ubuntu1604.exe' failed with exit code 1

Attached are the logs.

GA-WSL-01-logs.zip

peter-ro commented 3 years ago

Here is a more detailed look at the logs with ACTIONS_STEP_DEBUGset to true.

GA-WSL-02-logs.zip