We are having issues with PowerShell tasks getting locked. Looking at the underlying PID, you can see that it is held up on a WerFault exception. Once the task PID is killed the following error is being displayed. I have seen this issue on two different server versions, 8.1.2 and 8.2.1. Any assistance with the issue would be appreciated.
Thanks!
Unhandled Exception: System.TimeoutException: The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: Open timed out after 00:01:00 while establishing a transport session to net.pipe://visualcronserver/TaskService. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: Cannot connect to endpoint 'net.pipe://visualcronserver/TaskService' within the allotted timeout of 00:00:59.8500000. The server has likely reached the MaxConnections quota and is too busy to accept new connections. The time allotted to this operation may have been a portion of a longer timeout. ---> System.IO.PipeException: A pipe endpoint exists for '\\.\pipe\164e8364-7407-4d33-a860-75fcb64a33bb', but the connect failed: All pipe instances are busy. (231, 0xe7)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.PipeConnectionInitiator.TryConnect(Uri remoteUri, String resolvedAddress, BackoffTimeoutHelper backoffHelper)
at System.ServiceModel.Channels.PipeConnectionInitiator.Connect(Uri remoteUri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at VisualCron.ITaskService.RequestTaskInfo(Int32 VCTaskPId)
at cHJfmnyPpKZ0iJ4tnN.WH0WifmctoBfvWrb07.xvlEa5rgK(String[] )
Exception in Task: Non zero exit code
Exception in Task: Non zero exit code