Skip to content

Fix "Another update is currently in progress" in WordPress

Clear the WordPress "Another update is currently in progress" message on a cPanel site and finish the core update safely. You will confirm that no update is still running, remove the stale core_updater.lock row with WP-CLI or phpMyAdmin, and fix whatever cut the first update short.

Your WordPress core update, started from Dashboard → Updates or with wp core update, stops at once with the message “Another update is currently in progress”. It usually follows an earlier update that was cut off halfway, by a PHP time limit or a full disk, and every retry since fails the same way. The message comes from a lock: a row named core_updater.lock in wp_options, the table where WordPress keeps its settings. WordPress writes that row when a core update starts and deletes it when the update ends. Check that nothing is really updating, delete the row, clear any leftover .maintenance file, and run the update again.

What you’ll accomplish

  • Confirm whether an update is still running, so you never break one that is halfway through copying files.
  • Read the lock’s timestamp and know from its age whether to wait or delete.
  • Remove the lock with WP-CLI, or with phpMyAdmin when you have no shell.
  • Rule out the two causes that keep the message alive with no lock row at all: a database that refuses writes and a stale object cache.
  • Finish the update and prove the core files match the official release.

Prerequisites

You need the cPanel login for the account that owns the site. Most steps use cPanel’s Terminal (or SSH as the account user) and WP-CLI, the wp command that runs WordPress admin tasks from a shell. Run wp --info in the site folder to check that it is installed. Step 5 covers phpMyAdmin for accounts without a shell.

The commands assume WordPress 6.x or 7.x in ~/public_html. Change the path if the site lives in an addon domain folder. Run every wp command from the site’s folder, or add --path= with the full path.

Plugin and theme updates do not take this lock, so the message always concerns a WordPress core update, whether you started it or the automatic updater did.

How it works

Every core update first asks for the lock. The diagram shows the three ways that request can end with the message you see.

Flow of the WordPress core update lock check. WordPress tries to add the core_updater.lock row. If the row is added, the update runs. If the row already exists, WordPress reads it with get_option(). If nothing can be read, because the database refused the write or the cache is stale, the result is the message Another update is currently in progress. If a timestamp is found, WordPress compares it with the current time: under 15 minutes gives the same message, 15 minutes or older deletes the old lock and retries.

The lock is created by WP_Upgrader::create_lock() in wp-admin/includes/class-wp-upgrader.php. It sends an INSERT IGNORE query straight to the database with the current Unix timestamp, the number of seconds since 1 January 1970. If the insert works, the update owns the lock.

If the row is already there, WordPress reads its value. For core updates the lock counts as valid for 15 minutes (15 * MINUTE_IN_SECONDS, so 900 seconds). A younger lock stops the update with the message. An older one is deleted, and the update takes a fresh lock. So a lock left by a crashed update clears itself on the first attempt made after those 15 minutes.

When the message outlives that window, look at the third path. If the insert fails and the read also returns nothing, WordPress stops with the same wording. That happens when the database refuses writes, for example because the server’s database disk is full or the options table is damaged. It also happens when a persistent object cache, a Redis or Memcached store that keeps option values between requests, still claims the option does not exist.

Two related pieces are worth knowing:

  • auto_updater.lock belongs to the background updater that runs from WP-Cron, the WordPress task scheduler triggered by site visits. It is valid for one hour. It never shows a message, it only makes automatic updates skip their turn.
  • .maintenance is a file WordPress drops in the site root while it copies files. Visitors see “Briefly unavailable for scheduled maintenance. Check back in a minute.” WordPress ignores the file once it is 10 minutes old, but a leftover copy is still worth removing.

Step-by-step

1. Note where the message appears. In the admin, it replaces the update log on the Dashboard → Updates screen. From WP-CLI it looks like this.

wp core update

Example output:

Updating to version 6.8.2 (en_US)...
Error: Another update is currently in progress. You may need to run `wp option delete core_updater.lock` after verifying another update isn't actually running.

Older WP-CLI releases print only the first sentence. Both forms mean the same lock.

2. Check that no update is running. Open Terminal in cPanel and list your own PHP and WP-CLI processes with their elapsed time.

