Hi,
my playbook randomly hangs on the sftp command.
I work from my remote workstation through a VPN. my playbook blocks randomly on the sftp command whatever the client at the end and this randomly. It creates the file on the client but cannot fill the file which remains empty . The transfer is blocked. When I run this playbbok on a local virtua machine it works fine.
Remote:
TASK [PGDATA Recovery] ********************************************* *************************************************** *************************************************** *************************************************** ***************
…
<srisvm-pgwatch2bdd.isocel.info> SSH: EXEC sftp -b - -C -o ControlMaster = auto -o ControlPersist = 60s -o KbdInteractiveAuthentication = no -o PreferredAuthentications = gssapi-with-mic, gssapi-keyex, hostbased, publickey -o PasswordAuthentication = no -o ConnectTimeout = 10 -o ControlPath = / root / .ansible / cp / ab150ea874 ‘[srisvm-pgwatch2bdd.isocel.info]’
customer log
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: debug1: session_input_channel_req: session 0 req env
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: debug1: server_input_channel_req: channel 0 request subsystem reply 1
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: debug1: session_by_channel: session 0 channel 0
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: debug1: session_input_channel_req: session 0 req subsystem
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: debug1: subsystem: exec () / usr / libexec / openssh / sftp-server -l DEBUG3
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119409]: Starting session: subsystem ‘sftp’ for root from 200.140.48.113 port 51044 id 0
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119424]: debug1: PAM: reinitializing credentials
Jan 29 17:00:49 srisvm-pgwatch2bdd sshd [119424]: debug1: permanently_set_uid: 0/0
The file transferred to the client. Its size is 0 and the sftp is blocked (waiting an event ?)
[root @ srisvm-pgwatch2bdd ~] # ll /var/tmp/ansible-tmp-1611936049.1718247-118537964217026/AnsiballZ_command.py
-rw ------- 1 root root 0 Jan 29 5:00 PM /var/tmp/ansible-tmp-1611936049.1718247-118537964217026/AnsiballZ_command.py
When I do a manuel transfert from my labtop it’s work !
root@PTIA-107:~# sftp srisvm-pgwatch2bdd.isocel.info
Connected to srisvm-pgwatch2bdd.isocel.info.
put test /tmp/
Uploading test to /tmp/test
test 100% 9 0.2KB/s 00:00
Could you help me and tell me why my sftp with ansible is blocked ?
Thanks