Database was not shut down cleanly - recovery is required
Published 07 August 2013
Deployment Manager runs on the RavenDB database. This has been corrupted because the Deployment Manager service did not shutdown cleanly. To fix this, use the command line tool esentutl to recover the database:
From an administrative command prompt on the Deployment Manager server, run the following command:
esentutl /r RVN /d"<Deployment Manager data directory>" /l"<Deployment Manager log directory>" /s"<Deployment Manager system data directory>"
Default locations for Deployment Manager database directories:
Deployment Manager data directory: C:\ProgramData\Red Gate\DeploymentManager\Data\Data
Deployment Manager log directory: C:\ProgramData\Red Gate\DeploymentManager\Data\Logs
Deployment Manager system data directory: C:\ProgramData\Red Gate\DeploymentManager\Data\system
So the command, assuming the default locations, is:
esentutl /r RVN /d"C:\ProgramData\Red Gate\DeploymentManager\Data\Data" /l"C:\ProgramData\Red Gate\DeploymentManager\Data\Logs" /s"C:\ProgramData\Red Gate\DeploymentManager\Data\system"
Once this command has completed successfully, you will need to restart the Red Gate Deployment Manager service.