Symptoms

Attempting to restore a backup of a terminated account on WP Squared returns a failed error like the following.

[133332][RESTORE:1 ][A:cpuser]: Failed: Account Restore Failed: “Account failure: Failed to create the account: (XID zae3s7) The domain ”randomly-generated-name.203-0-113-2.wpsquared.site” is unavailable.”
[133332][RESTORE:1 ][A:cpuser]: Skipped item (“AccountRestoration::_run_restore_system_module”, line 603): The “Account” restore module failed because of an error: Failed to create the account: (XID zae3s7) The domain ”randomly-generated-name.203-0-113-2.wpsquared.site” is unavailable.

 

Description

Account creation restricts the use of Tech Domains, except when using the option to choose your domain later. This prevents the backup with a staging domain from being created during the restoration.

We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-49398. Follow this article to receive an email notification when a solution is published in the product. 

 

Workaround

To allow the restore action to complete, the account needs to already exist on the server. If you have already terminated the account, it will need to be recreated with a new staging domain. During the restoration process, the original staging name will also be restored and overwritten by the newly created staging domain. Once created, you can use the restorepkg script with the force argument to restore the backup.

/scripts/restorepkg --force /path/to/backup

 

Additional Resources

Create a New WP Squared Account

The restorepkg Script