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

System.ArgumentOutOfRangeException using: node20' is not supported #920

Closed
neseleznev opened this issue Nov 17, 2023 · 10 comments
Closed

System.ArgumentOutOfRangeException using: node20' is not supported #920

neseleznev opened this issue Nov 17, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@neseleznev
Copy link

Describe the bug

After upgrading to v4, we have the exception from time to time

Expected Behavior

I expect it to work.
We have 15 similar jobs in the workflow which run in parallel.
Sometimes, one of them fails with the exception.
A retry helps

Current Behavior

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load aws-actions/configure-aws-credentials/v4/action.yml

Reproduction Steps

    - name: Configure AWS credentials
      uses: aws-actions/configure-aws-credentials@v4
      with:
        aws-region: ***
        role-to-assume: ***

Possible Solution

No response

Additional Information/Context

No response

@neseleznev neseleznev added bug Something isn't working needs-triage This issue still needs to be triaged labels Nov 17, 2023
@peterwoodworth
Copy link
Contributor

What runner are you using in the cases that it fails?

@neseleznev
Copy link
Author

neseleznev commented Nov 17, 2023

What runner are you using in the cases that it fails?

It's self-hosted if this matters. JFYI, there are 15 parallel jobs in the same configuration, which run in parallel

P.S. the error happens on the Set up job step:

Download action repository 'aws-actions/configure-aws-credentials@v4' (SHA:010d0da01d0b5a38af31e9c3470dbfdabdecca3a)
Download action repository 'aws-actions/amazon-ecr-login@v1' (SHA:2fc7aceee09e9e4a7105c0d060c656fad0b4f63d)
Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load aws-actions/configure-aws-credentials/v4/action.yml

@peterwoodworth
Copy link
Contributor

peterwoodworth commented Nov 17, 2023

As far as I'm aware, GitHub self hosted runners should update automatically. So I doubt that it's your runner version being out of date, but I'm also not sure why else this would be occurring since node20 is a valid value - else it would be failing every time. Very strange that this error is occurring intermittently with the same runner

@tim-finnigan
Copy link
Contributor

How often does this issue occur? Can you share any steps for consistently reproducing it?

@tim-finnigan tim-finnigan added response-requested Waiting on additional info and feedback. Will move to 'closing-soon' in 5 days. and removed needs-triage This issue still needs to be triaged labels Nov 26, 2023
@neseleznev
Copy link
Author

How often does this issue occur? Can you share any steps for consistently reproducing it?

From what I faced, it had happened 4 times in the past few weeks (since the action version upgrade).
I have no steps to reproduce it

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to 'closing-soon' in 5 days. label Nov 26, 2023
@AkshataHegde-ZS
Copy link

We are also facing the same issue with the aws-actions/configure-aws-credentials@v4 in windows self-hosted runner. For us, the issue is not intermittent, but happening with every time the action runs.

@tim-finnigan
Copy link
Contributor

Node20 support was added in actions/[email protected] (See commit here). For self hosted runners, you will have to update your runner code. If you’re running on GitHub, that may indicate a bug in GitHub. If the issue occurs intermittently, we'd need to figure out if it’s the runner version that’s the problem. Runner versions are reported in the “Set Up Job” step of every workflow execution.

@neseleznev
Copy link
Author

Node20 support was added in actions/[email protected]

I checked the failed runner. Indeed, it had an older version than the required

Current runner version: '2.299.1'

Thank you!

@neseleznev
Copy link
Author

neseleznev commented Nov 29, 2023

Considering that this is not obvious, you may want to add a word in the v4 announcement about the minimal actions/runner version required

Copy link

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.

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

No branches or pull requests

5 participants