errors restoring jetbackup 5

cPanel, Industry leading hosting platform with world-class support.
Post Reply
ludolugo
Posts: 52
Joined: April 17th, 2020, 10:40 am

errors restoring jetbackup 5

Post by ludolugo »

Hi,
When restoring a full backup i see the following errors:

Code: Select all

12/Nov/2021 10:23:49 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.


[12/Nov/2021 10:23:49 +0000] [PID 51195] Restoring database user "[email protected]"

[12/Nov/2021 10:23:49 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.


[12/Nov/2021 10:23:49 +0000] [PID 51195] Restoring database user "[email protected]"

[12/Nov/2021 10:23:50 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.


[12/Nov/2021 10:23:50 +0000] [PID 51195] Restoring database user "user_wp1@localhost"

[12/Nov/2021 10:23:50 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.


[12/Nov/2021 10:23:50 +0000] [PID 51195] Restoring homedir

[12/Nov/2021 10:50:34 +0000] [PID 51195] Restoring email account "[email protected]"

[12/Nov/2021 10:50:35 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.
 


[12/Nov/2021 10:50:35 +0000] [PID 51195] Restoring email account "[email protected]"

[12/Nov/2021 10:50:35 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.
 


[12/Nov/2021 10:50:35 +0000] [PID 51195] Restoring email account "[email protected]"

[12/Nov/2021 10:50:36 +0000] [PID 51195] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101
Also when restoring a DB with different prefix tan the username it sais that it can not restore it because the prefix is different, this happens with several accounts that has been migrated from cpanel with mariadb to cpanel with mysql8 , and cpanel changes the username to 8 characters
This is the error [
ERROR] Failed making API Call to cPanel/WHM (uapi). Error: The name “protrasplantep_wp” does not begin with the required prefix “protrasp_”
JetAppsRichard
Staff Member
Staff Member
Posts: 97
Joined: January 1st, 2021, 12:51 am

Re: errors restoring jetbackup 5

Post by JetAppsRichard »

Hello ludolugo,

Thank you for reaching out through our forums. The first error from the snippet you provided is the following:

Code: Select all

[ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.
This error occurs when the account was suspended when backed up so JetBackup is suspending the account upon restore. As you may know, JetBackup utilizes the Panel API in order to perform Backups/Restores, and in this case, cPanel does not allow suspended accounts to utilize their API resulting in this error. In order to work around this issue, when on the confirmation page to "Restore Filtered Accounts" ensure that the option "Suspend account after restore" is NOT selected and the account will be unsuspended during restore allowing other items to complete.

For the second issue regarding the Database prefix, this is a known issue with the cPanel Tweak Setting Require a username prefix on names of new databases and database users. In order to allow a restore of Databases without the proper prefix you would need to disable this Tweak Setting from WHM Home > Tweak Settings > “Require a username prefix on names of new databases and database users” then perform the restore again. You can find more information on this in our Knowledgebase here: Restore Failed: Error while trying to get data from uapi/whmapi

Please let us know if the issue persists or you have any other questions.
Best Regards,
Richard, JetApps Team
ludolugo
Posts: 52
Joined: April 17th, 2020, 10:40 am

Re: errors restoring jetbackup 5

Post by ludolugo »

Hi,
I reopen this thread because we are having the same issue restoring orphans backups, the same error:

Code: Select all

0/Apr/2022 11:29:20 +0000] [PID 20424] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.

[10/Apr/2022 11:29:20 +0000] [PID 20424] Restoring database user ""
[10/Apr/2022 11:29:20 +0000] [PID 20424] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.

[10/Apr/2022 11:29:20 +0000] [PID 20424] Restoring database user ""
[10/Apr/2022 11:29:20 +0000] [PID 20424] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.

[10/Apr/2022 11:29:20 +0000] [PID 20424] Restoring database user ""
[10/Apr/2022 11:29:21 +0000] [PID 20424] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.

[10/Apr/2022 11:29:21 +0000] [PID 20424] Restoring homedir
[10/Apr/2022 11:33:41 +0000] [PID 20424] Restoring email account ""
[10/Apr/2022 11:33:41 +0000] [PID 20424] [ERROR] Failed making API Call to cPanel/WHM (uapi). Error: Failed to parse adminbin request: Account is suspended at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 101.
The option "Suspend account after restore" was NOT selected, after the account was restored the account seems to be active but it isn't, if we try to suspend the account sais that is already suspended so we have to go on CLI and run /script/suspendacct --force and then /script/unsuspendacct --force to correctly activate it, maybe the errors restoring the db is that the account was not completely activated.
JetAppsAnton
Staff Member
Staff Member
Posts: 54
Joined: March 2nd, 2019, 2:40 am

Re: errors restoring jetbackup 5

Post by JetAppsAnton »

Hello ludolugo,

Thank you for reaching out back to us. It appears to be a similar issue earlier with the email backups wherein JetBackup is trying to restore a suspended account from the orphan backup and we are unable to use the specific cPanel API we utilize to restore the database users while the account is suspended.

To better assist you with this issue, may you please kindly open a ticket with us at [email protected] so that our technicians could take a further look. We will also promptly update this forum thread as well with our support team's findings and corresponding fix.

Thank You,
Anton, JetApps Team
KHJKW
Posts: 2
Joined: October 26th, 2022, 10:19 pm

Re: errors restoring jetbackup 5

Post by KHJKW »

Was there ever any update regarding this issue? As a rather decently sized shared host, we perform restorations on terminated customers services often. These services are often terminated in their suspended state which Jetbackup performs.

We run into the same issue as outlined in this thread and as a result it's rather tedious to have to restore it, watch it error out due to cPanel API not being able to run on a suspended account.

Can JetBackup not restore the account completely and then suspend it at the end? Is Jetbackup issuing the suspension on the account during restore?

Can an option not be added to "not suspend" an already suspended account on restore?

The option "Suspend account after restore" is never selected when we do this.
JetAppsAdam
Staff Member
Staff Member
Posts: 74
Joined: August 5th, 2022, 11:01 pm

Re: errors restoring jetbackup 5

Post by JetAppsAdam »

Hello KHJKW,

As the JetBackup restore process relies on the Panel API to restore accounts, at this time the workaround for this issue is still the one provided above. Regarding an option to "not suspend an already suspended account", I'd like to urge you to open a feature request at request.jetapps.com as gaining a high number of votes for requests helps our team gauge the demand and assess how to best allocate our development resources towards features that are popular with the JetBackup community.
Thank you,

Adam G
JetApps, LLC.
JetApps.com | JetBackup.com
Post Reply