Error installation psmp CARKpsmp-13.00.2.14, error: Failed to create Vault environmen

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

Error installation psmp CARKpsmp-13.00.2.14, error: Failed to create Vault environmen

L1 Bithead

Hello guys,

 

I trying to installation module psmp, but I received the following error:

 

"error: Failed to create Vault environment"

 

Follow the installation logs:

 

 

install_psmp:

 

Sun Aug 6 19:34:03 -03 2023 | Installation process is starting...

Sun Aug 6 19:34:03 -03 2023 | Parameter [EnableADBridge] was set to its default value: [Yes]

Sun Aug 6 19:34:03 -03 2023 | Parameter [UpdateCredFile] was set to its default value: [inferred]

Sun Aug 6 19:34:03 -03 2023 | Effective UpdateCredFile Value: inferred

Sun Aug 6 19:34:03 -03 2023 | Parameter [ADBridgeUpdateCredFile] was set to its default value: [inferred]

Sun Aug 6 19:34:03 -03 2023 | Effective ADBridgeUpdateCredFile Value: inferred

Sun Aug 6 19:34:04 -03 2023 | Parameter [ADBridgeConfigurationSafe] was set to its default value: [PSMPADBridgeConf]

Sun Aug 6 19:34:04 -03 2023 | Parameter [ADBridgeConfFile] was set to its default value: [main_psmpadbridge.conf.linux.xxxx]

Sun Aug 6 19:34:04 -03 2023 | Checking for required files...

Sun Aug 6 19:34:06 -03 2023 | Check for required OpenSSH rpm packages...

Sun Aug 6 19:34:06 -03 2023 | Checking OS version...

Sun Aug 6 19:34:06 -03 2023 | Checking OS version has finished.

Sun Aug 6 19:34:06 -03 2023 | Checking for required OpenSSH's RPM files for RedHat.

Sun Aug 6 19:34:06 -03 2023 | Checking for required files has finished.

Sun Aug 6 19:34:24 -03 2023 | Checking OS version...

Sun Aug 6 19:34:24 -03 2023 | Checking OS version has finished.

Sun Aug 6 19:34:24 -03 2023 | SELinux status is [1]

Sun Aug 6 19:34:24 -03 2023 | Checking OS version...

Sun Aug 6 19:34:24 -03 2023 | Checking OS version has finished.

Sun Aug 6 19:34:24 -03 2023 | Creating basic configuration file [/etc/opt/CARKpsmp/conf/basic_psmpserver.conf]...

Sun Aug 6 19:34:24 -03 2023 | Creating basic configuration file [/etc/opt/CARKpsmpadb/conf/basic_psmpadbridge.conf]...

Sun Aug 6 19:34:25 -03 2023 | The Vault configuration file that was found in [/etc/opt/CARKpsmp/vault/vault.ini] will be used instead of the file in the installation folder [/opt/install_psmp/vault.ini].

Sun Aug 6 19:34:25 -03 2023 | Creating Vault environment...

Sun Aug 6 19:34:35 -03 2023 | error: Failed to create Vault environment. Run the Repair procedure to complete installation.

Sun Aug 6 19:34:35 -03 2023 | Service [psmpsrv] is being stopped...

Sun Aug 6 19:34:35 -03 2023 | Starting script execution...

Sun Aug 6 19:34:35 -03 2023 | Checking OS version...

Sun Aug 6 19:34:35 -03 2023 | OS version is 8.x or above

Sun Aug 6 19:34:35 -03 2023 | Checking OS version has finished.

Sun Aug 6 19:34:35 -03 2023 | Checking the version of the installed OpenSSH package...

Sun Aug 6 19:34:42 -03 2023 | Finished checking the version of the installed OpenSSH package.

Sun Aug 6 19:34:42 -03 2023 | Creating backup dir [/opt/CARKpsmp/backup].

Sun Aug 6 19:34:42 -03 2023 | backup file [/etc/ssh/sshd_config] to [/opt/CARKpsmp/backup/sshd_config_backup].

Sun Aug 6 19:34:42 -03 2023 | backup file [/etc/pam.d/sshd] to [/opt/CARKpsmp/backup/pamd_sshd_backup].

Sun Aug 6 19:34:42 -03 2023 | Prerequisite OpenSSH is already installed.

Sun Aug 6 19:34:42 -03 2023 | backup file [/usr/sbin/sshd] to [/opt/CARKpsmp/backup/sshd_backup].

