- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
06-03-2024 06:45 AM
Hi, I've created a SAPgui Connection component as attached image.
If I start it, the sapgui interface open but after about 1 minutes it closes without errors.
In the PSM trace log I can see this error:
\PSMSessionProcessBase.cpp(445) | :: | PSMSR067I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Component execution - Update process token with session Id
[03/06/2024 | 14:56:56.806749] | {pid= 3432} | {tid= 7704} | class CPSMSessionProcessBase * | PSM\PSMServer\PSMSessionProcessBase.cpp(452) | :: | PSMSR068I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Component execution - Creating process D:\ProgramFiles\CyberArk\PSM\Components\PSMSessionAlert.exe
[03/06/2024 | 14:56:56.829315] | {pid= 3432} | {tid= 7704} | class CPSMSessionProcessBase * | PSM\PSMServer\PSMSessionProcessBase.cpp(121) | :: | PSMSR615I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Validating session integrity (Stage: [SessionProcessInitialization])
[03/06/2024 | 14:56:56.829600] | {pid= 3432} | {tid= 7704} | class CPSMLiveSessionsList * | PSM\PSMServer\PSMLiveSessionsList.cpp(203) | :: | PSMSR612I Checking if logon session (LUID) [0.349894989] belongs to Session [4e48f6ee-bea1-4198-aef8-e42a32e15194]
[03/06/2024 | 14:56:56.829668] | {pid= 3432} | {tid= 7704} | class CPSMSatelliteProcessBase * | PSM\PSMServer\PSMSatelliteProcessBase.cpp(81) | :: | PSMSR303I [4e48f6ee-bea1-4198-aef8-e42a32e15194] 'Session Alert' Satellite process was successfully invoked
[03/06/2024 | 14:56:57.815079] | {pid= 3432} | {tid= 7704} | class CPSMComponentsManager * | PSM\PSMServer\PSMComponentsManager.cpp(552) | :: | PSMSR339I [4e48f6ee-bea1-4198-aef8-e42a32e15194] No longer monitoring session satellite process [Session Alert]
[03/06/2024 | 14:56:58.895997] | {pid= 3432} | {tid= 7704} | class CPSMSPCommandLineConcealer * | PSM\PSMServer\PSMSPCommandLineConcealer.cpp(149) | :: | PSMSR291I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Satellite process (Command Line Concealer 64bit) succeeded
[03/06/2024 | 14:56:58.896057] | {pid= 3432} | {tid= 7704} | class CPSMComponentsManager * | PSM\PSMServer\PSMComponentsManager.cpp(462) | :: | PSMSR304I [4e48f6ee-bea1-4198-aef8-e42a32e15194] 'Command Line Concealer 64bit' Satellite process has finished successfully
[03/06/2024 | 14:56:58.911843] | {pid= 3432} | {tid= 7704} | class CPSMSPCommandLineConcealer * | PSM\PSMServer\PSMSPCommandLineConcealer.cpp(149) | :: | PSMSR291I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Satellite process (Command Line Concealer 32bit) succeeded
[03/06/2024 | 14:56:58.911893] | {pid= 3432} | {tid= 7704} | class CPSMComponentsManager * | PSM\PSMServer\PSMComponentsManager.cpp(462) | :: | PSMSR304I [4e48f6ee-bea1-4198-aef8-e42a32e15194] 'Command Line Concealer 32bit' Satellite process has finished successfully
[03/06/2024 | 14:56:58.911924] | {pid= 3432} | {tid= 7704} | class CPSMTSSessionServiceBase * | PSM\PSMServer\PSMTSSessionServiceBase.cpp(524) | :: | PSMSR031I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Waiting for the components to finish. Session timeout period is [-1]
[03/06/2024 | 14:56:59.032419] | {pid= 3432} | {tid= 7704} | class CPSMComponentsManager * | PSM\PSMServer\PSMComponentsManager.cpp(441) | :: | PSMSR278I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Session component [CommandLineConnectionClient] has stopped. Ending session.
[03/06/2024 | 14:56:59.032483] | {pid= 3432} | {tid= 7704} | class CPSMBaseException * | PSM\PSMServer\PSMBaseException.cpp(38) | :: | PSMSR009I Privileged Session Manager exception occurred. PSMSR278I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Session component [CommandLineConnectionClient] has stopped. Ending session. (Codes: -1, -1)
[03/06/2024 | 14:56:59.032564] | {pid= 3432} | {tid= 7704} | class CPSMSessionProcessBase * | PSM\PSMServer\PSMSessionProcessBase.cpp(742) | :: | PSMSR165I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Attempting to terminate process with PID [14140]
[03/06/2024 | 14:56:59.032766] | {pid= 3432} | {tid= 7704} | class CPSMSessionProcessBase * | PSM\PSMServer\PSMSessionProcessBase.cpp(748) | :: | PSMSR520I [4e48f6ee-bea1-4198-aef8-e42a32e15194] Successfully terminated process with PID [14140]
[03/06/2024 | 14:56:59.032800] | {pid= 3432} | {tid= 7704} | class CPSMSatelliteProcessBase * | PSM\PSMServer\PSMSatelliteProcessBase.cpp(67) | :: | PSMSR305I [4e48f6ee-bea1-4198-aef8-e42a32e15194] 'Session Alert' Satellite process was forcefully terminated
thanks
06-03-2024 07:24 AM
Do not have the logs handy, but try adding /NoDelegate to the command line. This one is using SNC, but had the same issue disconnecting within a minute.
"D:\Program Files (x86)\SAP\FrontEnd\SAPgui\SAPgui.exe" /SHORTCUT="-guiparm="{Address} {SystemNumber}" -system={SystemNumber} -client={Client} -user={Username} -pw={Password} -max -SNC_NAME="{snc_name}" -SNC_LIB="C:\Program Files (x86)\SAP\SNCEncryption\x64\sapsncencryption.dll" -SNC_MODE=1 -SNC_QOP=9"" /NoDelegate
PSM: 12.2, SAPGUI 7.7
06-03-2024 08:10 AM
Hi,
it seems to work but the first time I try to open a session it show me this window below.
The second time, it open correctly the sapgui app.
thanks
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!

