Ansible jobs are throwing warning "sftp transfer mechanism failed".
Issue
- Ansible jobs are throwing warning "sftp transfer mechanism failed".
-
Following warning message is seen in the job output.
<testnode2> SSH: EXEC sshpass -d8 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/tmp/bwrap_188_ao_y1lkg/awx_188_omjfeqmm/cp/ae1c5e44e0 -tt testnode2 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1680605878.11-46911-1176342572092/AnsiballZ_yum.py && sleep 0'"'"'' [WARNING]: sftp transfer mechanism failed on [testnode1]. Use ANSIBLE_DEBUG=1 to see detailed information <testnode1> SSH: EXEC sshpass -d8 scp -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/tmp/bwrap_188_ao_y1lkg/awx_188_omjfeqmm/cp/4752c05d2e /var/lib/awx/.ansible/tmp/ansible-local-46887hpIdS4/tmpeUKHH2 '[testnode1]:/root/.ansible/tmp/ansible-tmp-1680605878.7-46910-109293144829255/AnsiballZ_setup.py' [WARNING]: scp transfer mechanis
Environment
- Ansible Tower
- Ansible Automation Platform
- Ansible Engine
- Ansible Core
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.