# Fact gathering times out

**URL:** <https://forum.ansible.com/t/fact-gathering-times-out/21316>\
**Category:** Ansible Project\
**Created:** [April 29, 2016, 4:11pm UTC](https://forum.ansible.com/t/fact-gathering-times-out/21316 "2016-04-29T16:11:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![E.C\_Raymond](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@E.C\_Raymond](https://forum.ansible.com/u/E.C_Raymond)\
**Post date:** [April 29, 2016, 4:11pm UTC](https://forum.ansible.com/t/fact-gathering-times-out/21316/1 "2016-04-29T16:11:32Z")

</div>

I am seeing a problem with Ansible (1.9.4) and Debian 7 (wheezy) timing out and failing on gathering facts, specifically with autofs/network mounted volumes. Its not limited to a specific host, as it is happening at random times across 200 hosts that have autofs setup.

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] =\> {“cmd”: “/bin/lsblk -ln --output UUID /etc/auto.net”, “failed”: true, “rc”: 257}

msg: Traceback (most recent call last):  
File “/root/.ansible/tmp/ansible-tmp-1461943252.91-163803999777791/setup”, line 1668, in run\_command  
cmd = subprocess.Popen(args, \*\*kwargs)  
File “/usr/lib/python2.7/subprocess.py”, line 679, in **init**  
errread, errwrite)  
File “/usr/lib/python2.7/subprocess.py”, line 1153, in \_execute\_child  
self.pid = os.fork()  
File “/root/.ansible/tmp/ansible-tmp-1461943252.91-163803999777791/setup”, line 1823, in \_handle\_timeout  
raise TimeoutError(error\_message)  
TimeoutError: Timer expired

When the fact gather task does work:

{  
“device”: “/etc/auto.net”,  
“fstype”: “autofs”,  
“mount”: “/mnt/net”,  
“options”: “rw,relatime,fd=27,pgrp=27931,timeout=300,minproto=5,maxproto=5,indirect”,  
“size\_available”: 0,  
“size\_total”: 0,  
“uuid”: “NA”  
}

Run manually

> lsblk -ln --output UUID /etc/auto.net

lsblk: /etc/auto.net: not a block device

Relevant bugs:  
[https://github.com/ansible/ansible/issues/11005](https://github.com/ansible/ansible/issues/11005)

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

Has anyone come across this issue? Alternatively, is there a way to disable certain facts from being gathered?

Thanks.
