We're upgrading from Sitecore 8.1 Update 3 to Sitecore 9.1. We use Solr for xConnect search, Lucene for web site search The CM is working, but the CD is not. Got the following error message:
Server Error in '/' Application. Post condition failed Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Post condition failed Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[InvalidOperationException: Post condition failed] Sitecore.Diagnostics.Assert.ResultNotNull(T result, String message) +85 Sitecore.Configuration.DefaultFactory.GetDatabase(String name) +86 Sitecore.Configuration.DefaultFactory.GetDatabases() +121
I have this in the log file:
6948 2019:03:12 12:22:08 ERROR Error loading hook: <hook type="Sitecore.ContentSearch.Hooks.Initializer, Sitecore.ContentSearch" patch:source="Sitecore.ContentSearch.config" xmlns:patch="http://www.sitecore.net/xmlconfig/" /> Exception: System.InvalidOperationException Message: Post condition failed Source: Sitecore.Kernel at Sitecore.Diagnostics.Assert.ResultNotNull[T](T result, String message) at Sitecore.Configuration.DefaultFactory.GetDatabase(String name) at Sitecore.Configuration.DefaultFactory.GetDatabases() at Sitecore.Abstractions.FactoryWrapper.GetDatabases() at Sitecore.ContentSearch.Maintenance.EventHub.Initialize() at Sitecore.ContentSearch.Hooks.Initializer.Initialize() at Sitecore.Events.Hooks.HookManager.LoadAll()
Any idea? Thanks