# Random anisble failures due to tmp files not found

**URL:** <https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835>\
**Category:** Ansible Project\
**Created:** [March 7, 2019, 12:34am UTC](https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835 "2019-03-07T00:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![igorc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/igorc/32/5491_2.png) [@igorc](https://forum.ansible.com/u/igorc)\
**Post date:** [March 7, 2019, 12:34am UTC](https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835/1 "2019-03-07T00:34:00Z")

</div>

Anyone else seeing random playbook execution failuers like this:

`  
Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source not found"}

`

Any idea what is causing them and how to fix it?

Thanks

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 7, 2019, 5:12pm UTC](https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835/2 "2019-03-07T17:12:27Z")

</div>

> Anyone else seeing random playbook execution failuers like this:
> 
> Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source  
> not found"}

No, you must have some issues with your setup.

> Any idea what is causing them and how to fix it?

Running with -vvvv might give you some more information.

---

<div class="post-metadata">

**Author:** ![igorc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/igorc/32/5491_2.png) [@igorc](https://forum.ansible.com/u/igorc)\
**Post date:** [March 7, 2019, 10:46pm UTC](https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835/3 "2019-03-07T22:46:14Z")

</div>

> > Anyone else seeing random playbook execution failuers like this:
> > 
> > Source /home/user/.ansible/tmp/ansible-tmp-1551917585.84-139567381415844/source  
> > not found"}
> 
> No, you must have some issues with your setup.

Maybe but highly unlikely. This happened during provisioning of 20 EC2 instances with same ansible config and same repository and 19 were successful but 1 failed with the error. All instances autoprovision them self locally and the one that failed has hundreds of tasks successfully executed before the failed one.

I remember seeing an issue where the OP found out that the:

`remote_tmp = $HOME/.ansible/tmp`

settings works unreliably and ansible looses the tmp path being unable to resolve the $HOME env var. I tried googling it up again but can not find it now :-/

> > Any idea what is causing them and how to fix it?
> 
> Running with -vvvv might give you some more information.

That’s hard since replaying the whole playbook several times after the failure shows no issues at all.

---

<div class="post-metadata">

**Author:** ![igorc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/igorc/32/5491_2.png) [@igorc](https://forum.ansible.com/u/igorc)\
**Post date:** [March 26, 2019, 12:51am UTC](https://forum.ansible.com/t/random-anisble-failures-due-to-tmp-files-not-found/29835/4 "2019-03-26T00:51:13Z")

</div>

FWIW found the reference:

[https://github.com/dw/mitogen/issues/301#issuecomment-404620821](https://github.com/dw/mitogen/issues/301#issuecomment-404620821)  
[https://github.com/ansible/ansible/issues/31617](https://github.com/ansible/ansible/issues/31617)