Sun Aug 6 19:34:42 -03 2023 | Updating [sshd]...

Sun Aug 6 19:34:42 -03 2023 | Configuring the [sshd_config] file...

Sun Aug 6 19:34:42 -03 2023 | backup file [/etc/crypto-policies/back-ends/opensshserver.config] to [/opt/CARKpsmp/backup/sshd_crypto_backup].

Sun Aug 6 19:34:42 -03 2023 | backup file [/etc/sysconfig/sshd] to [/opt/CARKpsmp/backup/sshd_sysconfig_backup].

Sun Aug 6 19:34:42 -03 2023 | Configuring [sshd_config] file has finished.

Sun Aug 6 19:34:42 -03 2023 | Replacing the [sshd] executable...

Sun Aug 6 19:34:42 -03 2023 | Restoring default context type of executable [sshd]...

Sun Aug 6 19:34:42 -03 2023 | Loading PSMP SELinux policy...

Sun Aug 6 19:34:42 -03 2023 | Loading PSMP SELinux policy...

Sun Aug 6 19:35:07 -03 2023 | Loading PSMP ext1 SELinux policy (RHEL7 and above)...

Sun Aug 6 19:35:31 -03 2023 | Loading PSMP ext2 SELinux policy (RHEL8 and above)...

Sun Aug 6 19:35:56 -03 2023 | PSMP SELinux policy was loaded.

Sun Aug 6 19:35:56 -03 2023 | backup file [/usr/lib/systemd/system/sshd.service] to [/opt/CARKpsmp/backup/sshd_systemctl_backup].

Sun Aug 6 19:35:56 -03 2023 | Starting the [sshd] executable...

Sun Aug 6 19:35:56 -03 2023 | The [sshd] executable was started successfully.

Sun Aug 6 19:35:56 -03 2023 | Replacing the [sshd] executable has finished.

Sun Aug 6 19:35:56 -03 2023 | Updating [sshd] has finished.

Sun Aug 6 19:35:56 -03 2023 | Script execution has finished.

Sun Aug 6 19:35:56 -03 2023 | Starting hardening script

Sun Aug 6 19:35:57 -03 2023 | Machine hardening was completed successfully.

Sun Aug 6 19:35:57 -03 2023 | Installation process was completed with errors. For more information, refer to CyberArk documentation.

 

 

Comuncation with telnet psmp to vault its ok

 

ping psmp to vault its ok

 

 

 

 

 

12 REPLIES 12

L1 Bithead

EnvManager.log

 

[06/08/2023 19:34:25] :: Initializing CASOS Server.

[06/08/2023 19:34:25] :: Logs initialized

[06/08/2023 19:34:25] :: CASOS Server is starting...

[06/08/2023 19:34:25] :: CVTPT008I VaultProtocol logger initialization has completed successfully.

[06/08/2023 19:34:25] :: CAS8N026I Initializing CCAGI18NString class, I18N data file located at (/opt/CARKpsmp/bin/icudt58l.dat).

[06/08/2023 19:34:25] :: CAS8N010I Initializing CCAGI18NString class. The operative codepage is: [the machine default] = [UTF-8].

[06/08/2023 19:34:25] :: Machine Default Locale: Name[en_US] Language[en] Script[] Country[US] Variant[].

[06/08/2023 19:34:25] :: Using generic Locale: Name[en_US] Language[en] Script[] Country[US] Variant[].

[06/08/2023 19:34:25] :: CAS8N013I CCAGI18NString initialization was completed successfully.

[06/08/2023 19:34:25] :: Cryptolib is starting...

[06/08/2023 19:34:25] :: Cryptolib was started successfully.

[06/08/2023 19:34:25] :: OpenSSL 1.0.2zf-fips 21 Jun 2022

[06/08/2023 19:34:25] :: Initialized cryptographic library (1)

[06/08/2023 19:34:25] :: Session Transactions Manager is starting...

[06/08/2023 19:34:25] :: CVTPT010I VaultProtocol is starting on the [Client].

[06/08/2023 19:34:25] :: Session Transactions Manager was started successfully.

[06/08/2023 19:34:25] :: Keep Alive Job was started successfully (Interval = 540 seconds).

[06/08/2023 19:34:25] :: Session Garbage Collector Job was started successfully (max session idle life= 840 seconds).

[06/08/2023 19:34:25] :: Session Periodic Password Change Job was started successfully (max session idle life= 86400 seconds).

[06/08/2023 19:34:25] :: Switch Vault Job was started successfully (Interval = 30 seconds).

[06/08/2023 19:34:25] :: Thread Pool is starting (pool size = 5) ...

[06/08/2023 19:34:25] :: Thread Pool is starting.

[06/08/2023 19:34:25] :: Before pthread_cond_wait

[06/08/2023 19:34:25] :: Thread handle 93b9df70 created

[06/08/2023 19:34:25] :: Before pthread_cond_wait

[06/08/2023 19:34:25] :: Thread handle 93ba8520 created

[06/08/2023 19:34:25] :: Thread handle 93ba8950 created

[06/08/2023 19:34:25] :: Before pthread_cond_wait

[06/08/2023 19:34:25] :: Before pthread_cond_wait

[06/08/2023 19:34:25] :: Thread handle 93ba8d90 created

[06/08/2023 19:34:25] :: Thread handle 93ba91a0 created

[06/08/2023 19:34:25] :: Before pthread_cond_wait

[06/08/2023 19:34:25] :: Thread Pool was started successfully.

[06/08/2023 19:34:25] :: m_pSchedulingDiscipline->AddJob(pJob) - 0x93ba0500

[06/08/2023 19:34:25] :: m_Jobs.push(JobItem); - 0x93ba0500 size= 1

[06/08/2023 19:34:25] :: m_pSchedulingDiscipline->AddJob(pJob) - 0x93b9f350

[06/08/2023 19:34:25] :: m_Jobs.push(JobItem); - 0x93b9f350 size= 2

[06/08/2023 19:34:25] :: After pthread_cond_wait

[06/08/2023 19:34:25] :: CASAG001I CASOS Server has started.

[06/08/2023 19:34:25] :: before getting new job

[06/08/2023 19:34:25] :: m_Jobs.top(); - 0x93ba0500, size=1

[06/08/2023 19:34:25] :: got new job

[06/08/2023 19:34:25] :: Loading Vault from file.

[06/08/2023 19:34:25] :: before runjob

[06/08/2023 19:34:25] :: in runjob

[06/08/2023 19:34:25] :: before pre

[06/08/2023 19:34:25] :: After pthread_cond_wait

[06/08/2023 19:34:25] :: before getting new job

[06/08/2023 19:34:25] :: before exec

[06/08/2023 19:34:25] :: Vault [CAMainVault] added successfully.

[06/08/2023 19:34:25] :: Keep Alive Job started loop

[06/08/2023 19:34:25] :: m_Jobs.top(); - 0x93b9f350, size=0

[06/08/2023 19:34:25] :: got new job

[06/08/2023 19:34:25] :: Keep Alive Job before sleep

[06/08/2023 19:34:25] :: Loading vault [CAMainVault] conf file [/etc/opt/CARKpsmp/vault/vault.ini]...

[06/08/2023 19:34:25] :: before runjob

[06/08/2023 19:34:25] :: in runjob

[06/08/2023 19:34:25] :: before pre

[06/08/2023 19:34:25] :: before exec

[06/08/2023 19:34:25] :: Vault [CAMainVault] Address #1 = x.x.x.x

[06/08/2023 19:34:25] :: Vault [CAMainVault] conf file loaded successfully. Vault address = [x.x.x.x].

[06/08/2023 19:34:25] :: Before adding Socketpool.

[06/08/2023 19:34:25] :: Socket Pooling was created (pool size = 1024).

[06/08/2023 19:34:25] :: SetPoolSize is called. SocketsInPool=1024.

[06/08/2023 19:34:25] :: After adding Socketpool.

[06/08/2023 19:34:25] :: Connecting to the Vault

[06/08/2023 19:34:25] :: Deserializing secret file [/opt/install_psmp/user.cred]

[06/08/2023 19:34:25] :: New Session created. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:25] :: New Session-Instance created. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:25] :: Getting Secret from secret file /opt/install_psmp/user.cred

[06/08/2023 19:34:25] :: Getting NewSecret from secret file /opt/install_psmp/user.cred

[06/08/2023 19:34:25] :: Error: Failed to get [NewSecret] attribute. Rc=-8

[06/08/2023 19:34:25] :: Will use [Password] for first logon attempt, changepassword set to [False]

[06/08/2023 19:34:25] :: calling UITSLogon in Password logon (control socket [0], data socket [0], timeout 10000)

[06/08/2023 19:34:25] :: Executing first logon attempt

[06/08/2023 19:34:25] :: calling UITSLogon in Password logon (control socket [0], data socket [0], IP [x.x.x.x], timeout 10000 )

[06/08/2023 19:34:35] :: Error (code = -1066012) is a comm error. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Executed first logon attempt, got -1 return code.

[06/08/2023 19:34:35] :: ITACM012S Timeout has expired. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Finished PasswordLogon, returning code -1.

[06/08/2023 19:34:35] :: CASAG002I CASOS Server is shutting down...

[06/08/2023 19:34:35] :: Thread Pool is stopping ...

[06/08/2023 19:34:35] :: Before pthread_cond_broadcast: lThreadsCount=5

[06/08/2023 19:34:35] :: After pthread_cond_broadcast: lThreadsCount=5

[06/08/2023 19:34:35] :: After pthread_cond_wait

[06/08/2023 19:34:35] :: before getting new job

[06/08/2023 19:34:35] :: got new job

[06/08/2023 19:34:35] :: breaking...

 

 

L1 Bithead

[06/08/2023 19:34:35] :: Thread acd68700 93ba8950 is exiting

[06/08/2023 19:34:35] :: After pthread_cond_wait

[06/08/2023 19:34:35] :: before getting new job

[06/08/2023 19:34:35] :: got new job

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: Thread 9ffff700 93ba8d90 is exiting

[06/08/2023 19:34:35] :: After pthread_cond_wait

[06/08/2023 19:34:35] :: before getting new job

[06/08/2023 19:34:35] :: got new job

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: Thread 9f7fe700 93ba91a0 is exiting

[06/08/2023 19:34:35] :: Keep Alive Job after sleep

[06/08/2023 19:34:35] :: Keep Alive Job breaking from loop

[06/08/2023 19:34:35] :: Keep Alive Job stopped execution successfully.

[06/08/2023 19:34:35] :: before post

[06/08/2023 19:34:35] :: After post

[06/08/2023 19:34:35] :: after runjob

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: before getting new job

[06/08/2023 19:34:35] :: got new job

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: Thread add6a700 93b9df70 is exiting

[06/08/2023 19:34:35] :: PeriodicPasswordChange Job breaking from loop

[06/08/2023 19:34:35] :: Periodic Password Change Job stopped execution successfully.

[06/08/2023 19:34:35] :: before post

[06/08/2023 19:34:35] :: After post

[06/08/2023 19:34:35] :: after runjob

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: before getting new job

[06/08/2023 19:34:35] :: got new job

[06/08/2023 19:34:35] :: breaking...

[06/08/2023 19:34:35] :: Thread ad569700 93ba8520 is exiting

[06/08/2023 19:34:35] :: Before pthread_cond_broadcast: lThreadsCount=0

[06/08/2023 19:34:35] :: Thread Pool sent stop signal successfully.

[06/08/2023 19:34:35] :: Thread Pool is waiting for 5 jobs to end...

[06/08/2023 19:34:35] :: Thread #1 handle = 93b9df70

[06/08/2023 19:34:35] :: Thread #2 handle = 93ba8520

[06/08/2023 19:34:35] :: Thread #3 handle = 93ba8950

[06/08/2023 19:34:35] :: Thread #4 handle = 93ba8d90

[06/08/2023 19:34:35] :: Thread #5 handle = 93ba91a0

[06/08/2023 19:34:35] :: Thread Pool jobs were ended.

[06/08/2023 19:34:35] :: Thread Pool is ending...

[06/08/2023 19:34:35] :: Thread Pool ended successfully.

[06/08/2023 19:34:35] :: Session Garbage Collector Job ended successfully.

[06/08/2023 19:34:35] :: Session Periodic Password Change Job ended successfully.

[06/08/2023 19:34:35] :: Keep Alive Job ended successfully.

[06/08/2023 19:34:35] :: Thread Pool DTOR

[06/08/2023 19:34:35] :: DTOR: sizeof CCAGThreadPool is 208

[06/08/2023 19:34:35] :: Thread Pool DTOR done

[06/08/2023 19:34:35] :: Session Manager is ending...

[06/08/2023 19:34:35] :: Ending Session Instances...

[06/08/2023 19:34:35] :: Session Instances ended successfully.

[06/08/2023 19:34:35] :: Session ended 0. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended 1. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended 2. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended 3. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended 4. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended 5. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session ended. (Vault [CAMainVault] user [administrator])

