usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.53k stars 591 forks source link

[BUG] Site migration process via Remote Backups not working, unclear error message #1266

Open inspiredearth opened 4 months ago

inspiredearth commented 4 months ago

Note: I originally posted this in the forum. But there has been no response except a quick note from Usman Nasir 13 days ago (May 7, 2024). As I’ve rarely had much luck resolving bugs and issues on the community forums in past few years, I am posting it here in case that’s a better way to sort these issues out.

Describe the bug

I need to update Ubuntu from 18.04 LTS to 22.04 LTS (or 24.04 LTS if CyberPanel supports it).

I’ve read the only way to do this is to set up a new server, and migrate the sites over.

I have set up a new server. And completed the Setup Wizard process.

I read I need to migrate sites using the Remote Backups feature.

When I try to do that, the sites on older server are successfully listed.

But when I try to migrate a site, I get the following error / output:

## 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]

In the logs on the old server I see the following, which might be related:

[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]

To Reproduce What steps did you take when the issue occurred?

  1. Ex.: Click on the "Websites" tab.
  2. Ex.: Click on "Create Website".
  3. Ex.: Attempted to create a website and received an error.

Expected behavior I expect the site to migrate.

Screenshots If applicable, add screenshots to help explain your problem.

Operating system: Old server: Ubuntu 18.04 LTS

New server: Ubuntu 22.04 LTS

CyberPanel version: On both servers I am running ... Current Version: 2.3 Build: 5 Current Commit: 3ffbe1f55159d88bf6d28e3448b3a0853b1eb907

Additional context If there is anything else that you'd like us to know about this issue that will help us diagnose and troubleshoot more effectively, such as links to forum posts or other discussions, please feel free to share here.