Need help migrating sites to new (updated) server ... not working

I am going through the process of setting up a new server, in order to have a newer version of Ubuntu (22.04). The old server is on 18.04.

I understand it is necessary to set up a new server, as Cyberpanel will break if we try to do a distribution upgrade. So that’s what I am doing.

I also understand I should be able to use the Remote Backups tool to migrated the sites from old server to new server.

I have tested with one site, and it does not work. The list of sites fetches okay. But then when I migrate a site, initially this appears in the output box: cat: /home/backup/transfer-1229/backup_log: No such file or directory. Then after some time an error displays, as follows:

############################ Starting remote Backup Start date: 05.07.2024_10-00-27 ############################ [05.07.2024_10-00-29] Connection to:[NEW SERVER IP - REDACTED] Failed, please resetup this destination from CyberPanel, aborting. [5010]

So it seems it can’t connect to the new server, even though that’s the one I am on and initiating the transfer on.

UPDATE: Looking in the logs of the source (old) server, I see the following related errors:

[05.07.2024_09-54-42] Remote Server is not able to authenticate for transfer to initiate, IP Address:[NEW SERVER IP - REDACTED]
[05.07.2024_09-57-13] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[05.07.2024_10-00-23] port on server B-------------- 22
[05.07.2024_10-00-29] Remote Server is not able to authenticate for transfer to initiate, IP Address:[NEW SERVER IP - REDACTED]
[05.07.2024_10-11-29] port on server B-------------- 22
[05.07.2024_10-11-34] Remote Server is not able to authenticate for transfer to initiate, IP Address:[NEW SERVER IP - REDACTED]

It seems odd that it’s having an authentication error, when it successfully authenticated in order to fetch the list of sites.

Can anyone suggest why this is happening, and what to do about it?

Thank you.

Site fetch happen through normal API call to CyberPanel actual transfer of data happen through scp.

May I ask if both CyberPanel are latest versions?

Hello Sir,
Thanks for helping.

They were both on a commit from last week.

I’ve now updated both to that latest commit.

Latest Version: 2.3
Latest Build: 5
Latest Commit: 3ffbe1f55159d88bf6d28e3448b3a0853b1eb907

The output:

#Starting remote Backup Start date: 05.13.2024_06-27-30 
# [05.13.2024_06-27-31] Connection to:NEW-SERVE-IP Failed, please resetup this destination from CyberPanel, aborting. [5010]

Is it necessary for me to go through the setup wizard on the new server before I can transfer sites to it? I haven’t yet done that, because I need to set the hostname to the same domain used on the old server (obviously, since this whole exercise is to simply update Ubuntu). I need for the DNS records to point to IP of new server in order to pass the rDNS/PTR Check.

I am pretty sure I can’t do that until I’ve got everything off the old server.

If that’s not an issue, please do let me know what might be.
Thanks

Hi there. Any further thoughts on this?