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

macOS self-hosted runner is stuck at Authentication #1055

Closed
salihgueler opened this issue Apr 22, 2021 · 5 comments
Closed

macOS self-hosted runner is stuck at Authentication #1055

salihgueler opened this issue Apr 22, 2021 · 5 comments
Labels
bug Something isn't working documentation

Comments

@salihgueler
Copy link

salihgueler commented Apr 22, 2021

Describe the bug
When I try to add a self-hosted runner to macOS Big Sur on an M1 Mac Mini with Rosetta 2 installed, it gets stuck at the Authentication phase.

First I thought maybe it was because of this issue #805, but Rosetta makes it possible to run the scripts from Big Sur and M1 machines.

To Reproduce
Steps to reproduce the behavior:

$ mkdir actions-runner && cd actions-runner# Download the latest runner package

$ curl -o actions-runner-osx-x64-2.277.1.tar.gz -L https://github.com/actions/runner/releases/download/v2.277.1/actions-runner-osx-x64-2.277.1.tar.gz# Extract the installer

$ tar xzf ./actions-runner-osx-x64-2.277.1.tar.gz

$ ./config.sh --url <REPO-URL> --token <TOKEN>

The configuration is stuck at Authentication.

Expected behavior
The GitHub Actions runner configuration should successfully connects to GitHub and carries on with configuration for the runner.

Runner Version and Platform

Runner Version: v.2.277.1/v.2.278.0/v.2.277.0

macOS Big Sur on an M1 Mac Mini

What's not working?

The GitHub Actions configuration is stuck at the Authentication phase.

Job Log Output

N/A

Runner and Worker's Diagnostic Logs

