PVWA PSM - Failed to Connect. Object reference not set to an instance of an object.
Symptom
When initiating a connection to one of the target servers in via PVWA, the connection failed immediately with the error message : "Failed to connect. Object reference not set to an instance of an object."
To verify the issue, you should be able to see the following messages in the PVWA CyberArk.WebApplication.log
----------------------------------
CASTM004E Object [PSMServerXXX] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser])
CASTM004E Object [PSMAdminXXX] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser])
EPAWA090E Failed to retrieve the connection data for the PSM session. Reason: Object reference not set to an instance of an object.
------------------------------------
Environment
11.1;11.2;11.3;11.4;11.5;11.6 Privileged Access Manager (PAM, self-hosted) PSM
PSM PVWA
Cause
Root cause to be due to the following password objects being missing/deleted in the vault PSM safe. The PSMServer_xx and the PSMAdmin_xxx password objects are in deleted status, resulting in exception in retrieval of credential information by the PVWA server.
Resolution
1)"Undelete" the PSMServer and PSMAdmin objects under the PSM safe.
2)Re-create the PSMAdminConnect and PSMConnect user password objects in the corresponding PSM Safe.