Process fails and doesn’t recover
-
Hi Ollie, thanks for the plugin!
I have it installed on a site with >500k users. The indexing seems to get so far but then fails and stops progressing.
I’m seeing this in the debug log:[20-Oct-2024 13:24:02 UTC] Cron unschedule event error for hook: index_wp_users_for_speed_task, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":false,"args":["-populate-meta-index-roles_1",42]}
[20-Oct-2024 13:24:05 UTC] WordPress database error Failed to read auto-increment value from storage engine for query INSERT INTO wp_usermeta (user_id, meta_key) SELECT user_id, meta_key FROM (SELECT a.user_id, 'wp_iufsr:administrator' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:administrator'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'administrator', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:editor' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:editor'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'editor', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:author' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:author'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'author', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:contributor' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:contributor'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'contributor', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:subscriber' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:subscriber'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'subscriber', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:customer' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:customer'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'customer', '%')
AND b.user_id IS NULL UNION SELECT a.user_id, 'wp_iufsr:shop_manager' meta_key
FROM wp_usermeta a
LEFT JOIN wp_usermeta b
ON a.user_id = b.user_id
AND b.meta_key = 'wp_iufsr:shop_manager'
WHERE a.meta_key = 'wp_capabilities'
AND a.meta_value LIKE CONCAT('%', 'shop\\_manager', '%')
AND b.user_id IS NULL) a WHERE a.user_id >= 209999 AND a.user_id < 214999 made by include('phar:///usr/local/bin/wp/php/boot-phar.php'), include('phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php'), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->run_command_and_exit, WP_CLI\Runner->run_command, WP_CLI\Dispatcher\Subcommand->invoke, call_user_func, WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}, call_user_func, Cron_Event_Command->run, Cron_Event_Command::run_event, do_action_ref_array('index_wp_users_for_speed_task'), WP_Hook->do_action, WP_Hook->apply_filters, IndexWpUsersForSpeed\index_wp_users_for_speed_do_task, IndexWpUsersForSpeed\Task->doTaskStep, IndexWpUsersForSpeed\PopulateMetaIndexRoles->doChunk, IndexWpUsersForSpeed\Task->doQueryResetting it to “immediately, then daily” doesn’t re-trigger the indexing. The only way to get it to restart is to deactivate/reactivate, but then it starts from the beginning again and fails at a random point.
The site has WP CRON disabled and is running a server CRON every 60s. There’s no object caching installed.
Any ideas?
Many thanks in advance!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.