Connector Management - Prerequisite Script Fails During CPMConnectionTest (ITACM012S Timeout)

Connector Management - Prerequisite Script Fails During CPMConnectionTest (ITACM012S Timeout)

186
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM


Symptom


When attempting to install a new Privilege Cloud Connector, the installation fails during the prerequisite check (ConnectorCheckPrerequisites_PrivilegeCloud.ps1).

The script successfully connects to the Vault and creates the temporary test environment (the test safe, user, and configuration file). However, while the script is trying to read the configuration file piece by piece, the connection hangs and fails.


Associated Errors & Logs:

Repeated attempts to run the script will result in the exact same timeout behavior, leaving the test users and safes abandoned in the Vault. You can trace this failure through the following logs:

1. script.log The primary installation log shows the CPMPreReqScript step failing with an invalid handle and timeout:

 

2026-04-16 20:10:50 INFO:  Begin CPM Connection Install Test
2026-04-16 20:10:50 INFO:  Check password doesn't contain illegal char, otherwise installation will fail
2026-04-16 20:10:50 INFO:  Begin checking connection elements, should take 10-40 sec.
2026-04-16 20:12:25 INFO:  Failed to simulate a healthy CPM install:
2026-04-16 20:12:25 INFO:  -----------------------------------------
2026-04-16 20:12:25 INFO:  Extra details: The handle is invalid. Extra details: ITACM012S Timeout has expired. Extra details: The handle is invalid.
2026-04-16 20:12:25 INFO:  -----------------------------------------
2026-04-16 20:12:25 INFO:  (*) More detailed log can be found here: C:\Program Files\CyberArk\Management Agent\workspace\cpm-setup_prereq-<UUID>\VaultOperationsTester\Log\Casos.Error.log
2026-04-16 20:12:25 INFO:  (*) Hint: Typically this means there is a problem with Username/Password or FW configuration.
2026-04-16 20:12:25 ERROR:  The following step had failed: CPMPreReqScript. Please see documentation in the log

 


2. stdout.log
This log reveals the exact execution steps. It confirms the test safe and user are created successfully, but the process crashes with an ITACM012S timeout exactly when it attempts to open the PVConfiguration.xml file:

 

Connecting to the vault...
Connected to the vault

Safe VaultOperationsTesterSafe will be created
Safe VaultOperationsTesterSafe created
User VaultOperationsTesterUser will be created
User VaultOperationsTesterUser created
User VaultOperationsTesterUser will be added as a safe owner of the safe VaultOperationsTesterSafe
User VaultOperationsTesterUser added as a safe owner of the safe VaultOperationsTesterSafe
PVConfiguration file will be added to the safe VaultOperationsTesterSafe
PVConfiguration file added to the safe VaultOperationsTesterSafe
Trying to find the CPM name PasswordManagerTest in the PVConfiguration file on safe VaultOperationsTesterSafe
Trying to open the PVConfiguration file from safe VaultOperationsTesterSafe

Failed to execute the tool.
Refer to log (C:\Program Files\CyberArk\Management Agent\workspace\cpm-setup_prereq-<UUID>\VaultOperationsTester\Log) for more information.
Extra details: ITACM012S Timeout has expired.
 Stack Trace:    at DisableEnginensValidationSigning.CasosProxy.OpenXmlFile(String safeName, String folderName, String filename)
   at DisableEnginensValidationSigning.Program.HandleCPMName(CasosProxy casosInstance, String safeName, String CPMname, String CPMNameOperation, XmlDocument xmlDoc)
   at DisableEnginensValidationSigning.Program.<Main>g__RunAll|9_9(CasosProxy casosInstance, Boolean runRegisterCheck)
   at DisableEnginensValidationSigning.Program.Main(String[] args)
Logout from vault

Falied to clear the console output
Extra details: The handle is invalid.

 


3. Casos.Error.log
Navigating to the Casos Error log confirms a CASVM006E error followed by repeated ITACM012S timeouts:

 

[16/04/2026 | 20:10:52.509302] | {pid= 3640} | {tid=     4796} | class CCASVaultMgr *                | Caso\(344)                                                  |  ::  | CASVM006E Vault [Demo Vault] does not exist.
[16/04/2026 | 20:11:25.728724] | {pid= 3640} | {tid=     4796} | class CCASPASVCExecuter *           | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(438)               |  ::  | ITACM012S Timeout has expired.  (Vault [Demo Vault] safe [VaultOperationsTesterSafe] user [installeruser@cyberark.cloud.<tenant_id>])
[16/04/2026 | 20:11:55.738098] | {pid= 3640} | {tid=     4796} | class CCASPASVCExecuter *           | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(438)               |  ::  | ITACM012S Timeout has expired.  (Vault [Demo Vault] safe [VaultOperationsTesterSafe] user [installeruser@cyberark.cloud.<tenant_id>])

 


4. Casos.Debug.log
Finally, checking the Debug log reveals the underlying communication error (-1066012), indicating the connection was actively dropped mid-process by the environment:

 

[28/04/2026 | 17:42:32.370277] | {pid= 8904} | {tid=      5888} | class CCASSessionTransactionsMgr * | ITA\(4977)                                                          |  ::  | Error (code = -1066012) is a comm error. (Vault [Demo Vault] safe [VaultOperationsTesterSafe] user [installeruser@cyberark.cloud.<tenant_id>])
[28/04/2026 | 17:42:32.370297] | {pid= 8904} | {tid=      5888} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(527)               |  ::  | close and zero sockets before SaveSocketsIntoPool because failed on comm error
[28/04/2026 | 17:42:32.370391] | {pid= 8904} | {tid=      5888} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(438)               |  ::  | ITACM012S Timeout has expired.  (Vault [Demo Vault] safe [VaultOperationsTesterSafe] user [installeruser@cyberark.cloud.<tenant_id>])



Environment


Privilege Cloud Central Policy Manager (CPM)
  • OS: Windows Server 2022

  • Infrastructure: Google Cloud Platform (GCP)

  • Components: Privilege Cloud Connector Prerequisite Script (v40), VaultOperationsTester (v14.4.0.1)

Note: To date, this issue has only been observed when the connector virtual machine is hosted on Google Cloud Platform (GCP). However, similar network connection limits (SNAT port exhaustion) exist in other cloud providers like AWS and Azure. This article will be updated if similar behaviors are confirmed in other environments.



Cause


The server simply ran out of available network connection slots - a technical issue known as SNAT (Source Network Address Translation) port exhaustion.

During the prerequisite check, the installation script tries to open many connections to the Vault all at once. This quick burst of traffic easily hits the default Google Cloud Platform (GCP) limit of 64 temporary outbound connections (ephemeral ports) allowed for a single virtual machine.


Once this limit is reached, the GCP gateway actively blocks any new connection attempts. This forces the communication errors seen in the logs and causes the script to time out and fail.



Resolution


To resolve this issue, you need to allow the virtual machine in GCP to make more simultaneous network connections.

  1. Access your Google Cloud Platform (GCP) Console and navigate to your networking or Cloud NAT configuration.

  2. Locate the network settings for the specific virtual machine instance hosting the Connector.

  3. Find the setting for minimum ports per VM instance.

  4. Increase this value from the default of 64 to 256.

  5. Save the configuration and wait a few moments for the network changes to apply.

  6. Re-run the Privilege Cloud Connector prerequisite script.

Quadrupling the available connection slots gives the process enough capacity to communicate with the Vault without being blocked by the cloud gateway.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000tB4CAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail