FIx: Another update is currently in progress

Advertisement

Some times while updating the WordPress core version or updating bulk plugins we’ll get a notice:

Another update is currently in progress.

The WordPress another update is currently in progress error describe itself.

This notice occurs because WordPress lock the update process if the update process triggers multiple times.

The update class uses the method create_lock of the class WP_Upgrader to create a lock. E.g. WP_Upgrader::create_lock( 'LOCK_NAME', 'LOCK_TIME' );

Now there are two locks:

  • core_updater
  • auto_updater

Fix with WordPress Plugin Fix with WordPress Plugin

I have created a plugin “Fix Update in Process” which show all the existing update locks.

We can release all these locks with ONE click.

Release Lock Screen

The WordPress plugin is available on https://wordpress.org/plugins/fix-update-in-process/. Download the latest plugin from wp.org.

See below screenshots to know how to use the “Fix Update in Process” plugin in action.

Manually Delete Update Locks Manually Delete Update Locks

Lock core_updater Lock core_updater

Lock to prevent multiple Core Updates occurring. Its release time is

15 * MINUTE_IN_SECONDS

It means that it takes 15 * 60 (seconds) = 900 seconds. Its 15 minutes.

To release lock you need to use the function WP_Upgrader::release_lock( 'core_updater' );

OR, Simply delete the below option to release the lock.

delete_option( 'core_updater.lock' )

or

Delete with WP CLI

 wp option delete core_updater.lock

Lock auto_updater Lock auto_updater

Its release time is HOUR_IN_SECONDS (1 Hour). Its default release time.

To release lock you need to use the function WP_Upgrader::release_lock( 'auto_updater' );

OR, Simply delete the below option to release the lock.

delete_option( 'auto_updater.lock' )

or

Delete with WP CLI

wp option delete auto_updater.lock

4 thoughts on “FIx: Another update is currently in progress

    1. What issue do you have? You can simply execute below code in your wp-admin page to delete the current core update lock.

      add_action( ‘admin_head’, function() {
      delete_option( ‘core_updater.lock’ );
      });

  1. Hello Mahesh, i have a problem, my erro_log file is 300GB now and it seems there is a long line being repeated thousands of times, how can i stop this?
    Looking at the log, I am seeing it contains lines that repeat the same thing over and over again as shown below. I’ve shortened the line for brevity.

    …WP_Upgrader::create_lock, WP_Upgrader::create_lock, WP_Upgrader::create_lock, WP_Upgrader::create_lock, WP_Upgrader::create_lock, WP_Upgrader::create_lock,…

    1. It’s too late reply. I think your issue maybe resolved. But still sharing the possible solution.

      Deactivate all plugins and switch to default theme. Also check MU plugins which may cause this issue.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: