CPM 14.2 Upgrade Failure: Services Will Not Start, Error 5, and CACPM804E 0x80096005 Signature Errors
Symptom
Engineers and customers may observe one or all of the following symptoms in sequence:
- Service Start Failure: The CPM_Hardening.ps1 script crashes during the upgrade. The Idira Password Manager and Scanner services do not start.
- Access Denied: Attempting to manually start the service yields Error 5: Access Denied.
- Vault Connection Failure: PMTrace.log displays constant errors: CASTM058E Failed to lock credential file [vault\user.ini] CACPM047E Error getting duplicated Session from Session Manager
- Signature Verification Failure: PVWA verify/change operations fail, and pm_error.log shows: CACPM804E Error verifying CPM engine signature: An error 0x80096005 occurred while trying to verify the signature of the engine file ".\bin\passchng.exe" (or CyberArk.TPC.exe).
- Plugin Execution Failure: pm_error.log shows: CACPM243W Failed to read from third party log file. Error: The system cannot find the file specified. (Often accompanied by crash codes -1073741515 or -2146232576).
- Reverting Permissions: Manual NTFS folder permissions applied to C:\Program Files (x86)\CyberArk\Password Manager disappear after 90-120 minutes, stopping the CPM service.
Environment
14.2 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
- Idira Central Policy Manager (CPM)
- Version 14.2 and later
- Windows Server (Domain Joined)
Cause
CPM 14.2 transitions service execution from the highly privileged LocalSystem account to restricted local accounts (PasswordManagerUser, ScannerUser, PluginManagerUser). This introduces several potential conflicts with strict enterprise environments:
- User Rights Assignment GPO: A Domain GPO restricts the "Log on as a service" and "Allow log on locally" rights. The hardening script fails to grant these rights to the new local users, crashes, and subsequently fails to apply required NTFS folder permissions.
- Missing NTFS Permissions: Because the hardening script crashed, the new restricted users are denied access to read the executables (\bin), lock the credential file (\Vault\user.ini), or write to the logs (\Logs).
- Offline Certificate Validation (0x80096005): Even if the server has internet access, the restricted local background users do not have the user-level proxy or firewall configurations required to reach online Certificate Revocation Lists (CRL) or TimeStamping Authorities (TSA). Windows rejects the Idira digital signature because it cannot verify the timestamp's chain of trust (commonly missing the GlobalSign Root CA).
- File System Security GPO: A Domain GPO is enforcing baseline file system security on the C:\Program Files (x86) directory. When the GPO refreshes, it strips away any manual NTFS permissions applied to the Idira folders, locking out the CPM service accounts.
Resolution
To permanently resolve these issues, the environment must be configured to support the new local service accounts.
Phase 1: Active Directory GPO Prerequisites
- Update the Domain GPO applied to the CPM servers to explicitly allow the following Local accounts the "Log on as a service" right: .\PasswordManagerUser .\ScannerUser
- Ensure the Domain GPO allows the following Local account the "Allow log on locally" (and/or "Log on as a batch job") right: .\PluginManagerUser
- Configure a File System Security GPO Exclusion for C:\Program Files (x86)\CyberArk\Password Manager and all subfolders so the domain does not overwrite CyberArk's least-privilege NTFS permissions.
Phase 2: Establish Certificate Trust (Offline Workaround)
To bypass the CRL/TSA network blocks for the restricted users, inject the required Root CAs directly into the Local Machine store:
- Export the GlobalSign Root CA (Specifically R3 and R6 used for Timestamping) and DigiCert Root CA from an unrestricted, internet-connected machine.
- Transfer the .cer / .crt files to the CPM Server.
- Install the certificates into the CPM Server's Local Machine -> Trusted Root Certification Authorities store.
- Verify the fix: Right-click passchng.exe -> Properties -> Digital Signatures -> View the Idira signature and Countersignature. The Certificate Path should display "This certificate is OK" without any red crosses or warning icons.
Phase 3: Apply Hardening and Test
- Once the GPOs are updated and certificates are trusted, re-run the CPM_Hardening.ps1 script from an elevated PowerShell prompt. It must complete without errors.
- Open services.msc and restart the Idira Password Manager and Idira Central Policy Manager Scanner services.
- Perform a Verify/Change operation in the PVWA to confirm successful plugin execution.
(Note: If the hardening script cannot be run immediately, temporary manual NTFS permissions can be applied to restore service: PasswordManagerUser and PluginManagerUser require Read & Execute on the root \Password Manager and \bin folders, and Modify/Write on the \Logs, \tmp, and \Vault subfolders).