You may not be able to restore accounts via JetBackup5 due to errors similar to the following:
[ERROR] Error while trying to get data from uapi. Error: Sorry, you do not have access to the domain 'exampledomain.tld'
Error while trying to get data from whmapi1 "php_set_vhost_versions" function . Error: API failure: Failed to find the domain(s): “domain1.tld domain2.tld"
[ERROR] Error while trying to get data from uapi. Error: You do not own the domain “example.tld”.
When the restorations fail, they are labeled as "Partially Completed" in the JetBackup Logs interface.
For those accounts that fail with "Partially Completed", you should also find older logs in the JetBackup history where a restoration for an account is labeled:
- "Never Finished"
If the JetBackup daemon is killed while a restoration was ongoing, it can leave a partially restored account on the server. Events such as unintended and hard reboots can cause this. It is best practice to avoid hard server shutdowns, as they can lead to critical problems with many daemons such as MySQL, JetBackup, and others.
Events like those should be labeled with "Never Finished" or "Failed" in the JetBackups logs interface to indicate that a serious problem occurred.
If you know already why the restoration was interrupted and you would like to attempt the restoration again, you may use the resolution below.
If you do not know why the restoration attempt never completed or failed, you should work with your systems administrator to investigate the history of the server during the time period when the restoration failed to ensure that you have not overlooked a potentially serious problem.
In order to successfully restore a backup for accounts affected by this issue, you will need to select the option to terminate the account before the restoration in order to clear out the partially restored account.. You can see a screenshot of this option in the interface in the JetBackup5 documentation here: