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

Module *** has finished with an error: exit status 126 #398

Open
hryamzik opened this issue May 31, 2023 · 1 comment
Open

Module *** has finished with an error: exit status 126 #398

hryamzik opened this issue May 31, 2023 · 1 comment

Comments

@hryamzik
Copy link

I've made a repository to reproduce this issue. Note that it happens on first run only, there're other requirements to catch it too:

  • TFENV_CONFIG_DIR has to be set
  • several processes of terraform should be triggered, terragrant run-all handles this. If you set parallelism to 1 it just works.

On one of runs I managed to get the following error:

/root/.tfenv/libexec/tfenv-exec: line 105: /var/lib/tfenv-versions/versions/1.2.2/terraform: Permission denied
/root/.tfenv/libexec/tfenv-exec: line 105: exec: /var/lib/tfenv-versions/versions/1.2.2/terraform: cannot execute: Permission denied
ERRO[0073] Terraform invocation failed in ...
ERRO[0073] Module ... has finished with an error: 1 error occurred:
	* exit status 126

Also sometimes the error is 127, not 126.

@jamesdehart
Copy link

jamesdehart commented Dec 13, 2023

I see the same issue when running a pre-commit hook.

To resolve this for pre-commit hooks I had to add require_serial: true for where the first time tfenv would be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants