-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Provider remote-exec generating error Process exited with status 126 #22633
Comments
BTW - after some troubleshooting, it looks like when I use the inline argument it will always create the script in /tmp and on my ec2 instance /tmp is mounted as noexec so this will always fail. can I enable this to use the connection user home directory? |
This seems related to #5667. |
No, I don't think they are related. My problem is a little different as it's simply trying to execute a script from a folder that is located on a drive mounted with noexec on. |
Hi, we're facing the same issue. It's quite common to have noexec flag on /tmp partition. We'd appreciate if the path was either configurable or changed. For example Ansible uses as default path for storing executed scripts |
I am still getting, ╷
│ Error: remote-exec provisioner error
│
│ with null_resource.setup,
│ on main.tf line 59, in resource "null_resource" "setup":
│ 59: provisioner "remote-exec" {
│
│ error executing "/tmp/terraform_1227397609.sh": Process exited with status 1 I defined connection, copy, execute details on a "null resource" but still failing on Is there a way to change the location of terraform*.sh |
We are running into the same problem.
` provisioner "remote-exec" {
}` the "default" remote_exec directory /tmp is non executable |
Terraform Version
Terraform Configuration Files
Debug Output
N/A
Crash Output
N/A
Expected Behavior
terraform execute remote-exec and add that proxy entry to the environment file
Actual Behavior
I get an error - Process exited with status 126
Steps to Reproduce
terraform init
terraform apply
Additional Context
It looks like when I use inline for remote-exec you are defaulting to creating the script in /tmp and on my aws ec2 instance., /tmp is mounted as a noexec mount so this will always fail. Any ability to enable this to use the connection user's home directory?
References
The text was updated successfully, but these errors were encountered: