Recreate apikey.ini error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Recreate apikey.ini error

L1 Bithead

Hi

 

I am testing to upgrade to V10.8

CPM Scanner service fails to start after CPM is installed

I am trying to recreate apikey.ini

The result of the execution is successful

But the CPM Scanner service won't start

There is an error message in the windows event log

CASPR001E Error parsing parameters file (Location:CCAGParmsStreamFile.cpp:95), Reason: Parms file [apikey.ini.tmp] open failed.

Can someone give me some help?​

11 REPLIES 11

L4 Transporter

Hey @Harry Chang​,

​

It's hard to be sure on the issue but you may see errors in the cpm scanner logs which are more helpful.

​

Which version are you doing the test upgrade from?

​

Regards

​

Nathan

L1 Bithead

I just dealt with this.

 

Make sure the TLS 1.2 registry keys are in place

SchUseStrongCrypto = 1

HKLM\Software\Microsoft\.NETFramework\v4.0.30319

HKLM\Software\WOW6432Node\Microsoft\.NETFramework\v4.0.30319

 

Make sure the PasswordManagerUser has right to modify the apikey.ini file in C:\Program Files (x86)\CyberArk\Password Manager\Vault

Hi @Nathan Southgate​

 

I tested V9.6 upgrade to V10.8

Cpm scanner logs did not see the error

 

15/04/2019 23:30:12 [DEBUG] -----------------------------------------------------------

15/04/2019 23:30:12 [INFO]  Starting ApiKeyManager

15/04/2019 23:30:17 [INFO]  Executing Revoke command

15/04/2019 23:30:17 [DEBUG] RevokeCommand::Execute. adminUsername=administrator componentUserName=PasswordManager apiBaseAddress=https://PAS1.demo.local/passwordvault/api/

15/04/2019 23:30:18 [INFO]  Revoke command executed successfully.

15/04/2019 23:30:32 [DEBUG] -----------------------------------------------------------

15/04/2019 23:30:32 [INFO]  Starting ApiKeyManager

15/04/2019 23:30:32 [DEBUG] Initializing Casos

15/04/2019 23:30:36 [INFO]  Executing Add command

15/04/2019 23:30:36 [DEBUG] AddCommand::CreateKeyPairAndSendToServer. componentUserName=PasswordManager credFilePath=apikey.ini tempCredFilePath=apikey.ini encryptionType=ES256 adminUsername=administrator apiBaseAddress=https://PAS1.demo.local/passwordvault/api/

15/04/2019 23:30:36 [DEBUG] In CredFileHandler::CreateCredFile

15/04/2019 23:30:36 [DEBUG] In CredFileHandler::GetPublicKey

15/04/2019 23:30:36 [DEBUG] Logging in to API as administrator

15/04/2019 23:30:36 [DEBUG] Sending request to add public key

15/04/2019 23:30:36 [INFO]  Add command executed successfully.

 

 

Hi @Brian Carter​ 

​

TLS 1.2 registry keys have been set.

​

How to confirm that PasswordManagerUser has permission to modify apikey.ini file?

right click on the file > Properties and go to the security tab

you should see the permissions, click on PasswordManagerUser, if it does have at least modify rights it will need to have those

I don't see the permissions of PasswordManagerUser

Field_Content_versions_oct20__0682J0000064g5wQAA.png

@Harry Chang​  That could be the issue

Here is what I got from support today

The account used to run the Password Manager serivce should have full permissions to it. If it doesn't please can you set full permissions on the [Drive]:\Program Files (x86)\CyberArk\Password Manager\vault\ folder. 

 

 

This worked for me, but I had to give full permissions on the "Password Manager" folder, permissions only on "vault" did not work for me.

Hello,

What user password did you supplied at the prompt "Enter Password":

​​

Thanks​

I am getting - Failed to logon error message when i type password. Which password did you use ?

You certainly have the answer since that time but adding the information for other who will need it.

 

You need to specify the Administrator password

 

  • 1536 Views
  • 11 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!