HTML5 Docker Installation stucks on Tomcat starting

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

HTML5 Docker Installation stucks on Tomcat starting

L2 Linker

Hello.

I'm deploying 11.6 HTML5 Gateway via Docker now.

In the scenario with organization SSL Certificates Container initialization stucks at Tomcat service starting:

INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2,761] milliseconds

Nothing helps but Ctrl + C combination.

 

My command is (CSR was generated on psmgw machine and signed by my Windows CA):

 

sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=psmgw.cer -e GWKey=psmgw.key -e GWCAFile=certnew.cer -e EndPointAddress=https://pvwa1.llomakin.local/passwordvault --name psmgw.llomakin.local cahtml5gw:11_06_0_8

 

Another one is when a PSMGW cert is enrolled by Windows CA:

 

sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=psmgwcert.cer -e GWKey=html5cert.pfx -e GWCAFile=certnew.cer -e EndPointAddress=https://pvwa1.llomakin.local/passwordvault --name psmgw.llomakin.local cahtml5gw:11_06_0_8

Where psmgwcert.cer and html5cert.pfx are the same certificate (The first exported without Private key). It didn't request a Password for .pfx btw.

 

 

After cancelling and testing the connection I see ERR_CONNECTION_REFUSED error in Chrome.

I found out this KB (https://community.cyberark.com/s/article/HTML5GW-Docker-Container)

but I have no /secrets directory inside my Container.

Created it by myself but it didn't solve the problem.

 

Thanks in advance!

1 accepted solution

Accepted Solutions

L2 Linker

The problem has been solved.

The root cause was a lack of permissions on /opt/trst/tomcat folder (folder with certificates).

With these permissions PSM-HTML5 is working.Field_Content_versions_oct20__0682J00000CFJLLQA5.pngcertnew.pem - CA certificate;

html5cert.pfx - psmgw certificate enrolled by CA with private key;

psmgwcert.pem - psmgw certificate enrolled by CA

View solution in original post

8 REPLIES 8

L2 Linker

Field_Content_versions_oct20__0682J00000CF4D8QAL.pngThe last part of installation log is:

L7 Applicator

Are you sure that all your certificates and the key are in PEM format? (Has nothing to do with the file extension, btw)

L2 Linker

Hello.

Today I've converted CA and PVWA/PSM (One cert for 3 nodes) certs to .PEM format and installed psmgw with .pfx key from my CA.

After that I went through this article https://community.cyberark.com/s/article/HTML5GW-Docker-Container but with keystore located at /opt/trust/tomat/keystore.Field_Content_versions_oct20__0682J00000CF66uQAD.png 

Tomcat's Server.xml:

Field_Content_versions_oct20__0682J00000CF6G8QAL.png 

Now I have a white screen/closed connection in Chrome and some messages in Docker console:

Field_Content_versions_oct20__0682J00000CF69UQAT.png[PSMGW][15:14:36.290][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] [POST]New connection arrived

[PSMGW][15:14:36.291][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] EnableJWTValidation set to: true

[PSMGW][15:14:36.292][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Index.jsp is sent to client - First response is returned.

[PSMGW][15:14:36.784][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Entered WebSocketHandShakeFilter with JWT validation param set to: true

[PSMGW][15:14:36.784][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Trying to retrieve Sec-WebSocket-Protocol

[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] 2 protocols were retrieved from Sec-WebSocket-Protocol header

[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] PSM session UUID is retrieved.

[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Hostname: 172.18.22.32, and Port: 3389 for validation.

[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.tokenvalidation.CATokenValidator]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CATV051I Received token validation request.

[PSMGW][15:14:36.791][[https-jsse-nio-8443-exec-9]][INFO ][c.c.tokenvalidation.CATokenValidator]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CATV064I Validation ended successfully, Username:vaultadmin01.

[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] JWT token was succesfully validated. Username: vaultadmin01

[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Adding CSRF token to session

[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CSRF token will be passed via cookie.

[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CSRF cookie was created and added to response.

[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Starting new connection to guacd with UUID = 0efcd595-c120-433b-8046-70d6c38cf307

[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] ClipboardControl = Bidirectional

[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Trying to connect to guacd and perform handshake.

[PSMGW][15:14:36.798][[https-jsse-nio-8443-exec-9]][ERROR][o.a.g.w.GuacamoleWebSocketTunnelEndpoint]: Creation of WebSocket tunnel to guacd failed: Connection to guacd is closed.

 

Tomcat logs in the time of stopping:Field_Content_versions_oct20__0682J00000CF6ENQA1.pngAnd starting:

Field_Content_versions_oct20__0682J00000CF6FSQA1.png 

Also I cannot stop/restart guacd to change log_level from INFO to DEBUG.

[root@6e1c3b35e6c2 PSMGWDockerInstallation]# sudo service guacd stop

Stopping guacd: FAIL

L2 Linker

The problem has been solved.

The root cause was a lack of permissions on /opt/trst/tomcat folder (folder with certificates).

With these permissions PSM-HTML5 is working.Field_Content_versions_oct20__0682J00000CFJLLQA5.pngcertnew.pem - CA certificate;

html5cert.pfx - psmgw certificate enrolled by CA with private key;

psmgwcert.pem - psmgw certificate enrolled by CA

@l.lomakin Hi, I am running into issues after deploying the HTML5 GW docker. When I initiate connection via new GW server to a target server, I get error "Err_connection_Timeout". Could you please let me know if you were able to successfully install HTML5GW via docker.

@Leonid Lomakin​ Hi, I am running into issues after deploying the HTML5 GW docker. When I initiate connection via new GW server to a target server, I get error "Err_connection_Timeout". Could you please let me know if you were able to successfully install HTML5GW via docker.

Hello.

Is your error exactly "Err_connection_Timeout"?

Maybe there is no network connectivity or container is not running? Can you open this page in browser? You need these ports to be opened:

443 from User to HTML5

3389 from HTML5 to PSM

If the error is ERR_CONNECTION_REFUSED then check this article please https://community.cyberark.com/s/article/HTML5GW-Docker-Container

Field_Content_versions_oct20__0682J00000HbN9fQAF.png

@l.lomakin Yes the error is "Err_connection_Timeout". I will work on the proposed solution and let you know. Thanks.

  • 1 accepted solution
  • 1026 Views
  • 8 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!