Closed vetlekise closed 3 weeks ago
Just found this earlier issue having the same error message and it got solved by setting the terraform_wrapper:
to false
.
Just tested this myself and it worked, but I unfortunately need the wrapper for the PR comment to work using the action actions/github-script@v7
Found this other issue telling them to use node 20 for terraform-setup v3. But the runner already had this installed as node -v
showed me v20.18.0
... I then ran sudo apt upgrade
and I saw some error about a node 18 package.
I fixed it by running these commands:
sudo apt remove --purge nodejs BAD_PACKAGE
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
Info
Problem
Terraform init fails on GitHub self-hosted runner ONLY when its running as a service, if I run the script
./actions-runner/run.sh
it works without any issues.Error
Workflow
NB! I stripped most of the workflow to only show what's necessary.
What's tested?
All the v3.x.x versions.
What works?
v2 works no problem.