BlogTroubleshootingBackups

Restora backup stops, fails or will not start: the messages and what they mean

From “Another job is already running” to “The server refused the request (error 403)”, “Not enough free disk space” and “The job stopped responding and was abandoned”: what each message means and what to do.

5 min readPerforks

A backup stopped with a server error 403 and an explanation of what to do

A Restora backup runs in short slices, so the usual cause of a stopped backup is not the backup itself but something between the browser and the server, or a limit on the server. Restora says what happened; this page lists the messages and the fix for each. In every case, the Log next to a backup (or the job log while it runs) has the detail, and that is the text to send if you write to support.

It will not start

MessageWhat to do
“Another job is already running.”Only one backup or restore runs at a time. Wait for it to finish, or cancel it from the Restora screen.
“The backup folder inside wp-content is not writable.”Give PHP write permission on wp-content, or ask the host.
“The PHP zlib extension is missing, so backups cannot be created.”Ask the host to enable zlib.
“Restora needs a 64-bit PHP build.”Ask the host for 64-bit PHP; 32-bit cannot handle files of 2 GB or more.
“Multisite networks are backed up site by site with Restora Pro. The free plugin does not back up a network.”See multisite backups.
“Choose at least one part to back up.”Under Separate files, tick at least one part.

It stops part-way

“The server refused the request (error 403) before Restora could handle it.”

Followed by: “A security rule on the server may be stopping these requests. Wait a few minutes and try again; if it happens again, ask your host to allow requests to …”. A firewall, a security plugin or a rate limit rejected one of the slice requests to admin-ajax.php. Allow requests from your own address (and from the server's own address for scheduled backups), or whitelist admin-ajax.php?action=restora_… in the security plugin. Error 429 means “too many were sent in a short time”.

“The server was unavailable or overloaded and did not answer (error 502/503/504).”

The web server or a proxy in front of PHP gave up waiting. Restora retries by itself (“Retrying (2 of …)…”); if it keeps happening, the host's proxy timeout is shorter than a slice, and the host has to raise it, or you can lower the slice with the restora_time_budget filter (seconds of work per request, 20 by default or half of max_execution_time).

“The server ran into an error and could not answer (error 500).”

A PHP error inside a slice. “Allowed memory size exhausted” in the PHP error log is the usual one: raise memory_limit or ask the host. The job is not lost; press the button again and it carries on from its last checkpoint.

“The server sent back a web page instead of Restora's answer.”

“A security check, a maintenance page or a login page may have answered instead. Reload this page and try again.” Typical with a CAPTCHA or bot-protection page in front of wp-admin.

“Your login has expired or this page is out of date.”

Reload the page, log in again if asked, and start again; the job continues.

“The connection to the server was lost.” or “The server did not answer within … seconds.”

Your own connection, or the server cut it. Check the connection and try again; if it works, wait a few minutes first.

“The job has made no progress for … minutes.”

“The server may be stopping it before it can do any work.” Some hosts kill PHP requests after a hard limit shorter than Restora's slice. Lower the slice with restora_time_budget, or ask the host what cuts requests short.

“The server kept stopping the job before it could make progress.”

Restora gave up after five slices in a row died without reporting back (a fatal error or a hard timeout every time). Look in the PHP error log at that moment; it names the limit or the error.

“The job stopped responding and was abandoned.”

A running backup went without any progress for too long, and Restora closed it so that the next one can start. Earlier backups are not affected; only this one is missing, and the unfinished file is removed. The limit is 15 minutes, or six hours for a backup whose next step is booked with WP-Cron and is waiting for it to run. The usual causes:

  • A backup started by hand, and the window was closed. Such a backup moves only while its page is open. Scheduled backups need no page.
  • A scheduled backup on a site that WP-Cron does not reach, because the site cannot call itself and nobody visits it, or because a CDN answers the visits. A real cron job solves this.
  • A host that stops PHP in the middle of a step. Up to Restora 1.4.0 this could end a scheduled backup. Since 1.4.1 the next step is booked before each one starts, so a step that was stopped is repeated and the backup carries on from its last checkpoint. Update first.

Then press Create backup to get a fresh one now, and look at the Log if the message comes back.

It stops with a reason of its own

  • “Not enough free disk space: the backup needs about 2.1 GB and the server has 900 MB free. Free some space, delete old backups, or leave large folders out under Settings.” Restora checks this as soon as the scan knows the size, not at 80%. Delete old backups from the list, lower Scheduled backups to keep, or exclude folders (see settings).
  • “This backup was to be encrypted, but encryption was turned off or is no longer available on this site.” (Pro) Encryption was switched off, or the licence ended, while a backup was running. Start it again.
  • “Encryption is on, but this server has no OpenSSL, so backups cannot be made.” (Pro) Turn encryption off or ask the host to enable OpenSSL.

A scheduled backup fails but a manual one works

Scheduled backups keep themselves going with requests to the site's own address, without anyone logged in. If those loopback requests are blocked (a firewall that only allows your IP, HTTP authentication in front of the site, a host that forbids a site calling itself), the manual backup from your browser works and the scheduled one stalls. Allow requests from the server's own address. Site Health shows “The last scheduled backup failed” with the reason, and the failure email carries it too. See also scheduled backup did not run.

It finishes with a warning

“Backup complete, but 3 files or folders could not be read and are not in it. The list is in the job log.” The backup is usable. The log lists the paths (unreadable permissions, a folder PHP may not open, or a name a restore could not write safely). Fix them if they matter; otherwise exclude them so the warning goes away.