tfutils / tfenv

Terraform version manager
MIT License
4.51k stars 454 forks source link

Error "Text file busy" and "No error information" #404

Open wosiu opened 1 year ago

wosiu commented 1 year ago

When I invoke terragrunt for uninstalled yet version of terraform, the desired version of terraform is installed, but then I get the error:

#/root/.tfenv/lib/tfenv-exec.sh: line 43: /root/.tfenv/versions/0.13.5/terraform: Text file busy
#/root/.tfenv/lib/tfenv-exec.sh: line 43: /root/.tfenv/versions/0.13.5/terraform: No error information

from: https://github.com/tfutils/tfenv/blob/master/lib/tfenv-exec.sh#L43C3-L43C3

It looks to me like some race condition. Next invocation is fine.