Updraft backup stalls during backup creation

A stalled UpdraftPlus backup is a backup that never finishes, keeps showing “Scheduling a resumption” and logs a “Failed to gain semaphore lock” error. Update the plugin, free up storage, lower the archive split size to 100MB and raise the PHP memory limit to 512M. If it still fails, switch to PHP 8.3 or newer, which fixed it for us.

updraftplus backups failing

We use UpdraftPlus for regular backups on the sites we manage for our customers, and on one of them, the backup kept stalling with this error:

Failed to gain semaphore lock (fd) - another backup of this type is apparently already active - aborting (if this is wrong - i.e. if the other backup crashed without removing the lock, then another can be started after 3 minutes)

At first, I assumed it was just a temporary glitch, so I tried aborting and restarting the backup, but that didn’t solve anything.

Next, I attempted to back up only smaller parts, like the database, themes, or plugins, while excluding the large uploads folder. But even then, UpdraftPlus still failed to create a simple, small backup.

That’s when I realized it was time to dig deeper.

Why do UpdraftPlus backups stall?

UpdraftPlus backups usually stall because of an outdated plugin, a lack of disk space, archives that are too large to finish in time, PHP limits that are too low or an old PHP version. Try the fixes below in order, from the easiest to the one that solved it for us, and run a test backup after each one.

Does updating UpdraftPlus fix a stalled backup?

Updating UpdraftPlus is the easiest fix to try first. Check whether the plugin is up to date and update it if necessary, since plugin developers regularly release fixes to keep their plugins compatible with the latest WordPress core updates. Try the backup again after updating, and if it still doesn’t work, continue with the solutions below.

Can low disk space stall a backup?

A backup can stall when there’s no room left to write the archive. Make sure there’s enough disk space for the backup, both on your hosting account and on any remote storage you use. You might want to delete one of the oldest backups to free up space for the new one.

Attempt another backup and check if it works this time. If it still fails, you might try backing up only the WordPress database, or only themes and plugins, for a quick check. Avoid adding the Uploads folder to the backup, as it’s usually much larger than the rest.

Is your backup archive too large?

Large websites with lots of media files can produce backup archives that are too big to finish before the server times out. UpdraftPlus solves this with archive splitting, which breaks the backup into smaller files that are less likely to fail. To decrease the backup archive split size:

  • Open the UpdraftPlus settings and go to the Settings tab.
  • Scroll to the Expert settings section and click Show expert settings.
  • Adjust the Split archives every option to 100MB or a lower value.
  • Click the Save Changes button at the bottom of the page, then run a test backup to verify.

Smaller archives are less likely to time out and fail.

Does LiteSpeed need an .htaccess rule for backups?

On LiteSpeed servers, a long-running backup can be cut off by the web server itself, and a rule in your .htaccess file can stop that. The .htaccess file configures your web server, including the rewrite rules WordPress needs for permalinks, and it sits in the root folder of your WordPress installation (usually public_html).

There are various web servers, such as Apache, Nginx and LiteSpeed. If your hosting provider uses LiteSpeed, try adding the following line to your .htaccess file.

This solution is provided by the official Plugin Support in this support thread:

RewriteRule .* - [E=noabort:1]

In my case, this didn’t solve the issue. So, I kept on changing the other server environment variables.

Does a higher PHP memory limit help?

Backups use more memory than most WordPress tasks, and a backup that runs out of memory partway through will stall and keep trying to resume. So, increasing WordPress memory limit in wp-config.php might solve the issue, along with a longer PHP time limit for large sites.

Make sure you set at least 512MB memory. To do that, use your hosting provider’s File Manager or your FTP client, navigate to the root folder and edit the wp-config.php file.

Add the following code right before the line /* That's all, stop editing! Happy publishing. */:

define('WP_MEMORY_LIMIT', '512M');

You might also want to increase the PHP timeout limit by adding the following code under the WP_MEMORY_LIMIT line:

set_time_limit(300);

Attempt to create another backup to see if these changes help. If not, move on to the last one, which solved the problem in my case.

Does upgrading PHP fix stalled UpdraftPlus backups?

Switching to PHP 8.3 or newer is what finally fixed the stalled backups in our case, since the site was running an outdated PHP version. WordPress.org recommends PHP 8.3 or newer anyway, but changing the PHP version can break an older site, so check the site right after switching.

If it does, you’ll see a critical error or a fatal error. A PHP fatal error will result in the White Screen of Death or your site can display the actual error message if WP_DEBUG is set to true in the wp-config.php file.

So, if that happens, don’t panic and just switch back to the previous PHP version.

PHP version can be changed within your hosting provider’s control panel. For example, if you are using cPanel, navigate to the software section and click MultiPHP Manager or Select PHP Version.

If you can’t change it through your control panel, contact your hosting provider and ask how to change it.

Set PHP to 8.3 or newer if you are running an older version. Next, check if your website is working properly. If yes, attempt to create another backup. Make sure you abort the previous backup process if it’s still running.

In my case, the customer’s site was running an outdated PHP version and UpdraftPlus was failing to create a backup. When I upgraded PHP to the latest version, the issue was resolved on the first attempt.

Conclusion

UpdraftPlus backup stalls usually come down to the server environment rather than the plugin itself. WordPress is a flexible yet delicate platform, and your core, plugins, theme and server settings must be compatible with each other. Start with the easy fixes, and if nothing else works, update PHP, which solved it for us.

If you’ve tried all the above fixes and are still encountering issues, feel free to contact us.

We provide one-off fixes as well as subscription WordPress support plans.

About the author

Ozgur Sar Avatar