ps -u "$USER" -o pid,etime,args | grep -E '[p]hp|[w]p '

Example output when an update is really running:

 48211       03:12 /opt/cpanel/ea-php83/root/usr/bin/php /usr/local/bin/wp core update

The etime column reads minutes and seconds. If you see a wp core update or a wp-cron.php run younger than 15 minutes, wait for it to finish. Lines that start with php-fpm: pool are the site’s resident PHP workers and appear even when idle, so they tell you nothing either way. Also check that nobody else on your team has an update running in the admin.

3. Read the lock and its age.

wp option get core_updater.lock

Example output:

1790689646

That number is when the lock was taken. Subtract it from the current time to get its age in seconds.

echo $(( $(date +%s) - $(wp option get core_updater.lock) ))

Example output:

1843

Read the result with these rules:

  • Under 900: a lock this young may belong to a running update. Wait 900 minus that number of seconds, then retry the update.
  • 900 or more: the lock is expired. WordPress would clear it on the next try, but deleting it now is safe once step 2 came back empty.
  • A negative number: the lock was written with a clock that ran ahead. See Troubleshooting.
  • Error: Could not get 'core_updater.lock' option. Does it exist?: there is no lock row. Skip to step 7.

Check the background updater’s lock the same way with wp option get auto_updater.lock. It only matters if automatic updates have stopped working.

4. Back up the database, then delete the lock. The export lands in your home folder, outside the web root.

wp db export ~/before-lock-delete-$(date +%F).sql

Example output:

Success: Exported to '/home/example/before-lock-delete-2026-09-29.sql'.
wp option delete core_updater.lock

Expected output:

Success: Deleted 'core_updater.lock' option.

Delete auto_updater.lock the same way only if it is more than 3,600 seconds old. wp option delete also removes the cached copy of the option, which a raw SQL DELETE does not do.

5. Without a shell, use phpMyAdmin. First find the table prefix, the few characters in front of every WordPress table name. In cPanel’s File Manager, open public_html/wp-config.php and look for the $table_prefix line. The example below uses wp8k_, so replace it with yours. In phpMyAdmin, select the site’s database, open the SQL tab and run:

SELECT option_name, option_value, FROM_UNIXTIME(option_value) AS taken_at
FROM wp8k_options
WHERE option_name IN ('core_updater.lock', 'auto_updater.lock');

taken_at shows the lock time in the database server’s time zone. If it is more than 15 minutes old and step 2 was clear, delete it.

DELETE FROM wp8k_options WHERE option_name = 'core_updater.lock';

phpMyAdmin answers 1 row affected. If it says 0 rows affected., the prefix is wrong or the row is already gone.

6. Remove a leftover .maintenance file.

cat ~/public_html/.maintenance

Example output:

<?php $upgrading = 1790689651; ?>

No such file or directory means there is nothing to remove. Otherwise, delete it:

rm ~/public_html/.maintenance

In File Manager, the file is hidden until you open Settings and tick Show Hidden Files (dotfiles). The article on clearing a stuck “Briefly unavailable” message on cPanel covers that file in depth, including how to spot a half-copied update.

7. If there was no lock row, test database writes and the cache. Add and remove a throwaway option to prove the database accepts writes.

wp option add sh_write_test 1 && wp option delete sh_write_test

Expected output:

Success: Added 'sh_write_test' option.
Success: Deleted 'sh_write_test' option.

An Error: Could not add option line, usually after a database error message, means the database is refusing writes. On a server where you have root, df -h /var/lib/mysql shows whether the database disk is full. On shared hosting, send that error to your host. Then check the tables:

wp db check

Every table should end in OK, followed by Success: Database checked. A table marked as crashed needs a repair, for example with wp db repair.

If writes work, check the object cache next.

wp cache type

Default means no persistent cache, so skip the rest of this step. Any other value, such as Redis, Memcached or Unknown, means option lookups can come from that store. Clear the two entries involved:

wp cache delete core_updater.lock options
wp cache delete notoptions options

Each prints Success: Object deleted. or Error: The object was not deleted., and the second one only means that key was not cached. If the message persists, run wp cache flush, which empties the whole cache and answers Success: The cache was flushed. Expect a few slower page loads while the cache refills.

