Title: Database error
Last modified: April 1, 2026

---

# Database error

 *  Resolved [candreu](https://wordpress.org/support/users/candreu/)
 * (@candreu)
 * [2 months ago](https://wordpress.org/support/topic/database-error-430/)
 * I have these errors almost every day:
    - WordPress database error Commands out of sync; you can’t run this command 
      now for query SELECT option_value FROM wp_options WHERE option_name = ‘jpsq_sync_checkout’
      made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook-
      >apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\
      Sync\Dedicated_Sender::spawn_sync, Automattic\Jetpack\Sync\Queue->is_locked,
      Automattic\Jetpack\Sync\Queue->get_checkout_id
    - WordPress database error Commands out of sync; you can’t run this command 
      now for query SELECT COUNT(*) FROM wp_jetpack_sync_queue WHERE queue_id = ‘
      sync’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action,
      WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\
      Jetpack\Sync\Dedicated_Sender::spawn_sync, Automattic\Jetpack\Sync\Queue->
      size, Automattic\Jetpack\Sync\Queue\Queue_Storage_Table->get_item_count
 * Is there any important problem?
    -  This topic was modified 2 months ago by [candreu](https://wordpress.org/support/users/candreu/).
    -  This topic was modified 2 months ago by [candreu](https://wordpress.org/support/users/candreu/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-430%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jeff (a11n)](https://wordpress.org/support/users/jmills38/)
 * (@jmills38)
 * [2 months ago](https://wordpress.org/support/topic/database-error-430/#post-18873290)
 * Hi [@candreu](https://wordpress.org/support/users/candreu/),
 * These errors happen when another process on your site leaves a database query
   unfinished during shutdown, and then Jetpack Sync tries to run its own queries
   on that same connection. The errors look alarming in the log but they’re not 
   causing data loss. They can prevent Jetpack Sync from completing though, which
   would affect features like Stats.
 * We have a fix for this. You’ll need to add a small code snippet to your site 
   that resets the database connection at the start of shutdown, before Sync runs.
   The snippet and instructions for how to add it are in our troubleshooting guide
   under “Database Errors from Jetpack Sync”: [https://jetpack.com/support/getting-started-with-jetpack/fixing-jetpack-connection-issues/](https://jetpack.com/support/getting-started-with-jetpack/fixing-jetpack-connection-issues/)
 * I also noticed you’re running LiteSpeed Cache alongside Jetpack. There are a 
   few documented interactions between the two worth being aware of: [https://jetpack.com/support/getting-started-with-jetpack/known-issues/](https://jetpack.com/support/getting-started-with-jetpack/known-issues/)
 * Let us know if the snippet helps.
 *  Plugin Support [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * (@tamirat22)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/database-error-430/#post-18882641)
 * Hello [@candreu](https://wordpress.org/support/users/candreu/),
 * It’s been one week since this topic was last updated. I’m going to mark this 
   thread as solved. If you have any further questions or need more help, you’re
   welcome to open another thread here. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-error-430%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 2 replies
 * 3 participants
 * Last reply from: [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * Last activity: [1 month, 2 weeks ago](https://wordpress.org/support/topic/database-error-430/#post-18882641)
 * Status: resolved