Secondary index is corrupt. The database must be defragmented

ravendb

Solution

Gengzu, You probably moved the database between machines. In order to resolve the problem, you need to run:

 esentutl /d Data

From the RavenDB data directory

Problem

Problem has appeared after DB restore. How I can repair DB?

Original source