question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when using the dotnet tool on m1 macs "--runner-version" is required

See original GitHub issue

Hi there,

Version: dotnet 3.11.2

When attempting to run the tool without the --runner-version 3.217.1 command it would attempt to download a version that is no longer available to download, and throw an exception.

I’ve opted to use version 3.217.1 of the runner as I found it in these lines

https://github.com/ChristopherHX/runner.server/blob/2877d334a1c2a3ff10002650b225252d20da4697/src/Runner.Client/Program.cs#L1111-L1116

Exception:

/Users/phiph/.local/share/gharun/azagent/2.213.2/bin/Agent.Listener executable not found locally
Downloading from https://vstsagentpackage.azureedge.net/agent/2.213.2/vsts-agent-osx-arm64-2.213.2.tar.gz to /Users/phiph/.local/share/gharun/azagent/2.213.2
Unhandled exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Runner.Client.ExternalToolHelper.DownloadTool(String link, String destDirectory, CancellationToken token, String tarextraopts, Boolean unwrap) in /home/runner/work/runner.server/runner.server/src/Runner.Client/ExternalToolHelper.cs:line 76
   at Runner.Client.ExternalToolHelper.GetAgent(String name, String version, CancellationToken token) in /home/runner/work/runner.server/runner.server/src/Runner.Client/ExternalToolHelper.cs:line 189
   at Runner.Client.Program.<>c__DisplayClass27_0.<<Main>b__4>d.MoveNext() in /home/runner/work/runner.server/runner.server/src/Runner.Client/Program.cs:line 1083
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ChristopherHXcommented, Mar 1, 2023

I have had changed the code after the release to the 3.217.1 Agent.

The sourcecode of my releases have tags so it is here https://github.com/ChristopherHX/runner.server/blob/v3.11.2/src/Runner.Client/Program.cs#L1080

0reactions
ChristopherHXcommented, Mar 6, 2023

An update to 3.11.3 should resolve this problem. The 3.217.1 is the new default azure pipelines agent, as mentioned above.

The dotnet 6 agent 3.x seems to be rolled out as of https://learn.microsoft.com/en-us/azure/devops/release-notes/2023/pipelines/sprint-217-update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

M1 Apple Monterey: Dotnet tool not found in zsh shell
Describe the bug Installing VS x64 on M1 Apple silicon macOS Monterey and launching a global tool does not work out of the...
Read more >
dotnet command is not found in my Mac m1 terminal
when I open my .cs file in vscode it shows error as The .NET Core SDK cannot be located. .NET Core debugging will...
Read more >
Install .NET on macOS
In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Installing .NET 6 on your M1 Mac (manually) - Maarten Merken
In this short article, I'll show you how to uninstall any previous dotnet versions on your M1 Mac and install the latest .NET...
Read more >
Development using dotnet using the M1 macbook is ...
I tried the rider preview for m1 macs and vstudio for mac 2022 preview and both are pretty much not close to being...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found