Restore Failed Playbook

Who this is for

Users whose restore operation failed mid-way, or who are seeing an error when trying to start a restore.


Pre-Restore Error Playbook

These errors occur before the restore even starts.

ErrorMeaningFix
INVALID_STATEBackup status is not completedOnly restore from completed backups. If the backup is still running, wait. If it failed, create a new backup first.
SNAPSHOT_RESTORETrying to restore a snapshot through CloudAIPilotSnapshots must be restored via the cloud provider console. See KB-05-05.
RESTORE_IN_PROGRESSAnother restore is already runningWait for the current restore to finish, or cancel it — see KB-05-06.

Mid-Restore Failure Playbook

If the restore started but failed mid-way, the server may be in a partially restored state.

Step 1 — Check What Failed

  1. Open the Activity Center.
  2. Find the restore job.
  3. Expand to see which step failed.

Step 2 — Assess Server State

Last successful stepServer state
Restore not yet startedServer is unchanged
Files partially overwrittenPartial files — site may be broken
Database partially importedDatabase in inconsistent state

Step 3 — Recover Using Safe Mode Backup

If you had Safe Mode enabled when starting the restore (the default), CloudAIPilot created a pre-restore backup.

  1. Go to Server detail → Backups tab.
  2. Find the backup labeled "Pre-restore backup" (created at the time the restore started).
  3. Restore from that backup to return to the state before the failed restore.

If safe mode was disabled: you will need to restore from your most recent healthy backup.


Common Mid-Restore Failures

Error messageMeaningFix
No space left on deviceDisk full during restoreDelete files on the server, then retry restore
Permission deniedcloudpilot user cannot write to the document rootFix file ownership: sudo chown -R cloudpilot:cloudpilot /var/www/...
mysqldump: Got error: Access deniedMySQL credentials in backup don't match current DBManually update DB credentials after restore
SSH connection droppedServer SSH became unavailable mid-restoreCheck SSH connectivity — see KB-12-05 — then retry
ERROR 1005: Can't create table (errno: 150)Foreign key constraint failure during DB importTry with safeMode: false and a fresh DB, or manually fix the dump

After a Failed Restore: Is the Site Working?

  1. Visit the site in a browser.
  2. If it loads normally: the restore recovered enough to be functional. Check for data integrity manually.
  3. If it shows a 502/500 error or blank page:
  • Restart Nginx: sudo systemctl restart nginx (via server terminal in CloudAIPilot).
  • Check the site's error log: /var/log/nginx/error.log or /var/www//logs/.
  1. If the database is corrupt: restore from the pre-restore backup (see Step 3 above).

Related Articles