- 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-28-2025 03:58 AM
ERROR:
I have a little bit of an odd issue here, where the HTML5 gw will return an error PSMGW0001E the first time its started in the morning and any connection attempts to the HTML5 post the first connection attempt is successful and the gw works as expected.
bash-4.4# tail cyberark-psm-gateway-webapp.log
[PSMGW][2025-06-28 10:25:14.488][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] JWT token was successfully validated. Username: administrator
[PSMGW][2025-06-28 10:25:14.492][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] Adding CSRF token to session
[PSMGW][2025-06-28 10:25:14.492][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] CSRF cookie was created and added to response.
[PSMGW][2025-06-28 10:25:14.493][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] authentication token cookie was created and added to response.
[PSMGW][2025-06-28 10:25:14.497][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] Starting new connection to guacd with UUID = b34d125c-a9bf-4cdb-a4c6-94ef088f0bf8
[PSMGW][2025-06-28 10:25:14.498][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] ClipboardControl = Bidirectional
[PSMGW][2025-06-28 10:25:14.498][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] Trying to connect to guacd and perform handshake.
[PSMGW][2025-06-28 10:25:14.623][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] Handshake finished.
[PSMGW][2025-06-28 10:25:14.628][[https-jsse-nio-8443-exec-11]][INFO ][c.c.p.m.t.CAPSMGWFilteredSSLSocket]: [B55D181431130CD8AEAA26656EF4C1B8CB08775789DE6A3678D4A783826D5220] Closing socket to guacd.
[PSMGW][2025-06-28 10:25:14.631][[Thread-7]][ERROR][o.a.g.w.GuacamoleWebSocketTunnelEndpoint]: Connection to guacd terminated abnormally: javax.net.ssl.SSLException: Socket closed
^ Failed first attempt
bash-4.4# tail cyberark-psm-gateway-webapp.log
[PSMGW][2025-06-28 10:29:54.262][[https-jsse-nio-8443-exec-3]][INFO ][c.c.tokenvalidation.CATokenValidator]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] CATV051I Received token validation request.
[PSMGW][2025-06-28 10:29:54.274][[https-jsse-nio-8443-exec-3]][INFO ][c.c.tokenvalidation.CATokenValidator]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] CATV064I Validation ended successfully, Username:administrator.
[PSMGW][2025-06-28 10:29:54.277][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] JWT token was successfully validated. Username: administrator
[PSMGW][2025-06-28 10:29:54.279][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] Adding CSRF token to session
[PSMGW][2025-06-28 10:29:54.279][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] CSRF cookie was created and added to response.
[PSMGW][2025-06-28 10:29:54.279][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] authentication token cookie was created and added to response.
[PSMGW][2025-06-28 10:29:54.281][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] Starting new connection to guacd with UUID = ec2c4973-4974-4615-8315-6610661f0ff2
[PSMGW][2025-06-28 10:29:54.281][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] ClipboardControl = Bidirectional
[PSMGW][2025-06-28 10:29:54.282][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] Trying to connect to guacd and perform handshake.
[PSMGW][2025-06-28 10:29:54.383][[https-jsse-nio-8443-exec-3]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [40FF8F243A9306EE051BA884402FF598E1AAA84D868E66AAD49292A21F214159] Handshake finished
second attempt to start the html5gw is successful. ^
Setup:
The setup is a little complex however its as follows:
PAM is hosted in AWS
PVWA is published via azure entra app proxy - The internal url for pvwa points to AWS LB
HTML5 is also published via azure entra app proxy - The internal url for the app proxy points to AWS LB which then points to podman docker instance.
I spin up the podman instance using the following command.
sudo ./html5_console.sh run -it -p 443:8443 -v /opt/cert/:/opt/import:ro -d -e AcceptCyberArkEULA=yes -e PSMGWGuacLogLevel=debug -e PSMGWAppLogLevel=debug -e EnableCORS=yes -e IgnorePSMCertificateErrors=yes -e EndPointAddress=https://tmedev-skyvault-web.domain.com/PasswordVault --hostname 10.38.149.24 --name 10.38.149.24 cahtml5gw:14_4_0_8
I suspect its something to do with the app proxy setup and html5, however the fact the gw works post the first attempt is mind boggling.
06-29-2025 06:27 PM
Hi @moe kandi
When first time HTML5 GW fails, its likely due to Azure App Proxy idle state or container's delayed readiness. As a workaround, is it possible to create a dummy connection to the HTML5GW container before allowing actual users to connect ? You can use a cronjob to ping the HTML5 URL every morning 1-2 minutes before users log in.
For guacd socket closed error, enable debug logs on the guacd daemon and see if more information is available.
Hope it helps !
07-06-2025 05:00 PM
Hi @moe kandi
In that case, ping won't make any difference.
Please enable debug logs and share more information.
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!