[06/08/2023 19:34:35] :: Session Manager was ended.

[06/08/2023 19:34:35] :: Vaults Manager is ending...

[06/08/2023 19:34:35] :: Socket Pooling is ending...

[06/08/2023 19:34:35] :: Socket Pooling was ended successfully.

[06/08/2023 19:34:35] :: Vault [CAMainVault] deleted successfully.

[06/08/2023 19:34:35] :: Vaults Manager was ended.

[06/08/2023 19:34:35] :: Switch Vault Job ended successfully.

[06/08/2023 19:34:35] :: Terminating MultiplatClient Components...

[06/08/2023 19:34:35] :: Session Transactions Manager is ending...

[06/08/2023 19:34:35] :: Session Transactions Manager was ended successfully.

[06/08/2023 19:34:35] :: Cryptolib was ended successfully.

[06/08/2023 19:34:35] :: MultiplatClient components terminated successfully.

[06/08/2023 19:34:35] :: CASAG003I CASOS Server terminated.

[06/08/2023 19:34:35] :: before unregister activity log.

[06/08/2023 19:34:35] :: after unregister activity log.

[06/08/2023 19:34:35] :: after unregister error log.

L3 Networker

Hi,

Have you tried to remove the cred file and re-create it?

Make sure the password you type in is correct (Check Keyboard layout, CAPS etc.)

"./CreateCredFile user.cred Password -Username Administrator -Password XXXXXX Hostname -EntropyFile"

Re-run installation

 

Also, have you followed the PSM for SSH Installation Guide in CyberArk Docs with all relevant steps?

https://docs.cyberark.com/PAS/Latest/en/Content/PAS%20INST/Before-Installing-PSMP.htm?tocpath=Installation%7CInstall%20PAM%20-%20Self-Hosted%7CInstall%20PSM%20for%20SSH%7C_____1#CreatetheCredentialsFileforInstallation

 

Best regards

Teris

Hi @Teris Sfetsios​ ,

 

Yes, I try remove the cred file, but occurred same error. I dont never saw this error on installation psmp before.

L3 Networker

I see!

 

It could be a package signature issue. Have you ran the rpm --import RPM-GPG-KEY-CyberArk and rpm -K -v <package_name.rpm>

 

"Verify the installation package digital signature":

https://docs.cyberark.com/PAS/Latest/en/Content/PAS%20INST/Before-Installing-PSMP.htm?tocpath=Installation%7CInstall%20PAM%20-%20Self-Hosted%7CInstall%20PSM%20for%20SSH%7C_____1#Verifytheinstallationpackagedigitalsignature

 

Have you installed the CARKpsmp-infra package?

In the configuration file /var/tmp/psmpparms have you checked that the InstallationFolder parameter is valid and that the InstallCyberarkSSHD is configured?

It could be a package signature issue. Have you ran the rpm --import RPM-GPG-KEY-CyberArk and rpm -K -v <package_name.rpm>

 

A: Yes, I did.

 

Have you installed the CARKpsmp-infra package?

 

A: Yes, I did.

 

In the configuration file /var/tmp/psmpparms have you checked that the InstallationFolder parameter is valid and that the InstallCyberarkSSHD is configured?

 

A: Yes, I did.

What is the InstallCyberarkSSHD Parameter set to?

If it is set to Yes then you should remove the infra package

@Teris Sfetsios​ ,

 

I try Install Cyberark SSHD Parameter set with Integrated using infra package and using "Yes" with removed infra package, but same error happened, my lab not occured this error when iI installing the psmp.

Have a look at this thread

https://community.cyberark.com/s/question/0D52J000090xgruSAA/error-failed-to-get-newsecret-attribute-rc8-when-installing-psmp-122

@Teris Sfetsios​ ,

 

I read the topic, but I don't see any resolution for the problem unfortunately

Since the PSMP Installation is not installed fully I would suggest if possible that you completely un-install the PSMP (remove all files and entries that may have been created during the failed installation) and try re-installing again by carefully following the PSM for SSH installation guide step by step: HERE

 

It is possible that the mulitple tries of installing the PSMP has corrupted some files so I believe that this is the way to go.

 

PS: Have a look at the compatibility of the version you are installing and the versions of the already existing components and the OS type and version of Linux.

Supported Operating Systems

 

Best regards

Teris

L0 Member

Are you sure that the user you are using with the credfile has the correct vault permissions?

  • 958 Views
  • 12 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!