error: (4, 'Interrupted system call')

I’m using the Ansible PlayBook class in my own Python program. My playbooks usually run fine but occasionally I get the error below. Can you give me any hints as to why this is happening? Googling seems to suggest that it might be related to a time-out. When it fails, it happens pretty quickly. It doesn’t seem like anything should be timing out that soon.

Any hints much appreciated!

GATHERING FACTS ***************************************************************
fatal: [plattsburgh] => Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 532, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 629, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 815, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File “/usr/lib/python2.7/dist-packages/ansible/runner/action_plugins/normal.py”, line 57, in run
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 411, in _execute_module
tmp = self._make_tmp_path(conn)
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 1020, in _make_tmp_path
result = self._low_level_exec_command(conn, cmd, None, sudoable=False)
File “/usr/lib/python2.7/dist-packages/ansible/runner/init.py”, line 948, in _low_level_exec_command
in_data=in_data)
File “/usr/lib/python2.7/dist-packages/ansible/runner/connection_plugins/ssh.py”, line 285, in exec_command
rfd, wfd, efd = select.select(rpipes, , rpipes, 1)
error: (4, ‘Interrupted system call’)

TASK: [Remove tree] ***********************************************************
FATAL: no hosts matched or all hosts have already failed – aborting

Haven’t seen his.

Can you run with “-vvvv” (4 vs) and see if you get more output, and can you tell us more about what versions you are running, what OS you are running from, and what you are connecting to?