Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

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

Closed
peter-ro opened this issue Jul 22, 2021 · 5 comments
Closed

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

peter-ro opened this issue Jul 22, 2021 · 5 comments

Comments

@peter-ro
Copy link

When integrating the following into my repo:

  • uses: Vampire/setup-wsl@v1
    with:
    cache: 'false'
    distribution: Ubuntu-18.04
    set-as-default: 'true'

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 peter-ro reopened this Jul 22, 2021
@peter-ro
Copy link
Author

Please see above comment: #10 (comment)

@peter-ro
Copy link
Author

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

@Vampire
Copy link
Owner

Vampire commented Jul 23, 2021

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
Copy link
Author

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
Copy link
Author

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

GA-WSL-02-logs.zip

Repository owner locked and limited conversation to collaborators Jul 25, 2021
@Vampire Vampire closed this as completed Jul 25, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants