Migration from cpanel to directadmin

Web hosting environments are constantly evolving. DirectAdmin stays in-step with today’s most sophisticated solutions.
Post Reply
kati0109
Posts: 2
Joined: February 1st, 2022, 4:37 pm

Migration from cpanel to directadmin

Post by kati0109 »

Hi

We want to perform a massive migration from cpanel to DirectAdmin, we already made a complete backup on the cpanel server and on the directadmin server we created the destination to the server that is in cpanel to be able to bring us the backups to directadmin. You have to do some additional step to be able to restore those accounts in the directadmin server, since when restoring the orphaned accounts it fails with the error that we copy below:

[01/Feb/2022 12:40:01 +0000] [PID 27099]
[01/Feb/2022 12:40:01 +0000] [PID 27099] Downloading account config data to temporary folder
[01/Feb/2022 12:40:04 +0000] [PID 27099] Restoring account configurations (creating account if needed)
[01/Feb/2022 12:40:04 +0000] [PID 27099] [PANEL] Creating user account
[01/Feb/2022 12:40:05 +0000] [PID 27099] [ERROR] Cannot Create Account - No shared IPs found (Status Code: 500)
[01/Feb/2022 12:40:05 +0000] [PID 30844] Failed

(both servers have jetbackup)
JetappsCris
Staff Member
Staff Member
Posts: 33
Joined: December 1st, 2021, 2:12 am

Re: Migration from cpanel to directadmin

Post by JetappsCris »

Hello kati0109,

Thank you for reaching out to us via our forums. If you would like to migrate from a cPanel server to a Direct Admin server, you can do so with the following steps. However, please be sure to read the full post before proceeding, to avoid issues when migrating:

1. On the cPanel Server, create a Backup SSH Destination to your DirectAdmin Server
2. Create a Full Account Backup Job on the cPanel Server and use the DirectAdmin Destination.
3. On the DirectAdmin Server, create a Backup **LOCAL** Destination that is **READ ONLY** and use the Backup Directory Path.
4. After reindexing the Destination on the DirectAdmin, you will then be able to restore the accounts on the DirectAdmin Server as needed.

Please note,
The most common issue we see with DirectAdmin when moving accounts across panels is where the client has not performed any configuration of DirectAdmin User and Reseller Packages (no packages exist). DirectAdmin doesn't create a catch-all "default" package on a fresh install as cPanel/WHM does.
This causes issues because DirectAdmin's API and UI prevent creating User or Reseller accounts if there is not at least one User Package (for creating users) and Reseller package (For creating resellers).

To resolve this particular issue, it's best to re-create all packages that you had on cPanel to DirectAdmin so the same package as what was backed up could be assigned when the account is created by JetBackup during restore, OR simply create a catch-all "User_Default" and "Reseller_Default" package and setting the User Default in JB5's "Panel" settings at JB5 > Settings > Panel > Default Package.

There is documentation on this here: https://docs.jetbackup.com/v5.2/adminpa ... %20default
This recommendation also applies to the "Default IP Address" field, as there could be an assigned IP in the backup that would not exist on your DirectAdmin server.

Also note,
To use the "Read-Only" Destination feature on JB5 when setting up the destination to restore the accounts on your Direct Admin server. Read-Only destinations allow you to restore/download only from the destination, which would be preferred in this case. There is documentation on setting up a "Read-Only" destination here: https://docs.jetbackup.com/v5.2/adminpa ... #read-only

If you have issues with these steps, please feel free to open a support ticket with our 24/7 support team. You can reach out team at [email protected].
Best Regards,
Cristofer, JetApps Team
JetappsCris
Staff Member
Staff Member
Posts: 33
Joined: December 1st, 2021, 2:12 am

Re: Migration from cpanel to directadmin

Post by JetappsCris »

In your case, kati0109, please try setting up the default IP as suggested in our documentation with the following link:
https://docs.jetbackup.com/v5.2/adminpa ... %20default
You can configure your server shared IP in this field.
Once you have configured the default IPs, please try to restore the accounts again.

If you continue to have issues, please reach out to our 24/7 support team. You can email us at [email protected].
Best Regards,
Cristofer, JetApps Team
kati0109
Posts: 2
Joined: February 1st, 2022, 4:37 pm

Re: Migration from cpanel to directadmin

Post by kati0109 »

Thank you!
The problem with the IP has already been resolved, now when trying to restore the following error appears:

[02/Feb/2022 13:55:29 +0000] [PID 42504] Downloading account config data to temporary folder
[02/Feb/2022 13:55:32 +0000] [PID 42504] [ERROR] Unable to find download file on destination (jetbackup_1_1_61f7e3513d6fd1654e64ce72/abarrote_61f306a2454832433736ed83/snap.3/jetbackup.configs/config/abarrote.conf). Error: The file/directory provided not found
[02/Feb/2022 13:55:32 +0000] [PID 30844] Failed

(the file is located in the directory)

and when trying to download the following:

Status: Failed
[01/Feb/2022 19:35:12 +0000] [PID 13050] JetBackup Version: 5.2.6 Panel Version: DirectAdmin 5.2.6 (EDGE)
[01/Feb/2022 19:35:12 +0000] [PID 13050] Download for the account: abarrote (UUID: 86d7a8778170e548e705660e8d604b781addd6fa)
[01/Feb/2022 19:35:12 +0000] [PID 13050] Priority: 50
[01/Feb/2022 19:35:12 +0000] [PID 13050]
[01/Feb/2022 19:35:12 +0000] [PID 13063] Download target: /usr/local/jetapps/usr/jetbackup5/workspace/download/61f98b70c2c5f973a928d9d5
[01/Feb/2022 19:35:12 +0000] [PID 13063] Download started for the account abarrote to target /usr/local/jetapps/usr/jetbackup5/workspace/download/61f98b70c2c5f973a928d9d5
[01/Feb/2022 19:35:12 +0000] [PID 13063] Downloading Items...
[01/Feb/2022 19:35:12 +0000] [PID 13063] * Item - Type: 1 | Contains: 1 | Name: abarrote | Id: 61f89426a7aa7c3f78050b9f | Created: 01 February 2022 02:00:02 AM
[01/Feb/2022 19:35:15 +0000] [PID 13063] [ERROR] Index file not found
[01/Feb/2022 19:35:15 +0000] [PID 30844] Failed


we set the destination as "read only" since the backup will come from the remote server that has cpanel
JetappsCris
Staff Member
Staff Member
Posts: 33
Joined: December 1st, 2021, 2:12 am

Re: Migration from cpanel to directadmin

Post by JetappsCris »

Hi kati0109

Thank you for letting us know about the issue you are having and thank you for checking that the file is located in the correct directory.

Since you confirmed the file exists, please try to reindex your destination. You can view the reindex button's location in your destinations overview in the UI. Please refer to our documentation if you are having trouble locating the button.

If that does not resolve the issue, please open a ticket with our 24/7 support team. You can reach our team via email at [email protected].
Best Regards,
Cristofer, JetApps Team
Post Reply