CPM - The CPM scanner service is crashing each time we attempt to do a discovery scan
Symptom
Scanner service gets stuck at Disconnected to Connecting and never connects. CACPMScanner.log has the following:
user=CACPMScanner | Level: Info, Message: WSC001I Starting method [HubCon_StateChanged]
user=CACPMScanner | Level: Info, Message: WSC008I Connection state changed from [Disconnected] to [Connecting].
user=CACPMScanner | Level: Info, Message: WSC001I Ending method [HubCon_StateChanged]
Event viewer log has following:
Faulting application name: CACPMScanner.exe, version: 13.0.0.5, time stamp: 0x6391af55
Faulting module name: KERNELBASE.dll, version: 10.0.17763.4720, time stamp: 0xbbeed0d7
Exception code: 0xe0434352
Fault offset: 0x00000000000349b9
Faulting process id: 0x1384
Faulting application start time: 0x01d9f87b0aeb3866
Faulting application path: C:\Program Files (x86)\CyberArk\Password Manager\Scanner\CACPMScanner.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: ba099582-3a2f-4e33-b7d4-f95e1cfc6d6b
Faulting package full name:
Prior is .NET runtime error:
Application: CACPMScanner.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Threading.Tasks.TaskCanceledException
Exception Info: System.AggregateException
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
at System.Threading.Tasks.Task.Wait(Int32, System.Threading.CancellationToken)
at CyberArk.CPMScanner.WF.HttpSessionClient.ExtractResult[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Threading.Tasks.Task`1<System.Net.Http.HttpResponseMessage>)
at CyberArk.CPMScanner.WF.HttpSessionClient.GetAction[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String)
at CyberArk.CPMScanner.TasksManager+<MainLoop>d__30.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
Environment
11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1 Privilege Cloud Central Policy Manager (CPM)
Central Policy Manager Scanner service
Cause
Network issue:
In the network trace we saw a lot of blocks trying to reach one of the load balancer IP addresses. In addition, when we opened the browser in IE and tried to open the page, it would not open. Network team involvement is needed to figure out where the blocks are and whitelist them.
Resolution
Use network trace to see where it is blocked. Need to engage customer's network team.