Closed jessLundie closed 3 years ago
There is an additional error reported:
[03-Jun-2020 15:26:58 UTC] WordPress database error Table 'wp_wc_admin_notes' already exists for query
CREATE TABLE wp_wc_admin_notes (
note_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
type varchar(20) NOT NULL,
locale varchar(20) NOT NULL,
title longtext NOT NULL,
content longtext NOT NULL,
icon varchar(200) NOT NULL,
content_data longtext NULL default null,
status varchar(200) NOT NULL,
source varchar(200) NOT NULL,
date_created datetime NOT NULL default '0000-00-00 00:00:00',
date_reminder datetime NULL default null,
is_snoozable boolean DEFAULT 0 NOT NULL,
PRIMARY KEY (note_id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\Install::check_version, Automattic\WooCommerce\Admin\Install::install, Automattic\WooCommerce\Admin\Install::create_tables, dbDelta
I think what's happening is the wcadmin version isn't being updated correctly for some reason, possibly a race condition between the plugin and the core builds. This means that the wcadmin install steps are being performed on some requests, recreating the generate_category_lookup_table
task many times leading to the deadlock. I'm not sure how that would be causing the table creation issue though as it should only run the deltas through dbDelta
.
Still looking in to this.
@jessLundie I can't reproduce this however I think the following may help:
DELETE FROM wp_options WHERE option_name = 'woocommerce_admin_version'
This should force a run through the WooCommerce Admin install steps without a race condition, hopefully clearing up the problem.
Hi @jessLundie, has this been resolved?
Hi @becdetat - thanks so much for following up on this! We never heard back from the user on this and the ticket self-closed in June. I'm hoping that means this is solved (at least for this customer).
@jessLundie Thanks, I'll close this then :-)
Describe the bug Site is experiencing repeated deadlock errors since updating to WC 4.1.1 related to
_wc_category_lookup
.Related ticket: 2994984-zen
WP Cron Info WP Crontrol shows that
generate_category_lookup_table
is running every 10 seconds, even though it says it is "non-recurring."Running the event manually results in it returning. When you delete it, it also reappears and adds a second event:
Errors
Site Status