CS version 4.13

When I am trying to add an agent - it fails to connect to the management 
server, how can I diagnose this?


2020-02-24 10:10:05,786 INFO  [cloud.agent.Agent] (main:null) (logid:) Agent 
[id = new : type = LibvirtComputingResource : zone = 1 : pod = 1 : workers = 5 
: host = 192.168.240.1 : port = 8250
2020-02-24 10:10:05,791 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connecting to 192.168.240.1:8250
2020-02-24 10:10:05,795 INFO  [utils.nio.Link] (main:null) (logid:) Conf file 
found: /etc/cloudstack/agent/agent.properties
2020-02-24 10:10:20,891 WARN  [utils.nio.Link] (main:null) (logid:) SSL 
Handshake has taken more than 15s to connect to: /192.168.240.1:8250. Please 
investigate this connection.
2020-02-24 10:10:20,892 ERROR [utils.nio.NioClient] (main:null) (logid:) SSL 
Handshake failed while connecting to host: 192.168.240.1 port: 8250
2020-02-24 10:10:20,893 ERROR [utils.nio.NioConnection] (main:null) (logid:) 
Unable to initialize the threads.
java.io.IOException: SSL Handshake failed while connecting to host: 
192.168.240.1 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:282)
        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)
2020-02-24 10:10:20,898 INFO  [utils.exception.CSExceptionErrorCode] 
(main:null) (logid:) Could not find exception: 
com.cloud.utils.exception.NioConnectionException in error code list for 
exceptions
2020-02-24 10:10:20,898 WARN  [cloud.agent.Agent] (main:null) (logid:) NIO 
Connection Exception  com.cloud.utils.exception.NioConnectionException: SSL 
Handshake failed while connecting to host: 192.168.240.1 port: 8250
2020-02-24 10:10:20,898 INFO  [cloud.agent.Agent] (main:null) (logid:) 
Attempted to connect to the server, but received an unexpected exception, 
trying again...

The correct files seem to have been created
ls /etc/cloudstack/agent/
agent.properties  cloud.ca.crt  cloud.crt  cloud.csr  cloud.jks  cloud.key  
environment.properties  log4j-cloud.xml

The management server only shows

2020-02-24 10:11:20,535 WARN  [c.c.u.n.Link] 
(AgentManager-SSLHandshakeHandler-1:null) (logid:) SSL Handshake has taken more 
than 15s to connect to: /192.168.240.3:59940. Please investigate this 
connection.

Thanks

Adam



Disclaimer Notice:
This email has been sent by Oakford Technology Limited, while we have checked 
this e-mail and any attachments for viruses, we can not guarantee that they are 
virus-free. You must therefore take full responsibility for virus checking.
This message and any attachments are confidential and should only be read by 
those to whom they are addressed. If you are not the intended recipient, please 
contact us, delete the message from your computer and destroy any copies. Any 
distribution or copying without our prior permission is prohibited.
Internet communications are not always secure and therefore Oakford Technology 
Limited does not accept legal responsibility for this message. The recipient is 
responsible for verifying its authenticity before acting on the contents. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those of Oakford Technology Limited.
Registered address: Oakford Technology Limited, The Manor House, Potterne, 
Wiltshire. SN10 5PN.
Registered in England and Wales No. 5971519

Reply via email to