# sftp blocked fro my labtop when executing playbook

**URL:** <https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542>\
**Category:** Ansible Project\
**Created:** [January 29, 2021, 4:11pm UTC](https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542 "2021-01-29T16:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvesdeb](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@yvesdeb](https://forum.ansible.com/u/yvesdeb)\
**Post date:** [January 29, 2021, 4:11pm UTC](https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542/1 "2021-01-29T16:11:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [January 29, 2021, 5:57pm UTC](https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542/2 "2021-01-29T17:57:58Z")

</div>

What playbook are you talking about? I don't see any playbook.  
I think you forgot to include it in your message?

What does the inventory look like?  
What are you trying to achieve?
