Project

General

Profile

Actions

Bug #21886

open

Diagnose problems with action_scheduler tables

Added by Boone Gorges 13 days ago. Updated 2 days ago.

Status:
New
Priority name:
Normal
Assignee:
Category name:
-
Target version:
Start date:
2025-01-27
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

During the Reclaim migration, we had some problems with database replication. These problems seem to stem from tables related to the action_scheduler library that's used by a number of WP plugins. Log output from Reclaim:

Jan 09 18:08:20 node15377-cunyacprod-1.us.reclaim.cloud mariadbd[110663]: 2025-01-09 18:08:20 1131900 [ERROR] InnoDB: Refusing to load './wp_1153337/wp_site.ibd' (id=10514, flags=0x15); dictionary contains id=10504, flags=0x15
Jan 09 18:08:20 node15377-cunyacprod-1.us.reclaim.cloud mariadbd[110663]: 2025-01-09 18:08:20 1131900 [ERROR] InnoDB: Could not find a valid tablespace file for wp_1153337/wp_site. Please refer to https://mariadb.com/kb/en/innodb-data-dictionary-troubleshooting/ for how to resolve the issue.
Jan 09 18:08:55 node15377-cunyacprod-1.us.reclaim.cloud mariadbd[110663]: 2025-01-09 18:08:55 1131941 [ERROR] InnoDB: Refusing to load './wp_1153337/wp_7971_actionscheduler_groups.ibd' (id=488990, flags=0x15); dictionary contains id=488979, flags=0x15
Jan 09 18:08:55 node15377-cunyacprod-1.us.reclaim.cloud mariadbd[110663]: 2025-01-09 18:08:55 1131941 [ERROR] InnoDB: Could not find a valid tablespace file for wp_1153337/wp_7971_actionscheduler_groups. Please refer to https://mariadb.com/kb/en/innodb-data-dictionary-troubleshooting/ for how to resolve the issue.

Examining some problematic tables, you can see that MySQL thinks that they exist, but it's not possible to access them due to "tablespace is missing" errors:

MariaDB [wp_1153337]> check table wp_10360_actionscheduler_groups;
+--------------------------------------------+-------+----------+------------------------------------------------------------------------------+
| Table                                      | Op    | Msg_type | Msg_text                                                                     |
+--------------------------------------------+-------+----------+------------------------------------------------------------------------------+
| wp_1153337.wp_10360_actionscheduler_groups | check | Warning  | Tablespace is missing for table 'wp_1153337/wp_10360_actionscheduler_groups' |
| wp_1153337.wp_10360_actionscheduler_groups | check | Error    | Got error 194 "Tablespace is missing for a table" from storage engine InnoDB |
| wp_1153337.wp_10360_actionscheduler_groups | check | error    | Corrupt                                                                      |
+--------------------------------------------+-------+----------+------------------------------------------------------------------------------+
3 rows in set (0.000 sec)

MariaDB [wp_1153337]> select count(*) from wp_10360_actionscheduler_groups;
ERROR 1030 (HY000): Got error 194 "Tablespace is missing for a table" from storage engine InnoDB
MariaDB [wp_1153337]> show tables like 'wp_10360_%';
+-----------------------------------+
| Tables_in_wp_1153337 (wp_10360_%) |
+-----------------------------------+
| wp_10360_actionscheduler_actions  |
| wp_10360_actionscheduler_claims   |
| wp_10360_actionscheduler_groups   |
| wp_10360_actionscheduler_logs     |
| wp_10360_commentmeta              |
| wp_10360_comments                 |
| wp_10360_links                    |
| wp_10360_options                  |
| wp_10360_postmeta                 |
| wp_10360_posts                    |
| wp_10360_term_relationships       |
| wp_10360_term_taxonomy            |
| wp_10360_termmeta                 |
| wp_10360_terms                    |
+-----------------------------------+
14 rows in set (1.034 sec)

We need to track down the issue and figure out a way to patch the plugins using actionscheduler so that this does not happen in the future, because currently it's breaking the entire replication process.

Actions

Also available in: Atom PDF