8. Find out why the first update stopped. Otherwise the lock returns on the next update. On cPanel, PHP writes an error_log file in the folder of the script that failed, so an update started from the admin logs to wp-admin/error_log. Search both files for the usual culprits.

grep -hE 'Maximum execution time|Allowed memory size|No space left' ~/public_html/error_log ~/public_html/wp-admin/error_log 2>/dev/null | tail -n 5

Example output:

[29-Sep-2026 13:52:31 UTC] PHP Fatal error:  Maximum execution time of 300 seconds exceeded in /home/example/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 341

No output means neither log recorded one of these errors. Our guide to reading WordPress error logs explains where else cPanel keeps logs. Match what you find:

  • Maximum execution time: WordPress asks PHP for 300 seconds during a core update, but a web server or PHP-FPM timeout can still end the request sooner. Run the update from WP-CLI in step 9, because the PHP command line has no time limit by default.
  • Allowed memory size: raise memory_limit to at least 256M in cPanel’s MultiPHP INI Editor for this domain.
  • No space left, or “Could not copy files. You may have run out of disk space.”: free space or raise the quota first. The Disk Usage figure in cPanel’s Statistics panel shows how close the account is. A core update needs room for the download and the unpacked copy.
  • The admin asked for FTP “Connection Information”: WordPress cannot write its own files. List files the account user does not own with find ~/public_html ! -user "$USER" | head. No output is the goal. Anything listed needs its owner fixed by your host or with WHM’s root tools.

9. Run the update again.

wp core update

Example output:

Updating to version 6.8.2 (en_US)...
Downloading update from https://downloads.wordpress.org/release/wordpress-6.8.2-no-content.zip...
Unpacking the update...
Cleaning up files...
No old files were removed.
Success: WordPress updated successfully.

Any other Error: line is a new problem, not the lock. Read it before retrying.

Validate it works

Confirm that the files match the official release:

wp core verify-checksums

The expected output is Success: WordPress installation verifies against checksums. A list of files that “should not exist” or “doesn’t verify” means the earlier crash left a mix of versions. Rewrite the core files for the installed version with wp core download --skip-content --force --version=$(wp core version), which ends with Success: WordPress downloaded., then check again. It replaces core files only and leaves wp-content and wp-config.php alone. On a site in another language, add the locale, for example --locale=fr_CA.

Confirm that the database schema matches the new files:

wp core check-update-db

The expected output is Success: WordPress database is up to date. If it says an update is required, run wp core update-db.

Confirm the lock is gone with wp option get core_updater.lock. The “Could not get” error is the success signal here. Finally, Dashboard → Updates should show “You have the latest version of WordPress.”

Troubleshooting

The lock comes back right after you delete it. Something is starting an update. Automatic updates run from the wp_maybe_auto_update cron event. Look for a cron job in cPanel’s Cron Jobs screen or a management tool, such as WP Toolkit, that updates this site. Let it finish, or pause it while you work.

The age from step 3 is negative. The lock holds a time in the future. This often follows a clock correction, or a move from a server whose clock ran fast. WordPress treats it as fresh until the clock catches up. Delete it, then fix the clock as covered in the cURL error 28 and 60 guide.

The site shows “There has been a critical error on this website” after the update. A half-finished core update can leave files from two versions side by side. Run step 9 and the checksum check first. If the error stays, see fixing the WordPress critical error on cPanel.

wp commands fail with a database connection error. WP-CLI reads the same wp-config.php as the site. If the site itself loads, you are probably in the wrong folder. Check with pwd or pass --path=.

When this is the wrong approach

Do not delete the lock while an update is copying files. Two updates writing the same core files at once can leave a site that loads neither version.

Avoid scheduling a cron job that deletes the lock every few minutes. The lock is the only thing that stops two updates from colliding. If it keeps getting stranded, the fix is in step 8, not in removing the safety check.

On managed hosting without shell or phpMyAdmin access, send your host the lock value and its age from step 3. The WP-CLI handbook documents wp option delete and wp core update in full.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.