I have discovered that a few nodes are not appearing in my search index. I have checked the status of my search index via the GUI and drush and found that 7 items out of 3,236 still to be indexed. When I try to index the remaining items, I get a message that the indexing stalled. I have checked one of the nodes that I know for sure to be one of the seven and I don't see any obvious problems with it (like being authored by a user account that has been deleted).

manh8@ded-14785:/var/www/html/manh8.prod/docroot$ drush search-status
There are 7 items out of 3236 still to be indexed.
manh8@ded-14785:/var/www/html/manh8.prod/docroot$ drush search-index
99.78 complete. Remaining items to be indexed: 7                                                                                                                                            [ok]
99.78 complete. Remaining items to be indexed: 7                                                                                                                                            [ok]
99.78 complete. Remaining items to be indexed: 7                                                                                                                                            [ok]
Indexing stalled with 7 items remaining.                                                                                                                                                    [error]
The search index has been built.   

Drupal 8.1.10
Webserver: Acquia
PHP: 5.6.24

Comments

goodwillhinton created an issue. See original summary.

cilefen’s picture

Looking at the drush source code, "Indexing stalled" is something drush says when the remaining items don't change after invoking "update_index" three times.

module_invoke_all('update_index');

It's not a Drupal concept as such. That's not an answer, just some more data.

cilefen’s picture

cilefen’s picture

I would start debugging in NodeSearch.

Version: 8.1.10 » 8.1.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.1.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Bug Smash Initiative

@goodwillhinton, did you find a solution to this search problem? If so, what did you do? Or, can you provide steps to reproduce the issue (starting from "Install Drupal core")?

Changing status since we need more information to work on this.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

borisson_’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I think it is unclear how to reproduce this and no one else seems to have encountered this issue. Closing this issue