CPMEM033E Failed to create user api key credential file while upgrading the CPM server

CPMEM033E Failed to create user api key credential file while upgrading the CPM server

219
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 12:58 PM


Symptom


When upgrading an environment from version 10.6 or below to version 10.7 or above, while upgrading the CPM, an error with the following message is shown:
An error occurred while creating the Vault environment: CPMEM033E Failed to create user. failed to create user api key credential file.



In the CPMRegisterComponent.log the following errors are seen:
 
ERROR - VLTS046E Failed to add PasswordManager public key to the vault. Description: SRAPIE0006 Internal execution error.
ERROR - VLTS050E Failed to update PasswordManager public key in the vault. Description: Failed to execute command: An error occurred while trying to perform command UpdateUserAuthnKeyCommand.
ERROR - VLTS047E Failed to add or update PasswordManager public key to the vault.
ERROR - CPMEM001E Error while creating vault environment, creation was aborted. Description: CPMEM033E Failed to create user. Failed to create user api key credential file.
 


Environment


10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;14.2 Component: Central Policy Manager (CPM) Functional Area: Upgrade
 


Cause


The error can be the result of one or more of the following:
  • Upgrading CPM before PVWA   
  • Incorrect PVWA URL
  • PVWA is using a Public Certificate (such as GoDaddy or DigiCert)
This results in a problem with the api key used by the Scanner to access the PVWA API.


Resolution


Use the administrative command prompt to revoke and then regenerate the API key.
To do this perform the following steps:

1. On the CPM server, stop the CyberArk Central Policy Manager services. 

2. On the PVWA server run iisreset to restart IIS & PVWA. 

3. From the CPM, under C:\Program Files (x86)\CyberArk\Password Manager\Vault, revoke apikey.ini using a command-line as admin : 

apikeymanager revoke -t PasswordManager -u administrator -a "https://<PVWA_FQDN>/PasswordVault/api/"


Note: Make sure that <PVWA_FQDN> points to a PVWA with version 10.7 or above. Also, there is an issue with the knowledge article creation tool that causes a double-quotation to be inserted when only a single quotation is needed. Be sure to remove the second quotation mark after https://<PVWA_FQDN>/PasswordVault/api/ as shown in the image below.

image.png

*IF YOU RECEIVE AN ERROR SEE BELOW*

4. From the CPM, under C:\Program Files (x86)\CyberArk\Password Manager\Vault, recreate apikey.ini using a command-line as admin : 

apikeymanager add -f apikey.ini -t PasswordManager -u administrator -a "https://<PVWA_FQDN>/PasswordVault/api/"


Note: There is an issue with the knowledge article creation tool that causes a double-quotation to be inserted when only a single quotation is needed. Be sure to remove the second quotation mark after https://<PVWA_FQDN>/PasswordVault/api/ as shown in the image below.

image.png

5. Update the following lines in the vault.ini file on the CPM:

[API] 
Addresses=https://<PVWA_FQDN>/PasswordVault 
ApiKeyPath=apikey.ini 



Note: The addresses must not include /api 

6. Run the CPM upgrade in repair mode 


# ERRORS #

Please make sure that the 'Administrator' account is not currently in use. Sign in with PrivateArk Client and then perform a Logoff to end all sessions that may be open with this account.

You MUST use a CyberArk authentication account to perform this operation.

If you are receiving the following error:

[ERROR] 001E Failed to perform request (Reason=[SSL connect error])



Refer to KB article 000007145 for further assistance as the CPM is unable to contact your CRL
https://community.cyberark.com/s/article/When-using-ApiKeyManager-it-fails-with-ERROR-001E-Failed-to-perform-request-Reason-SSL-connect-error

 


Actions
  • Print
  • Copy Link

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