winrm send_input failed

912 views
Skip to first unread message

sohail.p...@gmail.com

unread,
Aug 31, 2017, 5:52:24 AM8/31/17
to Ansible Project
[WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last):   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 267, in _winrm_exec
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last)   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 248, in _winrm_send_input
protocol.send_message(xmltodict.unparse(rq))   File "/usr/lib/python2.7/site-
packages/winrm/protocol.py", line 207, in send_message     return
self.transport.send_message(message)   File "/usr/lib/python2.7/site-
packages/winrm/transport.py", line 202, in send_message     raise
WinRMTransportError('https', error_message) WinRMTransportError: (u'https',
u'Bad HTTP response returned from server. Code 500')

fatal: [ACLUS2.ASWINI.COM]: FAILED! => {"failed": true, "msg": "winrm send_input failed"}
 [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last):   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 267, in _winrm_exec
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last)   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 248, in _winrm_send_input
protocol.send_message(xmltodict.unparse(rq))   File "/usr/lib/python2.7/site-
packages/winrm/protocol.py", line 207, in send_message     return
self.transport.send_message(message)   File "/usr/lib/python2.7/site-
packages/winrm/transport.py", line 202, in send_message     raise
WinRMTransportError('https', error_message) WinRMTransportError: (u'https',
u'Bad HTTP response returned from server. Code 500')

fatal: [ACLUS1.ASWINI.COM]: FAILED! => {"failed": true, "msg": "winrm send_input failed"}

J Hawkesworth

unread,
Aug 31, 2017, 3:25:21 PM8/31/17
to Ansible Project
Please share the playbook that is causing this error, and also the group_vars you are using.

You might need to change some of the timeouts - try something like the following.

ansible_winrm_operation_timeout_sec=60
ansible_winrm_read_timeout_sec=70

Is the server busy when this happens?  Can you monitor cpu disk and network activity when this occurs?
Message has been deleted

Abhijeet Kamble

unread,
May 17, 2018, 4:58:14 AM5/17/18
to Ansible Project
Facing the same issue with Ansible 2.4.1

<mweb03.xyz.com> WINRM RESULT u'<Response code 0, out "C:\\Users\\service_user_a", err "">'
<mweb03.xyz.com> PUT "/tmp/P20FrontOffice.zip" TO "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=250000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=500000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=750000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=1000000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=1250000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=1500000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=1750000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=2000000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=2250000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=2500000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=2750000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=3000000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=3250000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=3500000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=3750000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=4000000 size=250000)
<mweb03.xyz.com> WINRM PUT "/tmp/P20FrontOffice.zip" to "C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source" (offset=4250000 size=250000)
 [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last):   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 276, in _winrm_exec
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last)   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 256, in _winrm_send_input
protocol.send_message(xmltodict.unparse(rq))   File
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/protocol.py", line
207, in send_message     return self.transport.send_message(message)   File
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/transport.py",
line 184, in send_message     response = self.session.send(prepared_request,
timeout=self.read_timeout_sec)   File "/var/lib/awx/venv/ansible/lib/python2.7
/site-packages/requests/sessions.py", line 639, in …
<mweb03.xyz.com> WINRM CLOSE SHELL: 434399E7-C8C0-4A8D-966F-BE341385B4FE
fatal: [mweb03.xyz.com]: FAILED! => {
    "failed": true, 
    "msg": "winrm send_input failed"
}

Reply all
Reply to author
Forward
0 new messages