LoginSignup
3
0

More than 5 years have passed since last update.

WP-CLIでwp core updateした時に「Error: Another update is currently in progress.」が出た場合の対応方法

Posted at

ブラウザからアップデート失敗して、WP-CLIからリトライしたい時とかに遭遇します。

$ wp core update
Updating to version 4.7 (en_US)...
Error: Another update is currently in progress.

あちこちからアップデート処理実行されたら大変なので、1アップデートを同時に実行できないようロックする処理があるようです。

でそのロック方法ですが、wp_optionsテーブルにcore_updater.lockというオプションが追加されています。
この値が入っている場合、コアのアップデートが実施できない状態になっていますので、どうしてもリトライしたいという時は以下のようにして削除してください。

$ wp option delete core_updater.lock

もちろん、ロックされているものを解除してリトライするわけなので、何かしらのトラブルに遭遇する覚悟はした上での実行をオススメします。

3
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0