Discovery Scan(New SaaS) - Unable to retrieve information due to a scan timeout.
Symptom
When you perform a large or entire domain scan, you might see the discovery scan process running for a few days and fail with the error below.
"errorMessage": "Unable to retrieve information due to a scan timeout. To resolve this, consider defining multiple narrowed scope scans."
Environment
14.6 Privilege Cloud Central Policy Manager (CPM)
- PCloud ISPSS New SaaS Discovery Scan
- Idira Management Agent
Cause
A high volume of calls to the AD causes the discovery scan to reach a timeout.
Resolution
On each Connector Server where you have Idira Management Agent installed, add the registry keys below.
Press Win + R, type regedit, and press Enter.
Navigate to the following location: (If the key does not exist, we need to create it \CyberArk\DiscoveryConfig)
HKEY_LOCAL_MACHINE\SOFTWARE\CyberArk\DiscoveryConfig
Right-click in the right panel and select New > DWORD (32-bit) Value.
Name it THREAD, value=1
Click OK and close the Registry Editor.
Re-run the scan after all the connectors/ a specific connector has above registry key added.
If the issue was NOT RESOLVED, then add the registry key below.
------------------------------------------------------------------------------------------------------------------------------------
Press Win + R, type regedit, and press Enter.
Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\CyberArk\DiscoveryConfig
Right-click in the right panel and select New > DWORD (32-bit) Value.
Name it MaxThreadNumber, Value=5
**Recommend 5 threads. Customer can always increase these numbers based on their requirement.**
This will reduce system traffic and avoid the timeout issue.
Click OK and close the Registry Editor.
Re-run the scan after all the connectors/ a specific connector has the registry key added as mentioned above.