Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Bobby 1 year, 7 months ago.

Assisted by: Bobby.

Author Posts
June 8, 2023 at 10:30 am #13792191

xiaoweiX

Hi,

Ever since we activated wpml on our site, we have seen increased frequency of database deadlocks. e.g.

[Thu Jun 08 18:16:40.822766 2023] [php7:notice] [pid 16833] [client 172.71.210.164:12610] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query UPDATE wp_actionscheduler_actions SET attempts = attempts+1, status='in-progress', last_attempt_gmt = '2023-06-08 10:16:40', last_attempt_local = '2023-06-08 18:16:40' WHERE action_id = 1137512 made by do_action('wp_ajax_nopriv_as_async_request_queue_runner'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Async_Request->maybe_handle, ActionScheduler_AsyncRequest_QueueRunner->handle, do_action('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_Abstract_QueueRunner->process_action, ActionScheduler_DBStore->log_execution

I searched for a solution and landed on this thread: https://wpml.org/forums/topic/wordpress-database-error-deadlock-found-when-trying-to-get-lock-7/

which is marked resolved. I wonder what was the working fix?

Thanks
Shawn

June 8, 2023 at 10:08 pm #13796153

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Did you recently migrate this site by any chance?

Go to WPML->Support->Troubleshooting-> Clear the Cache in WPML

Do you currently have any drop-in plugins? Such as CDN-cache for example.

June 9, 2023 at 12:59 pm #13799697

xiaoweiX

Hi,

No, site is not recently migrated.

Done Clear WPML Cache.

Only one drop-in plugin, advanced-cache.php - which is provided by WPRocket.

June 9, 2023 at 4:21 pm #13801083

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Did the troubleshooting action help?

Is the deadlock happening a few moments after WPMl is activated or do we need to perform an action to reproduce it?

Deactivate WPML and it's add-on plugins -> delete and re install with a fresh version from https://wpml.org/downloads/

Let me know your results, please.

The topic ‘[Closed] database deadlock’ is closed to new replies.