# Failed to resolve remote temporary directory from ansible-tmp...

**URL:** <https://forum.ansible.com/t/failed-to-resolve-remote-temporary-directory-from-ansible-tmp/30412>\
**Category:** Ansible Project\
**Created:** [May 24, 2019, 4:49am UTC](https://forum.ansible.com/t/failed-to-resolve-remote-temporary-directory-from-ansible-tmp/30412 "2019-05-24T04:49:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Shand](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Adam\_Shand](https://forum.ansible.com/u/Adam_Shand)\
**Post date:** [May 24, 2019, 4:49am UTC](https://forum.ansible.com/t/failed-to-resolve-remote-temporary-directory-from-ansible-tmp/30412/1 "2019-05-24T04:49:24Z")

</div>

`Enter code here...`

Hey,

I submitted a bug but got told “it wasn’t a bug” and to ask here. So I’m asking here. 🙂

I’m an Ansible newbie, I’ve just setup some playbooks to manage about a dozen Linux servers. All going fine except that Ansible will not connect to two of my servers. No matter what I try it gives this error every single time I try and connect.

`fatal: [docker.xxx.nz]: FAILED! => {"msg": "failed to resolve remote temporary directory from ansible-tmp-1558058780.1613991-43401714620441:`( umask 77 && mkdir -p "`echo ~/.ansible/tmp/ansible-tmp-1558058780.1613991-43401714620441`" && echo ansible-tmp-1558058780.1613991-43401714620441="`echo ~/.ansible/tmp/ansible-tmp-1558058780.1613991-43401714620441`" )` returned empty string"}

`

I’m running from my Mac with the latest version of Ansible available from Homebrew. If you want additional details they are here on the ticket I created:

[https://github.com/ansible/ansible/issues/56555](https://github.com/ansible/ansible/issues/56555)

I get this error with with a very basic playbook which is only doing a ping.

On the ticket they suggested that it might be $HOME (it’s the same on working and non-working hosts) or it might be a weird shell (it’s bash on all the hosts).

If anyone has any other suggestions I’d would greatly appreciate it.

Cheers,  
Adam.

---

<div class="post-metadata">

**Author:** ![Adam\_Shand](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Adam\_Shand](https://forum.ansible.com/u/Adam_Shand)\
**Post date:** [May 30, 2019, 2:48am UTC](https://forum.ansible.com/t/failed-to-resolve-remote-temporary-directory-from-ansible-tmp/30412/2 "2019-05-30T02:48:57Z")

</div>

Bump, I could really use some assistance here.

Can anyone help out?

Thanks,  
Adam.

---

<div class="post-metadata">

**Author:** ![Adam\_Shand](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Adam\_Shand](https://forum.ansible.com/u/Adam_Shand)\
**Post date:** [May 30, 2019, 3:23am UTC](https://forum.ansible.com/t/failed-to-resolve-remote-temporary-directory-from-ansible-tmp/30412/3 "2019-05-30T03:23:21Z")

</div>

Never mind, just got it to work.

I haven’t figured out why, but deleting my home directory and recreating it empty solved the problem.

It wasn’t a permissions problem, permissions are identical. My best guess is maybe something in my .bash\* files which it didn’t like.
