# Regarding No space left on device error

**URL:** <https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656>\
**Category:** Ansible Project\
**Created:** [January 18, 2024, 5:54am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656 "2024-01-18T05:54:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 18, 2024, 5:54am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/1 "2024-01-18T05:54:01Z")

</div>

Hi All,

I have been facing the following issue:

/home/ansible/.ansible/tmp/ansible-tmp: No space left on device.

I have cleared the space in Ansible server and another server but the issue still persists.

Can some one please help me?

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [January 18, 2024, 12:47pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/2 "2024-01-18T12:47:11Z")

</div>

This could be about not enough inodes

Try this and see if the IUse% is near 100%:

df -i

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 18, 2024, 12:50pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/3 "2024-01-18T12:50:58Z")

</div>

Okay Vesser Thanks and will check

---

<div class="post-metadata">

**Author:** ![Evan\_Hisey](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@Evan\_Hisey](https://forum.ansible.com/u/Evan_Hisey)\
**Post date:** [January 18, 2024, 5:33pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/4 "2024-01-18T17:33:41Z")

</div>

Ashok-  
Just to state the obvious, because it can trip you up. Was the space you cleared available to/under /home/ansible? I have seen this be a symlink to other locations than what you expect, and also seen this error when you hit quota limits on the user which can also trigger against privilege changes to root or a secondary account.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 19, 2024, 12:07am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/5 "2024-01-19T00:07:41Z")

</div>

Thanks Evan for your inputs.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 19, 2024, 1:19am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/6 "2024-01-19T01:19:22Z")

</div>

Hi Visser,

 ![](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

The Iuse percentage is not an issue as per the above screenshot

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [January 19, 2024, 4:24am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/7 "2024-01-19T04:24:07Z")

</div>

Try the other tips from previous poster Evan, or try to seek help from the group that manages the system (if that is not you).

In any case this isn’t an ansible issue, but some local storage/configuration issue on your side.

> **(attachments)**
>
> ![image_123650291.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

---

<div class="post-metadata">

**Author:** ![Jatashankar\_Mishra](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Jatashankar\_Mishra](https://forum.ansible.com/u/Jatashankar_Mishra)\
**Post date:** [January 19, 2024, 5:06am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/8 "2024-01-19T05:06:28Z")

</div>

I think you should provide some more details

What task failed what was run?

Also share df -h

Thank you  
Jata

> **(attachments)**
>
> ![image_123650291.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 19, 2024, 5:21am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/9 "2024-01-19T05:21:47Z")

</div>

Okay Visser and Thanks for your inputs.

> **(attachments)**
>
> ![image_123650291.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

---

<div class="post-metadata">

**Author:** ![shearn](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@shearn](https://forum.ansible.com/u/shearn)\
**Post date:** [January 19, 2024, 12:53pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/10 "2024-01-19T12:53:21Z")

</div>

Can you run this from your Ansible control node against the target as the ansible user?

ansible ‘TARGETNAME’ -m command -a ‘df -h /home/’

ansible ‘TARGETNAME’ -m command -a ‘df -h /home/ansible/’

ansible ‘TARGETNAME’ -m command -a ‘df -h /home/ansible/.ansible’

ansible ‘TARGETNAME’ -m command -a ‘df -h /home/ansible/.ansible/tmp’

> **(attachments)**
>
> ![image_123650291.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 19, 2024, 12:56pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/11 "2024-01-19T12:56:32Z")

</div>

Okay Stan and I will run and let you know. Thanks for your inputs.

> **(attachments)**
>
> ![image_123650291.JPG](https://us1.discourse-cdn.com/ansible/original/2X/5/57cbb443f97112db10bc019949ab2537264c7317.jpeg)

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [January 19, 2024, 4:40pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/12 "2024-01-19T16:40:22Z")

</div>

I’ve seen “No space left on device” reported when the actual issue was that the filesystem being operated on was mounted read-only rather than read-write.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 19, 2024, 4:42pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/13 "2024-01-19T16:42:56Z")

</div>

Thanks Todd for your inputs.

---

<div class="post-metadata">

**Author:** ![shearn](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@shearn](https://forum.ansible.com/u/shearn)\
**Post date:** [January 19, 2024, 6:37pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/14 "2024-01-19T18:37:35Z")

</div>

That’s a great point Todd.

If the TARGET is Linux, run this and look for ‘ro’ read-only or ‘rw’ read-write.

ansible ‘TARGET’ -m shell -a ‘cat /proc/mounts | grep "/home "’

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 20, 2024, 4:40am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/15 "2024-01-20T04:40:38Z")

</div>

Thanks Stan for your inputs.

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [January 20, 2024, 7:50pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/16 "2024-01-20T19:50:41Z")

</div>

One possibilit is that a transient file is created by the ansible  
task, and cleared away if the file generation fails.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 21, 2024, 3:44am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/17 "2024-01-21T03:44:42Z")

</div>

Thanks Nico for your inputs.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 22, 2024, 2:02am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/18 "2024-01-22T02:02:45Z")

</div>

Hi I have verified in the particular server :

 ![](https://us1.discourse-cdn.com/ansible/original/2X/b/b27dd89c64da792591aaa295326e1e24d63ecc51.jpeg)

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 22, 2024, 2:20am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/19 "2024-01-22T02:20:08Z")

</div>

I did google and check the whether the file system has read only or read/write permissions. I am little bit confused about whether is in Ansible server or target server. The other builds, which are successfull in Ansible server. The issue might be in target server but not sure. and Not sure how to fix the transient file issue.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [January 22, 2024, 6:21am UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656/20 "2024-01-22T06:21:40Z")

</div>

![](https://us1.discourse-cdn.com/ansible/original/2X/7/7c1ae0ec8aa0dac10dd167ec576b66e37c6779e3.jpeg)

[Next page](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656.md?page=2)