[2021-04-22 09:12:36Z INFO HostContext] No proxy settings were found based on environmental variables (http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY)
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO HostContext] Well known config file 'Credentials': '/Users/salih/Desktop/actions-runner/.credentials'
[2021-04-22 09:12:36Z INFO Listener] Runner is built for OSX (X64) - osx-x64.
[2021-04-22 09:12:36Z INFO Listener] RuntimeInformation: Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101.
[2021-04-22 09:12:36Z INFO Listener] Version: 2.277.1
[2021-04-22 09:12:36Z INFO Listener] Commit: 183a3dd9a0d4d51feddc5fe9fa6c3b5f8b08343d
[2021-04-22 09:12:36Z INFO Listener] Culture: en-US
[2021-04-22 09:12:36Z INFO Listener] UI Culture: en-US
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO Listener] Validating directory permissions for: '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO CommandLineParser] Parse
[2021-04-22 09:12:36Z INFO CommandLineParser] Parsing 5 args
[2021-04-22 09:12:36Z INFO CommandLineParser] parsing argument
[2021-04-22 09:12:36Z INFO CommandLineParser] HasArgs: False
[2021-04-22 09:12:36Z INFO CommandLineParser] Adding Command: configure
[2021-04-22 09:12:36Z INFO CommandLineParser] parsing argument
[2021-04-22 09:12:36Z INFO CommandLineParser] HasArgs: True
[2021-04-22 09:12:36Z INFO CommandLineParser] arg: url
[2021-04-22 09:12:36Z INFO CommandLineParser] parsing argument
[2021-04-22 09:12:36Z INFO CommandLineParser] HasArgs: True
[2021-04-22 09:12:36Z INFO CommandLineParser] Adding option 'url': 'https://github.com/superlistapp/superlist'
[2021-04-22 09:12:36Z INFO CommandLineParser] parsing argument
[2021-04-22 09:12:36Z INFO CommandLineParser] HasArgs: True
[2021-04-22 09:12:36Z INFO CommandLineParser] arg: token
[2021-04-22 09:12:36Z INFO CommandLineParser] parsing argument
[2021-04-22 09:12:36Z INFO CommandLineParser] HasArgs: True
[2021-04-22 09:12:36Z INFO CommandLineParser] Adding option 'token': '***'
[2021-04-22 09:12:36Z INFO Listener] Arguments parsed
[2021-04-22 09:12:36Z INFO Runner] ExecuteCommand
[2021-04-22 09:12:36Z INFO ConfigurationStore] currentAssemblyLocation: /Users/salih/Desktop/actions-runner/bin/Runner.Listener.dll
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO ConfigurationStore] binPath: /Users/salih/Desktop/actions-runner/bin
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO ConfigurationStore] RootFolder: /Users/salih/Desktop/actions-runner
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO HostContext] Well known config file 'Runner': '/Users/salih/Desktop/actions-runner/.runner'
[2021-04-22 09:12:36Z INFO ConfigurationStore] ConfigFilePath: /Users/salih/Desktop/actions-runner/.runner
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO HostContext] Well known config file 'Credentials': '/Users/salih/Desktop/actions-runner/.credentials'
[2021-04-22 09:12:36Z INFO ConfigurationStore] CredFilePath: /Users/salih/Desktop/actions-runner/.credentials
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO HostContext] Well known config file 'MigratedCredentials': '/Users/salih/Desktop/actions-runner/.credentials_migrated'
[2021-04-22 09:12:36Z INFO ConfigurationStore] MigratedCredFilePath: /Users/salih/Desktop/actions-runner/.credentials_migrated
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Bin': '/Users/salih/Desktop/actions-runner/bin'
[2021-04-22 09:12:36Z INFO HostContext] Well known directory 'Root': '/Users/salih/Desktop/actions-runner'
[2021-04-22 09:12:36Z INFO HostContext] Well known config file 'Service': '/Users/salih/Desktop/actions-runner/.service'
[2021-04-22 09:12:36Z INFO ConfigurationStore] ServiceConfigFilePath: /Users/salih/Desktop/actions-runner/.service
[2021-04-22 09:12:36Z INFO CommandSettings] Flag 'help': 'False'
[2021-04-22 09:12:36Z INFO CommandSettings] Flag 'version': 'False'
[2021-04-22 09:12:36Z INFO CommandSettings] Flag 'commit': 'False'
[2021-04-22 09:12:36Z INFO CommandSettings] Flag 'check': 'False'
[2021-04-22 09:12:36Z INFO CommandSettings] Command 'configure': 'True'
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: 
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: --------------------------------------------------------------------------------
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |        ____ _ _   _   _       _          _        _   _                      |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |                                                                              |
[2021-04-22 09:12:37Z INFO Terminal] WRITE: |                       
[2021-04-22 09:12:37Z INFO Terminal] WRITE: Self-hosted runner registration
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE:                         |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: |                                                                              |
[2021-04-22 09:12:37Z INFO Terminal] WRITE LINE: --------------------------------------------------------------------------------
[2021-04-22 09:12:37Z INFO ConfigurationManager] ConfigureAsync
[2021-04-22 09:12:37Z INFO ConfigurationStore] IsConfigured()
[2021-04-22 09:12:37Z INFO ConfigurationStore] IsConfigured: False
[2021-04-22 09:12:37Z INFO ConfigurationManager] Is configured: False
[2021-04-22 09:12:37Z INFO CommandSettings] Arg 'url': 'https://github.com/superlistapp/superlist'
[2021-04-22 09:12:37Z INFO CommandSettings] Remove url from Arg dictionary.
[2021-04-22 09:12:37Z INFO CommandSettings] Arg 'token': '***'
[2021-04-22 09:12:37Z INFO CommandSettings] Remove token from Arg dictionary.
[2021-04-22 09:12:38Z INFO ConfigurationManager] Http response code: OK from 'POST https://api.github.com/actions/runner-registration'
[2021-04-22 09:12:39Z INFO ConfigurationManager] cred retrieved via GitHub auth
[2021-04-22 09:12:39Z INFO RunnerServer] Establish connection with 100 seconds timeout.
[2021-04-22 09:12:39Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
[2021-04-22 09:12:39Z INFO RunnerServer] Establish connection with 60 seconds timeout.
[2021-04-22 09:12:39Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
[2021-04-22 09:12:39Z INFO RunnerServer] Establish connection with 60 seconds timeout.
[2021-04-22 09:12:39Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
[2021-04-22 09:13:39Z WARN GitHubActionsService] GET request to https://pipelines.actions.githubusercontent.com/oOuoF9JDrwt4sWFL9840xlBX7BV7JcSt3Zeeg4i5RRu4TRFkHD/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 timed out after 60 seconds.
[2021-04-22 09:13:39Z WARN GitHubActionsService] GET request to https://pipelines.actions.githubusercontent.com/oOuoF9JDrwt4sWFL9840xlBX7BV7JcSt3Zeeg4i5RRu4TRFkHD/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 timed out after 60 seconds.
[2021-04-22 09:13:39Z INFO GitHubActionsService] Finished operation Location.GetConnectionData
[2021-04-22 09:13:39Z INFO GitHubActionsService] Finished operation Location.GetConnectionData
[2021-04-22 09:13:39Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
[2021-04-22 09:13:39Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
[2021-04-22 09:13:55Z INFO GitHubActionsService] Finished operation Location.GetConnectionData
[2021-04-22 09:14:36Z INFO Terminal] WRITE LINE: Exiting...

Additional Information
When I try to ping https://pipelines.actions.githubusercontent.com/oOuoF9JDrwt4sWFL9840xlBX7BV7JcSt3Zeeg4i5RRu4TRFkHD/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 with curl, it works fine.

@salihgueler salihgueler added the bug Something isn't working label Apr 22, 2021
@TingluoHuang
Copy link
Member

Dotnet core doesn't support this yet.
dotnet/runtime#44897

@salihgueler
Copy link
Author

Thanks for answering me @TingluoHuang!

Initial .NET support will be through .NET running on the Rosetta 2 emulator.

I understand the sentence from the above link as it is supported if it had Rosetta 2, emulator. That is why, when the command worked, I expected it to run.

Can we maybe indicate it on the supported devices page of the Github Actions?

Also when should we expect this to land? After Dotnet 6.0 comes and after the Runner is updated?

@TingluoHuang
Copy link
Member

@salihgueler do you want to create a PR to the runner repo to include that?

@salihgueler
Copy link
Author

salihgueler commented Apr 22, 2021

EDIT: Now I understand what you mean. I can create a PR to add it.

I thought about Dotnet Core implementation, that is something I can't do but I misunderstood you, my bad. :)


@TingluoHuang If I was knowledgeable enough about this topic, I would love to do it. If you people can guide me a bit, I would be more than happy to help you people out :)

@TingluoHuang
Copy link
Member

I am going to close this since this is not supported and we updated the doc. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation
Projects
None yet
Development

No branches or pull requests

2 participants