hashicorp / hashicorp/setup-terraform
Fails with AggregateError in self-hosted runners
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 288
- Avg merge
- 23h 21m
- Merged PRs (30d)
- 3
Description
Hi,
We are facing this issue where the **setup-terraform@v3** action starts to fail with an **AggregateError** when this action is being invoked within a GitHub Actions self hosted runner (ubuntu 22.04) hosted in a Azure Kubernetes cluster using Actions Runner Controller.
**Failed Run**
```
##[debug]Evaluating condition for step: 'Run hashicorp/setup-terraform@v3'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run hashicorp/setup-terraform@v[3](https://github.com/yashid-mohamed/my-test-app/actions/runs/9842799277/job/27172577799#step:4:3)
##[debug]Loading inputs
##[debug]Loading env
Run hashicorp/setup-terraform@v3
##[debug]Finding releases for Terraform version ~1.0
**Error: AggregateError**
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run hashicorp/setup-terraform@v3
```
**Successful Run**
```
##[debug]Evaluating condition for step: 'Run hashicorp/setup-terraform@v3'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run hashicorp/setup-terraform@v3
##[debug]Loading inputs
##[debug]Loading env
Run hashicorp/setup-terraform@v3
##[debug]Finding releases for Terraform version ~1.0
##[debug]Getting build for Terraform version 1.0.11: linux amd64
##[debug]Downloading Terraform CLI from https://releases.hashicorp.com/terraform/1.0.11/terraform_1.0.11_linux_amd64.zip
##[debug]Downloading https://releases.hashicorp.com/terraform/1.0.11/terraform_1.0.11_linux_amd64.zip
##[debug]Destination /home/runner/_work/_temp/43b4ccd6-66ca-4abd-b118-9e973a0d0cb[2](https://github.com/yashid-mohamed/my-test-app/actions/runs/9855362015/job/27240248601#step:4:2)
##[debug]download complete
##[debug]Extracting Terraform CLI zip file
/usr/bin/unzip -o /home/runner/_work/_temp/4[3](https://github.com/yashid-mohamed/my-test-app/actions/runs/9855362015/job/27240248601#step:4:3)b4ccd6-66ca-4abd-b118-9e973a0d0cb2
Archive: /home/runner/_work/_temp/[4](https://github.com/yashid-mohamed/my-test-app/actions/runs/9855362015/job/27240248601#step:4:4)3b4ccd6-66ca-4abd-b118-9e973a0d0cb2
inflating: terraform
##[debug]Terraform CLI path is /home/runner/_work/_temp/e228[5](https://github.com/yashid-mohamed/my-test-app/actions/runs/9855362015/job/27240248601#step:4:5)ab8-10f1-4d98-b69d-9dc424a5c348.
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: Run hashicorp/setup-terraform@v3
```
I suspect that it might be due to rate limit issue because the same action works fine when re-run later after some time / next day.
Can someone please help shed some light on why the action fails with an AggregateError and also how we can overcome this while using self-hosted GitHub runners?
Thanks!
**Note** - I'm installing node v20.15.0 in a previous step in the same workflow using the **setup-node@v4** action. We have not seen this issue occur when using the GitHub hosted runners.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.