# ansible win\_ping "WINRM RESULT \<Response code 0, out "", err "ConvertTo-Json : Une"\>"

**URL:** <https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 15, 2014, 3:44pm UTC](https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063 "2014-12-15T15:44:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![youmarva](https://avatars.discourse-cdn.com/v4/letter/y/3d9bf3/32.png) [@youmarva](https://forum.ansible.com/u/youmarva)\
**Post date:** [December 15, 2014, 3:44pm UTC](https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063/1 "2014-12-15T15:44:48Z")

</div>

Hi,

I have configured my server Ansible and my windows machines to use the windows modules, the connection is going well for most of the machines tested except for a few where I have the following error when i execute ansible

`  
#windows -m win\_ping -vvvv  
ansible windows -m win\_ping -vvvv  
\<172.16.0.80\> ESTABLISH WINRM CONNECTION FOR USER: infra on PORT 5986 TO 172.16.0.80  
\<172.16.0.80\> WINRM CONNECT: transport=plaintext endpoint=[https://172.16.0.80:5986/wsman](https://172.16.0.80:5986/wsman)  
\<172.16.0.80\> REMOTE\_MODULE win\_ping  
\<172.16.0.80\> EXEC (New-Item -Type Directory -Path $env:temp -Name “ansible-tmp-1418653333.53-246551001925925”).FullName | Write-Host -Separator ‘’;  
\<172.16.0.80\> WINRM EXEC ‘PowerShell’ [‘-NoProfile’, ‘-NonInteractive’, ‘-EncodedCommand’, ‘KABOAGUAdwAtAEkAdABlAG0AIAAtAFQAeQBwAGUAIABEAGkAcgBlAGMAdABvAHIAeQAgAC0AUABhAHQAaAAgACQAZQBuAHYAOgB0AGUAbQBwACAALQBOAGEAbQBlACAAIgBhAG4AcwBpAGIAbABlAC0AdABtAHAALQAxADQAMQA4ADYANQAzADMAMwAzAC4ANQAzAC0AMgA0ADYANQA1ADEAMAAwADEAOQAyADUAOQAyADUAIgApAC4ARgB1AGwAbABOAGEAbQBlACAAfAAgAFcAcgBpAHQAZQAtAEgAbwBzAHQAIAAtAFMAZQBwAGEAcgBhAHQAbwByACAAJwAnADsA’]  
\<172.16.0.80\> WINRM RESULT \<Response code 0, out “C:\Users\infra\AppDa”, err “”\>  
\<172.16.0.80\> PUT /tmp/tmpfe1MUN TO C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\win\_ping  
\<172.16.0.80\> WINRM PUT /tmp/tmpfe1MUN to C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\win\_ping.ps1 (offset=0 size=2037)  
\<172.16.0.80\> WINRM PUT /tmp/tmpfe1MUN to C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\win\_ping.ps1 (offset=2037 size=2037)  
\<172.16.0.80\> WINRM PUT /tmp/tmpfe1MUN to C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\win\_ping.ps1 (offset=4074 size=1807)  
\<172.16.0.80\> PUT /tmp/tmpMlMZ5d TO C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\arguments  
\<172.16.0.80\> WINRM PUT /tmp/tmpMlMZ5d to C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\arguments (offset=0 size=2)  
\<172.16.0.80\> EXEC PowerShell -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -File “C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\win\_ping.ps1” “C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925\arguments”; Remove-Item "C:\Users\infra\AppData\Local\Temp\ansible-tmp-1418653333.53-246551001925925" -Force -Recurse;  
\<172.16.0.80\> WINRM EXEC ‘PowerShell’ [‘-NoProfile’, ‘-NonInteractive’, ‘-EncodedCommand’, ‘UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARgBpAGwAZQAgACIAQwA6AFwAVQBzAGUAcgBzAFwAaQBuAGYAcgBhAFwAQQBwAHAARABhAHQAYQBcAEwAbwBjAGEAbABcAFQAZQBtAHAAXABhAG4AcwBpAGIAbABlAC0AdABtAHAALQAxADQAMQA4ADYANQAzADMAMwAzAC4ANQAzAC0AMgA0ADYANQA1ADEAMAAwADEAOQAyADUAOQAyADUAXABcAHcAaQBuAF8AcABpAG4AZwAuAHAAcwAxACIAIAAiAEMAOgBcAFUAcwBlAHIAcwBcAGkAbgBmAHIAYQBcAEEAcABwAEQAYQB0AGEAXABMAG8AYwBhAGwAXABUAGUAbQBwAFwAYQBuAHMAaQBiAGwAZQAtAHQAbQBwAC0AMQA0ADEAOAA2ADUAMwAzADMAMwAuADUAMwAtADIANAA2ADUANQAxADAAMAAxADkAMgA1ADkAMgA1AFwAXABhAHIAZwB1AG0AZQBuAHQAcwAiADsAIABSAGUAbQBvAHYAZQAtAEkAdABlAG0AIAAiAEMAOgBcAFUAcwBlAHIAcwBcAGkAbgBmAHIAYQBcAEEAcABwAEQAYQB0AGEAXABMAG8AYwBhAGwAXABUAGUAbQBwAFwAYQBuAHMAaQBiAGwAZQAtAHQAbQBwAC0AMQA0ADEAOAA2ADUAMwAzADMAMwAuADUAMwAtADIANAA2ADUANQAxADAAMAAxADkAMgA1ADkAMgA1AFwAIgAgAC0ARgBvAHIAYwBlACAALQBSAGUAYwB1AHIAcwBlADsA’]  
\<172.16.0.80\> WINRM RESULT \<Response code 0, out “”, err "ConvertTo-Json : "\>  
pc-bill | FAILED \>\> {  
“failed”: true,  
“msg”: “ConvertTo-Json : \r\n”,  
“parsed”: false  
}

`

or

`

\<172.16.0.80\> WINRM RESULT \<Response code 0, out “”, err “ConvertTo-Json : Une”\>  
pc-bill | FAILED =\> Traceback (most recent call last):  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/ **init**.py”, line 579, in \_executor  
exec\_rc = self.\_executor\_internal(host, new\_stdin)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/ **init**.py”, line 752, in \_executor\_internal  
return self.\_executor\_internal\_inner(host, self.module\_name, self.module\_args, inject, port, complex\_args=complex\_args)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/ **init**.py”, line 985, in \_executor\_internal\_inner  
result = handler.run(conn, tmp, module\_name, module\_args, inject, complex\_args)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/action\_plugins/normal.py”, line 57, in run  
return self.runner.\_execute\_module(conn, tmp, module\_name, module\_args, inject=inject, complex\_args=complex\_args)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/ **init**.py”, line 544, in \_execute\_module  
res = self.\_low\_level\_exec\_command(conn, cmd, tmp, sudoable=sudoable, in\_data=in\_data)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/ **init**.py”, line 1133, in \_low\_level\_exec\_command  
in\_data=in\_data)  
File “/usr/local/lib/python2.7/dist-packages/ansible-1.8-py2.7.egg/ansible/runner/connection\_plugins/winrm.py”, line 153, in exec\_command  
return (result.status\_code, ‘’, result.std\_out.encode(‘utf-8’), result.std\_err.encode(‘utf-8’))  
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0x82 in position 56: ordinal not in range(128)

`

or

`  
failed: [pc-riadh] =\> {“failed”: true, “parsed”: false}

Process is terminated due to StackOverflowException.

`

When researching this problem in the internet, I found in the forum talking about a problem of memory dedicated in the target machine.  
But I haven’t been able to diagnose the problem  
If you can help me it will be very useful to me.

thanks

Youmarva

---

<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:** [December 15, 2014, 4:35pm UTC](https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063/2 "2014-12-15T16:35:17Z")

</div>

I think I had this StackOverflowException problem in the past with a windows server 2008 installation which had not received any windows updates.  
I suggest you check you are up to date with windows updates.  
Jon

---

<div class="post-metadata">

**Author:** ![youmarva](https://avatars.discourse-cdn.com/v4/letter/y/3d9bf3/32.png) [@youmarva](https://forum.ansible.com/u/youmarva)\
**Post date:** [December 15, 2014, 4:51pm UTC](https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063/3 "2014-12-15T16:51:59Z")

</div>

Thanks Jon for your reply, I will try to update windows and I inform you of the result.

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [December 15, 2014, 6:39pm UTC](https://forum.ansible.com/t/ansible-win-ping-winrm-result-response-code-0-out-err-convertto-json-une/17063/4 "2014-12-15T18:39:38Z")

</div>

This hotfix was previously mentioned on the list (  
[https://groups.google.com/d/topic/ansible-project/nve1NRr2Vx4/discussion](https://groups.google.com/d/topic/ansible-project/nve1NRr2Vx4/discussion))  
as a fix for this problem:

[https://support.microsoft.com/kb/2842230](https://support.microsoft.com/kb/2842230)
