-
Notifications
You must be signed in to change notification settings - Fork 123
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
[Bug]: Self-hosted-runner on Windows - Signing Tool not found #1252
Comments
I logged into the server with the "github-service" Account which runs the github-runner and docker as a service user. So I tried the following...
And now it works! @freddydk Just to prevent others running into the same problem. Or maybe... The following line in https://github.com/microsoft/AL-Go/blob/main/Actions/Sign/Sign.psm1 ..... dotnet tool install sign --version $version --tool-path $tempFolder | Out-Null ...should not nulled out, to show the problem. |
We had the same problem (nuget setup stored per user). As a workaround, we had the same solution as you |
* Update the Sign script to log the output of dotnet install to the logs. * Update the sign package to latest. The Sign team recently made an improvement to write a warning if _Visual C++ Runtime_ is not installed. If it isn't, signing will fail because NavSip depends on this assembly. Related to #1252
How can you sign in to the windows server as the github runner (github-service). Where do you find the password? |
@JonFjolnirAlbertsson you can use the windows task planer as a workaround to run the necessary powershell commands as the networkservice user |
AL-Go version
6.0
Describe the issue
Hi,
maybe someone give me a hint in the right direction...
To the story:
i'm about to setup and test a self-hosted runner on a Windows server.
Installed components:
choco install git --force --params "/NoAutoCrlf"
choco install 7zip
choco install gh
choco install pwsh -y
choco install vcredist140 -y
choco install dotnet -y
choco install dotnet-sdk -y
Feed:
dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
Windows Defender/Antivirus is disabled.
When it goes to signing, following error occurs:
"The sign.exe can not be found."
Additional info:
I logged onto the server and tried it manually with the Admin user account, no problem at all, signing tool will be downloaded to the given path.
dotnet tool install sign --version 0.9.1-beta.24123.2 --tool-path C:\Users\github-service\AppData\Local\Temp\SigningTool-784630865
On the runners provided by Github, no error occurs.
Solution, see next post.
The text was updated successfully, but these errors were encountered: