actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.79k stars 935 forks source link

Windows runner stuck in endless loop when failing to obtain a token #3470

Open jitran opened 3 hours ago

jitran commented 3 hours ago

Describe the bug Reporting on behalf of a customer:

The actions runner binary seems to end up in an endless loop on windows agents that fail to obtain a token. Unfortunately it retries forever which just hogs an windows instance and never connects. It would be far better to retry a few times and then rethrow the expection, there’s obviously something wrong with the oauth app registration and it’ll never connect.

GitHub.Services.OAuth.VssOAuthTokenRequestException: Registration was not found or is not medium trust. POST request to https://tokenghub.actions.githubusercontent.com/_apis/oauth2/token/[redacted] failed AAD Correlation ID for this token request: Unknown Retriable exception: Registration was not found or is not medium trust. ClientType: catch exception during create session. GitHub.Services.OAuth.VssOAuthTokenRequestException: Registration was not found or is not medium trust

This happened to 9 instances at September 19, 2024 15:16:37 AEST.

jitran commented 3 hours ago

The windows runner version is v2.319.1.