Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Build agent is not connecting to QB server with secured port #110

manirajsv ·

Hi Team,

We have installed QB server in the Whirlpool GCP cloud and the agent in the HCL GCP cloud. After starting the build agent with 8810 port and enabling the connectivity, we could see the build agent under the active nodes in the QB console and able to execute the scripts in the agent server.
But the problem here is, its not connecting with 8811 port i.e., secured port. And its getting stuck in the inactive nodes after authorizing when we start with 8811 port and could see below error while its trying to connect.
Could you please suggest if we need to import any certs of the build agent in the QB server?

Error:
2024-07-30 16:35:24,670 [WrapperStartStopAppMain] INFO com.pmease.quickbuild.bootstrap.Bootstrap - Benchmarking...
2024-07-30 16:35:25,483 [WrapperStartStopAppMain] INFO com.pmease.quickbuild.bootstrap.Bootstrap - Connecting to server 'https://100.96.137.35:8811'...
2024-07-30 16:35:25,932 [WrapperStartStopAppMain] ERROR com.pmease.quickbuild.bootstrap.Bootstrap - Error connecting server.
com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.client.HessianRuntimeException: Error connecting 'https://100.96.137.35:8811/service/co
nnect'
at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:285)
at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:171)
at com.sun.proxy.$Proxy18.connect(Unknown Source)
at com.pmease.quickbuild.bootstrap.Bootstrap.init(Bootstrap.java:453)
at com.pmease.quickbuild.bootstrap.Bootstrap.main(Bootstrap.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:429)
at java.lang.Thread.run(Thread.java:750)
Caused by: com.caucho.hessian.client.HessianRuntimeException: Error connecting 'https://100.96.137.35:8811/service/connect'
at com.caucho.hessian.client.HessianURLConnection.getOutputStream(HessianURLConnection.java:101)
at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283)
... 10 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:293)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient. (HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1342)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1317)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264)
at com.caucho.hessian.client.HessianURLConnection.getOutputStream(HessianURLConnection.java:99)
... 11 more

Thank you!

Regards,
Maniraj SV

  • replies 3
  • views 163
  • stars 0
robinshen ADMIN ·

Normally 8810 port is for QB server and 8811 port is for build agent. QB agent has to connect to QB server via 8810 port and QB server also needs to connect back to QB agent via its 8811 port. Both ports can be configured to run under https protocol if necessary.

manirajsv ·

Thank you Robin for the reply!
Actually for the QB to connect with agent over 8811 port, its failed to communicate with SSL exceptions. Can you please help with steps in fixing this issue or to import any required certs for the same.

robinshen ADMIN ·