scp/sftp transfer mechanism failed

Posted on

For each task that I run, I get the following WARNING messages but my play still completes.

[WARNING]: sftp transfer mechanism failed on [10.11.13.55]. Use ANSIBLE_DEBUG=1 to see detailed
information
[WARNING]: scp transfer mechanism failed on [10.11.13.55]. Use ANSIBLE_DEBUG=1 to see detailed
information

I run the same command with the debug option and see the following. I didn't include the full debug logs to keep it concise:

<<<
  3619 1726507004.71462: stdout chunk (state=3):
>>><<<
  3619 1726507004.71472: stderr chunk (state=3):
>>><<<
[WARNING]: sftp transfer mechanism failed on [10.11.13.55]. Use ANSIBLE_DEBUG=1 to see detailed
information
  3619 1726507004.71520:
  3619 1726507004.71521: Connection closed
  3619 1726507004.73585: stderr chunk (state=2):
>>>Connection closed
<<<
  3619 1726507004.73774: stderr chunk (state=3):
>>><<<
  3619 1726507004.73779: stdout chunk (state=3):
>>><<<
[WARNING]: scp transfer mechanism failed on [10.11.13.55]. Use ANSIBLE_DEBUG=1 to see detailed
information
  3619 1726507004.73857:
  3619 1726507004.73858: Connection closed
  3619 1726507004.74425: Sending initial data
  3619 1726507004.76831: Sent initial data (297347 bytes)
  3619 1726507004.77355: stderr chunk (state=3):
>>>0+19 records in
0+19 records out

I've looked at the below solution, applied the listed resolution, and restarted the ssh service but it didn't help. I tried it on both the management node and the host I'm getting the warning for.
https://access.redhat.com/solutions/6661361

Responses