# Remote-exec provisioner error

**URL:** <https://discuss.hashicorp.com/t/remote-exec-provisioner-error/30294>\
**Category:** Terraform\
**Created:** [October 5, 2021, 2:17pm UTC](https://discuss.hashicorp.com/t/remote-exec-provisioner-error/30294 "2021-10-05T14:17:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkorobko](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/nkorobko/32/22814_2.png) [@nkorobko](https://discuss.hashicorp.com/u/nkorobko)\
**Post date:** [October 5, 2021, 2:17pm UTC](https://discuss.hashicorp.com/t/remote-exec-provisioner-error/30294/1 "2021-10-05T14:17:53Z")

</div>

Having the same issue:

Terraform v1.0.7  
aws provider v3.61.0

Error: remote-exec provisioner error

with module.sio.aws\_instance.sio[0],  
on …/…/modules/sio/main.tf line 25, in resource “aws\_instance” “sio”:  
25: provisioner “remote-exec” {

error executing “/tmp/terraform\_759382728.sh”: Process exited with status 1  
2021-10-05T07:11:02.830-0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err=“rpc error: code = Unavailable desc = transport is closing”  
2021-10-05T07:11:02.831-0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/template/2.2.0/linux\_amd64/terraform-provider-template\_v2.2.0\_x4 pid=10778  
2021-10-05T07:11:02.831-0500 [DEBUG] provider: plugin exited  
2021-10-05T07:11:02.834-0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.61.0/linux\_amd64/terraform-provider-aws\_v3.61.0\_x5 pid=10791  
2021-10-05T07:11:02.834-0500 [DEBUG] provider: plugin exited

---

<div class="post-metadata">

**Author:** ![apparentlymart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/apparentlymart/32/702_2.png) [@apparentlymart](https://discuss.hashicorp.com/u/apparentlymart)\
**Post date:** [October 5, 2021, 4:34pm UTC](https://discuss.hashicorp.com/t/remote-exec-provisioner-error/30294/2 "2021-10-05T16:34:01Z")

</div>

Hi @nkorobko,

I moved your reply into its own topic because what you showed here doesn’t seem related to the AzureRM provider problem you originally attached it to.

This error seems to just be reporting that your provisioner script encountered an error. The `remote-exec` provider uploaded the script you provided to `/tmp/terraform_759382728.sh` and then executed it. The script exited with a non-successful status, and so Terraform is reporting that status to you.

Without seeing the content of the script I can’t really speculate about what might be causing it to fail, though.

---

<div class="post-metadata">

**Author:** ![nkorobko](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/nkorobko/32/22814_2.png) [@nkorobko](https://discuss.hashicorp.com/u/nkorobko)\
**Post date:** [October 6, 2021, 8:31am UTC](https://discuss.hashicorp.com/t/remote-exec-provisioner-error/30294/3 "2021-10-06T08:31:01Z")

</div>

Thanks - that was the case. My script errored out. Thank you
