"APPCH372E Error while fetching key material (Error code: -3). , -3)" error message or (Error code: -3)

"APPCH372E Error while fetching key material (Error code: -3). , -3)" error message or (Error code: -3)

233
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:57 PM


Symptom


 When reviewing the CP APPConsole log, the following error is populating:

[26/01/2022 | 11:59:57] | :: | APPAP037E Application Password Provider has been terminated. (Diagnostic information: APPCH371E Failed to initialize cache cipher: APPCH372E Error while fetching key material (Error code: -3). , -3)



Environment


12.1;12.2;12.4;12.3;12.5;12.6;14.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Credential Provider;Central Credential Provider

Credential Provider Windows/Linux



Cause


  1. The directories defined within the 'main_appprovider.confxxxxx' file  used by this CP are incorrect.
  2. The cache folder could be missing completely while everything else matches.


Resolution


There are  two resolutions for both Self Hosted and pCloud environments- 

1.Create a new 'Main Configuration' file during installation  when needed

Use Single Path ( directory references) for 'installation'  in all the CP/CCP installations performed in your environment on different CP/CCP server(s). 
In case, a different 'installation' path ( directory references) is required then change the name of 'Main Configuration' file during installation so that a new 'Main Configuration' file gets created  in the vault with 'new  Installation' path.

2. Adjust the paths in 'Main Configuration' file from vault itself  - 

Note - For pcloud customers,  raise a ticket with Support to perfrom beow steps from backend

How to find which main_appprovider.confxxxxx file is being used by this  CP ? Steps are as below :

On CP Server - Look for 'AppProviderVaultParmsFile' parameter under  'local basic provider configuration file ' in CP installation folder ("<X>\CyberArk\ApplicationPasswordProvider\basic_appprovider.conf")  , e.g.

AppProviderVaultParmsFile=main_appprovider.confxxxxx 

 

Once  main_appprovider.confxxxxx file which being used by this  CP is found then perform below - 

a. If the main_appprovider.confxxxxx file is not being used by any other CP instance, please carry out the following steps:
1. Logon to the Vault using the Administrator user
2. Go to the AppProviderConf safe and "Retrieve and Save As" the "main_appprovider.conf.Win64.xxx" file to download it to your local machine
3. Change all directory references to the correct drive and save the changes
4. Within the AppProviderConf safe, right click and select Store -> "Copy file to Safe..." and select the newly updated file
5. Restart the CP service

b. If the main_appprovider.confxxxxx file is being used by any other CP instance, please carry out the following steps:
1. Logon to the Vault using the Administrator user
2. Go to the AppProviderConf safe and create a copy of the "main_appprovider.conf.Win64.xxx" file with a unique name
3. Right click the file "Retrieve and Save As" the new "main_appprovider.conf.Win64.xxx" file to download it to your local machine
4. Change all directory references to the correct drive and save the changes
5. Within the AppProviderConf safe, right click and select Store -> "Copy file to Safe..." and select the newly updated file
6. Navigate to "<drive>:\CyberArk\ApplicationPasswordProvider" and open the "basic_appprovider.conf" file. Change the AppProviderVaultParmsFile to the newly created "main_appprovider.conf.Win64.xxx" file and save the changes.
7. Restart the CP service

 If this is an existing installation, confirm that the cache folder exists still, and if not recreate it:

Linux - /var/opt/CARKaim/Cache

Windows - .\CyberArk\ApplicationPasswordProvider\Cache

 

Please check documentation as well on this error  :https://docs.cyberark.com/credential-providers/latest/en/content/cp%20and%20ascp/troubleshooting-installation-windows.htm?Highlight=APPCH372E



Actions
  • Print
  • Copy Link

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