xebialabs / overthere

Runs something "Over there"
http://www.xebialabs.com
Other
196 stars 66 forks source link

XLD WinRmRuntimeIOException with no error code #216

Open ehankamo opened 7 years ago

ehankamo commented 7 years ago

I am running into this exception when attempting to call an IO that takes more than 150 seconds to return. Now, when I run this against a Windows 2008 target, it runs fine and respects the 1800 operationtimeout limit that is set. In Windows 2012, it always times out after about 150 seconds. I looked at the target server's WinRM settings and they match the 2008 server. It is throwing the exception well under the MaxTimeoutMs setting on the 2012 WinRM client. Any idea what could be causing this mysterious exception?

To verify this was a timeout exception, i wrote a sleep script and it's consistently timing out after 150 seconds.

I found a potential and crude workaround where if I spawn off a "ping" command that runs in the background every second while the IO is running at the same time, it will keep the session alive and allow the IO to complete after some time.... but I really do not want to go there yet because I am having trouble killing the ping (runs forever or I have to set some finite number of times for it to ping).

Below is the output in the XLD log. When deploying to the Win 2012 server

` **"start sleep" Step failed com.xebialabs.overthere.cifs.winrm.WinRmRuntimeIOException: Error when sending request to https://w438717.internal.foo.com:5986/wsman Request:

<?xml version="1.0" encoding="UTF-8"?>

https://w438717.internal.foo.com:5986/wsman http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous 153600 uuid:C64CE6FC-431F-4AC0-836C-4F42C02BB4E8 PT1800.000S http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive D5F858B0-BFEB-4F03-A0E4-16274B83536D http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd stdout stderr Response: [EMPTY] at com.xebialabs.overthere.cifs.winrm.WinRmClient.doSendRequest(WinRmClient.java:435)** `
Bart1909 commented 5 years ago

Try to set the connectionTimeoutMillis options-parameter to a higher value. This worked for me