GitHub user arpanbht created a discussion: error in cloudstack agent
i have setup a wireguard vpn between two of my networks and it is working
192.168.1.0/24 network can connect to 192.168.2.0/24
and i have setup a mgmt server on 192.168.1.102 and i have added a host from .1
network and it worked but while adding a .2 network host , i created a separate
pod with a .2 network config but in the agent logs i am getting this handshake
error
```
user@pc-2:~$ sudo tail -f /var/log/cloudstack/agent/agent.log
at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:477)
at
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:454)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:438)
at com.cloud.agent.AgentShell.start(AgentShell.java:539)
at com.cloud.agent.AgentShell.main(AgentShell.java:569)
Caused by: java.io.IOException: SSL Handshake failed while connecting to host:
192.168.1.102:8250
at com.cloud.utils.nio.NioClient.init(NioClient.java:75)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:109)
... 6 more
2026-03-31 13:08:51,112 INFO [cloud.agent.Agent] (main:[]) (logid:) Connecting
to host: 192.168.1.102
2026-03-31 13:08:51,112 INFO [utils.nio.NioClient] (main:[]) (logid:)
Connecting to 192.168.1.102:8250
2026-03-31 13:08:51,115 INFO [utils.nio.NioClient] (main:[]) (logid:)
Connected to 192.168.1.102:8250
2026-03-31 13:08:51,115 INFO [utils.nio.Link] (main:[]) (logid:) Conf file
found: /etc/cloudstack/agent/agent.properties
2026-03-31 13:08:51,116 WARN [utils.nio.Link] (main:[]) (logid:) Failed to
load keystore, using trust all manager
2026-03-31 13:08:51,138 ERROR [utils.nio.Link] (main:[]) (logid:) SSL error
caught during unwrap data: Received fatal alert: bad_certificate, for local
address=/192.168.2.101:44202, remote address=/192.168.1.102:8250. The client
may have invalid ca-certificates.
2026-03-31 13:08:51,138 ERROR [utils.nio.NioClient] (main:[]) (logid:)
IOException while connecting to 192.168.1.102:8250 java.io.IOException: SSL
Handshake failed while connecting to host: 192.168.1.102:8250
at com.cloud.utils.nio.NioClient.init(NioClient.java:75)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:109)
at com.cloud.agent.Agent.start(Agent.java:338)
at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:477)
at
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:454)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:438)
at com.cloud.agent.AgentShell.start(AgentShell.java:539)
at com.cloud.agent.AgentShell.main(AgentShell.java:569)
2026-03-31 13:08:51,138 ERROR [utils.nio.NioClient] (main:[]) (logid:) Unable
to initialize the threads. java.io.IOException: SSL Handshake failed while
connecting to host: 192.168.1.102:8250
at com.cloud.utils.nio.NioClient.init(NioClient.java:75)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:109)
at com.cloud.agent.Agent.start(Agent.java:338)
at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:477)
at
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:454)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:438)
at com.cloud.agent.AgentShell.start(AgentShell.java:539)
at com.cloud.agent.AgentShell.main(AgentShell.java:569)
2026-03-31 13:08:51,138 INFO [utils.nio.NioClient] (main:[]) (logid:)
NioClient connection closed
2026-03-31 13:08:51,138 INFO [cloud.agent.Agent] (main:[]) (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.1.102:8250
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:115)
at com.cloud.agent.Agent.start(Agent.java:338)
at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:477)
at
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:454)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:438)
at com.cloud.agent.AgentShell.start(AgentShell.java:539)
at com.cloud.agent.AgentShell.main(AgentShell.java:569)
Caused by: java.io.IOException: SSL Handshake failed while connecting to host:
192.168.1.102:8250
at com.cloud.utils.nio.NioClient.init(NioClient.java:75)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:109)
... 6 more
```
but i can easily ping from this host or even connect to the mgmmt server on
8250
```
user@pc-2:~$ nc -vz 192.168.1.102 8250
Connection to 192.168.1.102 8250 port [tcp/*] succeeded!
user@pc-2:~$ ping 192.168.1.102
PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
64 bytes from 192.168.1.102: icmp_seq=1 ttl=62 time=1.81 ms
64 bytes from 192.168.1.102: icmp_seq=2 ttl=62 time=1.58 ms
^C
--- 192.168.1.102 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.583/1.695/1.807/0.112 ms
```
GitHub link: https://github.com/apache/cloudstack/discussions/12936
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]