# winrm send\_input failed

**URL:** <https://forum.ansible.com/t/winrm-send-input-failed/25384>\
**Category:** Ansible Project\
**Created:** [August 31, 2017, 9:52am UTC](https://forum.ansible.com/t/winrm-send-input-failed/25384 "2017-08-31T09:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohail.prodevans](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sohail.prodevans](https://forum.ansible.com/u/sohail.prodevans)\
**Post date:** [August 31, 2017, 9:52am UTC](https://forum.ansible.com/t/winrm-send-input-failed/25384/1 "2017-08-31T09:52:24Z")

</div>

[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](http://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](http://ACLUS1.ASWINI.COM)]: FAILED! =\> {“failed”: true, “msg”: “winrm send\_input failed”}

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 31, 2017, 7:25pm UTC](https://forum.ansible.com/t/winrm-send-input-failed/25384/2 "2017-08-31T19:25:21Z")

</div>

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.

```auto
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?

---

<div class="post-metadata">

**Author:** ![Abhijeet\_Kamble](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Abhijeet\_Kamble](https://forum.ansible.com/u/Abhijeet_Kamble)\
**Post date:** [May 17, 2018, 8:58am UTC](https://forum.ansible.com/t/winrm-send-input-failed/25384/3 "2018-05-17T08:58:14Z")

</div>

Facing the same issue with Ansible 2.4.1

\<[mweb03.xyz.com](http://mweb03.xyz.com)\> WINRM RESULT u’\<Response code 0, out “C:\Users\service\_user\_a”, err “”\>’  
\<[mweb03.xyz.com](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://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](http://mweb03.xyz.com)\> WINRM CLOSE SHELL: 434399E7-C8C0-4A8D-966F-BE341385B4FE  
fatal: [[mweb03.xyz.com](http://mweb03.xyz.com)]: FAILED! =\> {  
“failed”: true,  
“msg”: “winrm send\_input failed”  
}
