PVWA - Error "Process ConfigureVault.exe failed with exit code -1" when running PVWARegisterComponent.ps1 during PVWA upgrade
99
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:06 PM
Symptom
When upgrading an existing PVWA instance using scripts, while running Registration script step (PVWARegisterComponent.ps1), the following errors are thrown in the powershell console:
Running process [ConfigureVault.exe] from path [C:\CyberArk\Password Vault Web Access\Env] with arguments ["ConfigureVaultInput.json" ].
Process ConfigureVault.exe failed with exit code -1
The following step had failed: RunPVWARegisterComponent. Please see documentation in the log
finish execute step Run the PVWA Register Component Script
===================================================================
*******************************************************************
The following Step failed : RunPVWARegisterComponent
*******************************************************************
{
"isSucceeded": 1,
"errorData": "Step Run the PVWA Register Component Script Skipping prerequisites check.\n The following Step failed : RunPVWARegisterComponent",
"logPath": "C:\\CYBR_Files\\Password Vault Web Access-Rls-v14.2.1\\InstallationAutomation\\Registration\\Script.log"
Checking the Script.log, you will see following error:
4-09-07 13:43:20 ERROR: Process ConfigureVault.exe failed with exit code -1
Checking the log at "C:\CyberArk\Password Vault Web Access\Env\Log\ConfigureVault.log", you might see following errors:
2024-09-07 13:43:19,823 WARN - Failed to share owners on Safe [CPM1]. Error message: ITATS020E Safe Name CPM1 hasn't been defined.
2024-09-07 13:43:19,823 ERROR - CpmPVWASharedEnvMgr -> 'Add PVWA Shares On CPM Safe' ended with errors.
Upgrade Document Reference:
https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PAS%20INST/PVWA-upgrade.htm?tocpath=Installation%7CUpgrade%7CUpgrade%20PVWA%7C_____3#Registration
Environment
12.2;12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
This is caused by having invalid CPM user enabled in the vault and it does not have the associated CPM safes.
Resolution
Remove the invalid CPM user via PrivateArk Client - Tools - Administrator Tools - Users and Groups and re-run Registration script.