Skip to content

Instantly share code, notes, and snippets.

@jeremiahsnapp
jeremiahsnapp / gist:dcbcebf600a0a535491dc3ae4910a1e1
Last active March 22, 2017 19:37
Reconciling Chef Server database and Solr index inconsistencies

Sometimes a database object can get deleted but the Solr index entry will remain.

This can cause problems such as infinite Chef Search API request loops (for knife and I believe for Manage).

The following procedure identifies remaining index entries and provides a way to delete them.

# set the name of the organization you are interested in
export ORG_NAME=demo