CPM - Scan is stuck at Running - 100%
110
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:54 PM
Symptom
A Windows scan never completes, and when viewing the scans in discovery management the scan's state is Running - 100% (it could also show 99% or 98%).
In the CACPMScanner.log you will see that the scanner finish scanning machines, but the number of finished machines is less than the number of machines to scan:
30/12/2018 23:22:26.469 | tid=18 | user=CACPMScanner | ScannerThreadPool | EndThread | machine.address | insertedCounter: 2049 | contextCounter: 1 | runningCounter: 1 | waitingItems: 0 | finishedCounter: 2048
After this the log repeats it self with:
19/12/2018 04:11:39.760 | tid=7 | user=CACPMScanner | TasksRunner | UpdateActiveTasks | Start
19/12/2018 04:11:39.760 | tid=7 | user=CACPMScanner | TasksRunner | UpdateActiveTasks | Active tasks: 1 | Running: 1 | Stopping: 0
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM) CPM Accounts Discovery
Cause
The scanner has one or more tasks stuck while trying to scan a machine which has a problem with its WMI or COM+. The task is forever waiting for an answer from this machine, so the scan never completes.
Before version 10.2, this is a known bug.
From version 10.2 this bug is fixed, but it is necessary to set a parameter in the CACPMScanner.exe.config file:
<add key="DistributedWMI" value="yes"/>
If this parameter is set to "no", then the fix is not applied and the scan can get stuck.
From version 12.1, new parameter added to the CACPMScanner.exe.config:
<add key="MachineScanTimeoutInMinutes" value="30" />
During a discovery scan, if there is an issue with one of the machines that stops the scan process, the Scanner will wait for the configured timeout before moving on to the next machine.
To change the default value, add this parameter and its value manually to the configuration file.
Acceptable Values: Timeout in number of minutes, 30 - 600
Default Value: 60
Resolution
In versions from 10.2 and upwards, in CACPMScanner.exe.config set the parameter:
<add key="DistributedWMI" value="yes"/>
<add key="MachineScanTimeoutInMinutes" value="30" />
In versions before 10.2, try to find and remove or repair the machine that is getting the scan stuck.