Title: Yoast Index Errors
Last modified: October 6, 2021

---

# Yoast Index Errors

 *  Resolved [inspry](https://wordpress.org/support/users/inspry/)
 * (@inspry)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/)
 * Hello,
 * We’re having an issue where Yoast tries to index the posts and pages on the site
   and seems to fail. It then temporarily takes down the site. These are the queries
   we see that started this:
    [⌊2021-10-06_14-20-13⌉](https://www.screencast.com/t/ZBdjFugxiFm)
 * We have even tried to run the Yoast index command through WPCLI. It sits for 
   a minute and then we end up with a generic “error establishing database connection”
   error:
    [⌊2021-10-06_14-15-54⌉](https://www.screencast.com/t/DjBKiVdR)
 * Can we get any help on this?
 * Thanks!

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14945036)
 * We are sorry to hear that you’re having trouble using Yoast SEO. It’s very odd
   that you’re seeing the ‘Error establishing a database connection.’ error when
   running `wp yoast index` command from WP-CLI.
 * It seems your current web server can’t handle the relevant request and as such,
   the database server goes down. In this case, we highly recommend you please reach
   out to your web hosting provider to see why exactly the database server is going
   down when running the relevant command.
 * Note: before running the relevant command again next time, make sure that you
   reset the Indexables tables and migrations by following the steps given below:
    - Install and activate [Yoast Test Helper](https://wordpress.org/plugins/yoast-test-helper/)
      plugin;
    - Go to Tools → Yoast Test → Yoast SEO → Reset indexables tables & migrations
      options to reset it;
    - Run SEO data optimization from the SEO → Tools page.
 * Let us know what happens next and what you find out after reaching out to your
   web hosting provider.
 *  Thread Starter [inspry](https://wordpress.org/support/users/inspry/)
 * (@inspry)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14945129)
 * Hello,
 * We went ahead and followed your steps and got stuck with another error on the
   last step when trying to run the SEO data optimizer:
    [⌊2021-10-06_15-43-56⌉](https://www.screencast.com/t/vKQ66tei)
 * Can you guide us on how to fix?
 * Thanks!
    -  This reply was modified 4 years, 8 months ago by [inspry](https://wordpress.org/support/users/inspry/).
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14945338)
 * The relevant error you’re now seeing typically occurs when the HTTP response 
   has the wrong JSON format or something else going on with the HTTP response. 
   We recommend you run the Indexables through the command line after resetting 
   the Indexables tables and migrations.
 * If running the Indexables through the command line completes it successfully,
   you could then run the SEO data optimization from the SEO → Tools page.
 *  [koreatownlosangeles](https://wordpress.org/support/users/koreatownlosangeles/)
 * (@koreatownlosangeles)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14952458)
 * How do we do that?
 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14954757)
 * [@koreatownlosangeles](https://wordpress.org/support/users/koreatownlosangeles/)
 * To run the indexable via the command line, please check this [guide](https://developer.yoast.com/features/wp-cli/reindex-indexables/#syntax).
 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14980239)
 * We are going ahead and mark this topic as resolved due to inactivity. If you 
   require any further assistance, feel free to create a new topic. Thank you!

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

The topic ‘Yoast Index Errors’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/yoast-index-errors/#post-14980239)
 * Status: resolved