Open stephengroat opened 1 year ago
Hi @stephengroat , Even I am also getting similar error. Can you share how can we fix the issue ?
/home/vsts_azpcontainer/.tfenv/lib/tfenv-exec.sh: line 43: /home/vsts_azpcontainer/.tfenv/versions/1.2.4/terraform: Permission denied
/home/vsts_azpcontainer/.tfenv/lib/tfenv-exec.sh: line 43: exec: /home/vsts_azpcontainer/.tfenv/versions/1.2.4/terraform: cannot execute: Permission denied
Getting the same error here. Triggering tfenv in a Jenkins pipeline in parallel steps. From a quick view it looks like two processes are trying to execute tfenv-exec.sh
at the same time. In the case of CDK, @SandipGorde-TomTom and @stephengroat can you validate if your processes are also running in parallel?
Check out https://github.com/tfutils/tfenv/issues/398#issue-1734959458 This helped me resolve my issue.
Hey @jamesdehart could you share how you solved this with cdktf?
@jamesdehart djakielski, @jamesdehart details in #398 tfenv should be invoked with require_serial: true
configuration during the first invokation. This will prevent the error from being thrown.
have a strange bug where
tfenv
fails from withincdktf
, but does not fail whenTFENV_DEBUG=3
is setnot sure how to debug or determine what's wrong
seems to work if the binary is installed before, i.e. running
terraform version
before thecdktf
command seems to fix it