just copy the agent.properties from backup and retry ?

I never faced this issue before. I always keep the old agent.properties
during upgrade.


-Wei


On Sun, Feb 2, 2025 at 7:46 PM Andrei Miron <andrei.mi...@iqrate.ro> wrote:

> I put all the data from the previous agent.properties and dB password in
> dB.properties.
> Management server is working but agent cannot connect to it because SSL
> handshake.
>
> Romanian
>
> On 2 Feb 2025 20:40, ustcweiz...@gmail.com wrote:
> Yes. But I think we do not need to change anything in db.properties.
>
> I advise you to restore db.properties and agent.properties from backup.
>
> -Wei
>
> On Sunday, February 2, 2025, Andrei Miron <andrei.mi...@iqrate.ro> wrote:
>
> > Yes, of course.
> > 4.20 is coming with a new dB connector.
> >
> > Andrei
> >
> > On 2 Feb 2025 19:50, ustcweiz...@gmail.com wrote:
> > Did you override the db.properties and agent.properties during upgrade ?
> >
> > On Sunday, February 2, 2025, Andrei Miron <andrei.mi...@iqrate.ro>
> wrote:
> >
> > > Hi,
> > >
> > > I'm new to Cloudstack.
> > > I installed Cloudstack 4.19 following the very good procedure (thanks
> > > Rohit Yadav) noth management and KVM on the same host:
> > > https://rohityadav.cloud/blog/cloudstack-kvm/#kvm-host-setup
> > > After that I did an upgrade to see how easy/hard it is following the
> > > official documentation:
> > > https://docs.cloudstack.apache.org/en/4.20.0.0/
> > > upgrading/upgrade/upgrade-4.19.html
> > > I used the same repository from ShapeBlue but fro version 4.20
> > >
> > > There are some missing points in the documentation:
> > >
> > >   *   Management server:
> > >      *   upgrade is not registering the new System VM as it does at the
> > > installation. I did it manually but I don't know if I should delete the
> > old
> > > one or not
> > >      *   if the DB password is not the default one (cloud@localhost)
> > > before starting the management server it should be changed in
> > db.properties
> > >      *   version 4.20 is not supporting hash password as 4.19 so the
> > > password should not be copied from db.properties.dpkg-old (where is
> > hashed
> > > ENC())
> > >   *   agent:
> > >      *   here it should be copied all the settings from the old file
> > > agent.properties.dpkg-old otherwise all the setting are for a vanilla
> > > installation
> > >
> > > Now the problem I could not solve is that after upgrade is the fact
> that
> > > agent can't connect to the server. The error in log is:
> > > 2025-02-02 13:40:14,580 INFO  [cloud.agent.Agent] (main:[]) (logid:)
> > > Connecting to host:192.168.0.130
> > > 2025-02-02 13:40:14,581 INFO  [utils.nio.NioClient] (main:[]) (logid:)
> > > Connecting to 192.168.0.130:8250
> > > 2025-02-02 13:40:14,581 INFO  [utils.nio.Link] (main:[]) (logid:) Conf
> > > file found: /etc/cloudstack/agent/agent.properties
> > > 2025-02-02 13:40:14,657 ERROR [utils.nio.Link] (main:[]) (logid:) SSL
> > > error caught during unwrap data: Received fatal alert:
> handshake_failure,
> > > for local address=/192.168.0.130:52184, remote address=/
> > 192.168.0.130:8250.
> > > The client may have invalid ca-certificates.
> > > 2025-02-02 13:40:14,658 ERROR [utils.nio.NioClient] (main:[]) (logid:)
> > SSL
> > > Handshake failed while connecting to host: 192.168.0.130 port: 8250
> > > 2025-02-02 13:40:14,658 ERROR [utils.nio.NioClient] (main:[]) (logid:)
> > > Unable to initialize the threads. java.io.IOException: SSL Handshake
> > failed
> > > while connecting to host: 192.168.0.130 port: 8250
> > >         at com.cloud.utils.nio.NioClient.init(NioClient.java:65)
> > >         at com.cloud.utils.nio.NioConnection.start(
> > NioConnection.java:96)
> > >         at com.cloud.agent.Agent.start(Agent.java:298)
> > >         at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.
> > java:455)
> > >         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(
> > > AgentShell.java:432)
> > >         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:416)
> > >         at com.cloud.agent.AgentShell.start(AgentShell.java:512)
> > >         at com.cloud.agent.AgentShell.main(AgentShell.java:542)
> > >
> > > 2025-02-02 13:40:14,658 INFO  [utils.nio.NioClient] (main:[]) (logid:)
> > > NioClient connection closed
> > > 2025-02-02 13:40:14,658 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.0.130 port: 8250
> > >         at com.cloud.utils.nio.NioConnection.start(
> > NioConnection.java:102)
> > >         at com.cloud.agent.Agent.start(Agent.java:298)
> > >         at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.
> > java:455)
> > >         at com.cloud.agent.AgentShell.launchAgentFromClassInfo(
> > > AgentShell.java:432)
> > >         at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:416)
> > >         at com.cloud.agent.AgentShell.start(AgentShell.java:512)
> > >         at com.cloud.agent.AgentShell.main(AgentShell.java:542)
> > > Caused by: java.io.IOException: SSL Handshake failed while connecting
> to
> > > host: 192.168.0.130 port: 8250
> > >         at com.cloud.utils.nio.NioClient.init(NioClient.java:65)
> > >         at com.cloud.utils.nio.NioConnection.start(
> > NioConnection.java:96)
> > >         ... 6 more
> > >
> > > Can you please tell me what should I do?
> > >
> > > Thanks,
> > > Andrei
> > >
> > >
> >
>

Reply via email to