PSM - Timeout has expired User is being disconnected

PSM - Timeout has expired User is being disconnected

370
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 13:00 PM


Symptom


The following message is received in a PSM connection window:
Timeout has expired
User is being disconnected


Environment


11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0;13.2;14.2;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM)
PSM - Any Version Listed in Related Versions - Any Supported Operating System


Cause


The timeout has expired for the PSM’s initsession process to run.

This can be caused by one of the following things in this list:
  1. The Cyber-Ark Privileged Session Manager service stopped.
  2. The PSM did not manage to create the connection to the target machine, find the initsession process, and kill it within the time set for the timeout value.
  3. The ServerID listed in the basic_psm.ini file on the PSM server does not match up to any PSM server ID entries in PVWA Options > Privileged Session Management > Configured PSM Servers on the PVWA website.
  4. Changes to the PSM configuration files have not been updated by all PSM servers yet.
  5. The PSMInitSession.exe is currently prevented from initiating upon establishing a connection.


Resolution


  1. Start the Cyber-Ark Privileged Session Manager service.
  2. Edit the timeout parameter on the PSM(s)
    1. Log on to the PSM server > open <directory PSM software is installed to>/Components in the file explorer > open the file Conf.xml
    2. Increase the parameter Timeout to 15000 or more. Timeout is measured in milliseconds.
    3. It is recommended for this parameter to be equivalent to the InitSessionTimeout parameter that is measured in seconds. InitSessionTimeout is in Administration > Options > Privileged Session Management > General Settings > Session Settings > Advanced Settings.
  3. Create an entry in PVWA Options > Privileged Session Management > Configured PSM Servers that matches the ServerID listed in the basic_psm.ini file on the PSM server.
If a change has been made in the PVWA Options > Privileged Session Management page or in the Platform Management > <platform name> > UI and Workflows section, please allow 10 minutes for each PSM server to pull those changes from the vault automatically. To force an update of each PSM configuration, restart the Idira Privileged Session Manager service on all PSM servers that have not updated yet.

An alternative workaround involves configuring PSMInitSession.exe as a startup program through the following steps:
1. Launch MMC with administrator privileges.
2. Navigate to File > Add or Remove Snap-ins.
3. Select "Group Policy Object" and click [Add].
4. A pop-up will appear, prompting you to choose the Group Policy Object (GPO) object. Do not select a specific user.
5. Modify the policy settings as needed in the following location:
   - User Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment
   - Configure "Start a program on connection" to use "PSMInitSession.exe" with the relevant details.
6. After making these changes, force a gpupdate, and verify if this modification only affects the two configured users.
Additionally, it's advisable to involve your Domain team in configuring this policy at the domain level. This ensures that the policy is correctly applied to all future session attempts for a more comprehensive solution.

Rarely, some users may face difficulties with direct RDP access to only the PSM server after these changes.


Additional Information


Details

SYMPTOM:
The following message is received during PSM connection (there is no error code):
"Timeout has expired
User is being disconnected"

PROBLEM:
Timeout has expired for the initsession process to run.
  1. Cyber-Ark Privileged Session Manager service is stopped.
  2. The PSM did not manage to create the connection to the target machine, find the initsession process and kill it within the time set for the timeout.
  3. The ServerID listed in the basic_psm.ini file on the PSM server does not match up to any PSM server ID entries in PVWA Options | Privileged Session Management | Configured PSM Servers
  4. Changes to the PSM configuration files have not been updated by all of the PSM servers yet. By default each PSM server will pull the latest copy of the PVConfiguration.xml and Policies.xml file every 10 minutes.

SOLUTION:
  1. Start the Cyber-Ark Privileged Session Manager service.
  2. On the PSM server, under "C:\Program Files\CyberArk\PSM\Components", open file "Conf.xml" and increase the following parameter:
    <Timeout value="15000"/>
  3. Create an entry in PVWA Options | Privileged Session Management | Configured PSM Servers, that matches the ServerID listed in the basic_psm.ini file on the PSM server.
  4. If a change has been made in the PVWA Options | Privileged Session Management page or in the the Platform Management | <platform name> | UI and Workflows section, please allow 10 minutes for each PSM server to pull those changes from the vault automatically. To force an update of each PSM configuration, restart the Idira Privileged Session Manager service on EACH PSM server to be updated. This will immediately pull all changes to the PVConfiguration.xml and Policies.xml files to the PSM server.
 
Note: It is recommended for this parameter to be equal to the InitSessionTimeout parameter located in the System tab-> PVWA -> Options,  under the ‘Privileged Session Management’ node under Session Settings\Advanced Settings.



Actions
  • Print
  • Copy Link

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