Weird deployment issue - "subsystem request failed on channel 0 - Connection reset by peer"

42 views
Skip to first unread message

Amir Luzon

unread,
Nov 22, 2015, 6:26:24 AM11/22/15
to Ansible Project
Hey guys,

We are experiencing an issue with one of our servers. This happens during the gather facts task. I am not a systems guy so i'm not sure what is going on here.

GATHERING FACTS ***************************************************************
<LDSB-COH04> ESTABLISH CONNECTION FOR USER: deploy_rn
<LDSB-COH04> REMOTE_MODULE setup CHECKMODE=True
<LDSB-COH04> EXEC ssh -C -tt -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=deploy_rn -o ConnectTimeout=10 LDSB-COH04 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322 && echo $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322'
<LDSB-COH04> PUT /tmp/tmpV2JSGP TO /home/jajah.dublin/deploy_rn/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322/setup
fatal: [LDSB-COH04] => failed to transfer file to /home/jajah.dublin/deploy_rn/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322/setup:

Connecting to LDSB-COH04...
#######################################################################
##                                                                   ##
## Authorized uses only. All activity may be monitored and reported. ##
##                                                                   ##
#######################################################################

#######################################################################
subsystem request failed on channel 0
Couldn't read packet: Connection reset by peer


Any assistance is welcome :)

Amir Luzon

unread,
Nov 22, 2015, 8:21:25 AM11/22/15
to Ansible Project
Fixed by adding this in ansible.cfg:

[ssh_connection]
scp_if_ssh=True
Reply all
Reply to author
Forward
0 new messages