abdelouahabb edited a comment on issue #4659:
URL: https://github.com/apache/cloudstack/issues/4659#issuecomment-778553357


   > ok @abdelouahabb , I think you have a problem on your host (using the host 
certificate) I added to milestone 4.15.1, but I think it is a problem with the 
host installation. Please add some information from the agent if you can.
   
   Thank you,
   Here is the log, this keeps looping over and over
   Maybe the process of configuring the certificate will be more helpful if it 
will be added to the first installation and bootstraping configuration ?
   ```
   sudo tail -f /var/log/cloudstack/agent/agent.log
   
   2021-02-13 03:10:24,613 INFO  [cloud.agent.Agent] (main:null) (logid:) 
Connecting to host:192.168.56.85
   2021-02-13 03:10:24,614 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connecting to 192.168.56.85:8250
   2021-02-13 03:10:24,615 INFO  [utils.nio.Link] (main:null) (logid:) Conf 
file found: /etc/cloudstack/agent/agent.properties
   2021-02-13 03:10:24,617 WARN  [utils.nio.Link] (main:null) (logid:) Failed 
to load keystore, using trust all manager
   2021-02-13 03:10:24,710 ERROR [utils.nio.Link] (main:null) (logid:) SSL 
error caught during unwrap data: Received fatal alert: bad_certificate, for 
local address=/192.168.56.85:57384, remote address=/192.168.56.85:8250. The 
client may have invalid ca-certificates.
   2021-02-13 03:10:24,711 ERROR [utils.nio.NioClient] (main:null) (logid:) SSL 
Handshake failed while connecting to host: 192.168.56.85 port: 8250
   2021-02-13 03:10:24,711 ERROR [utils.nio.NioConnection] (main:null) (logid:) 
Unable to initialize the threads.
   java.io.IOException: SSL Handshake failed while connecting to host: 
192.168.56.85 port: 8250
           at com.cloud.utils.nio.NioClient.init(NioClient.java:67)
           at com.cloud.utils.nio.NioConnection.start(NioConnection.java:95)
           at com.cloud.agent.Agent.start(Agent.java:294)
           at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:455)
           at 
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:422)
           at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:406)
           at com.cloud.agent.AgentShell.start(AgentShell.java:512)
           at com.cloud.agent.AgentShell.main(AgentShell.java:547)
   2021-02-13 03:10:24,711 INFO  [utils.nio.NioClient] (main:null) (logid:) 
NioClient connection closed
   2021-02-13 03:10:24,711 INFO  [cloud.agent.Agent] (main:null) (logid:) 
Attempted to connect to the server, but received an unexpected exception, 
trying again...
   com.cloud.utils.exception.NioConnectionException: SSL Handshake failed while 
connecting to host: 192.168.56.85 port: 8250
           at com.cloud.utils.nio.NioConnection.start(NioConnection.java:101)
           at com.cloud.agent.Agent.start(Agent.java:294)
           at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:455)
           at 
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:422)
           at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:406)
           at com.cloud.agent.AgentShell.start(AgentShell.java:512)
           at com.cloud.agent.AgentShell.main(AgentShell.java:547)
   ```
   
   And I have even replaced the openjdk with the oracle java
   
   ```
   >> sudo update-alternatives --config java
   There are 2 choices for the alternative java (providing /usr/bin/java).
   
     Selection    Path                                         Priority   Status
   ------------------------------------------------------------
     0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      auto 
mode
     1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      
manual mode
   * 2            /usr/lib/jvm/java-15-oracle/bin/java          1091      
manual mode
   
   Press <enter> to keep the current choice[*], or type selection number:
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to