Datebase errors after update (hpos, LegacyDataCleanup, Commands out of sync)
-
Hi, since updating WP and WC, the server has exceeded resources (it has plenty of resources available that never come close to being reached) and the site has been throwing a consistent 503 error. Hosting company claims nothing changed on their end.
Every few minutes, the error logs report:
"WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_12345_options WHERE option_name = 'woocommerce_hpos_legacy_data_cleanup_in_progress' LIMIT 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\DataStores\Orders\LegacyDataCleanup->__call, call_user_func_array, Automattic\WooCommerce\Internal\DataStores\Orders\LegacyDataCleanup->maybe_reset_state, Automattic\WooCommerce\Internal\DataStores\Orders\LegacyDataCleanup->is_flag_set, get_option"
Tried clearing LiteSpeed cache, server cache, disabling plugins, all of the typical WP troubleshooting.
Site Health Critical Issues: an active PHP session was detected and the REST API encountered an error.
Something that seemed to fix it for a few minutes was the instructions here to install the repair Action Scheduler plugin… but after about 15 minutes, the errors started again and access has been restricted to constant 503 and now I’m wondering if that plugin is legit.
- You must be logged in to reply to this topic.