After deploying to production, I'm receiving the following when I try to save a product:
Server Error in '/' Application.
Database was not shutdown cleanly. Recovery must
first be run to properly complete database operations for the previous
shutdown.
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: Microsoft.Isam.Esent.Interop.EsentDatabaseDirtyShutdownException:
Database was not shutdown cleanly. Recovery must first be run to
properly complete database operations for the previous shutdown.
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.
Stack Trace:
[EsentDatabaseDirtyShutdownException: Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown.]
Microsoft.Isam.Esent.Interop.Api.Check(Int32 err) +29
Raven.Storage.Esent.TransactionalStorage.EnsureDatabaseIsCreatedAndAttachToDatabase() +2291
Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs) +573
[InvalidOperationException: Could not open transactional storage: C:\inetpub\wwwroot\mysupportmailbox.com\www2\App_Data/RavenDatabases/uCommerce\Data]
Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs) +810
Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState transportState) +2204
Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() +449
Raven.Client.Document.DocumentStore.Initialize() +799
UCommerce.Search.RavenDB.RavenDbStoreProvider.SetupEmbeddedDocumentStore() +679
UCommerce.Search.RavenDB.RavenDbStoreProvider.GetStore() +215
UCommerce.Search.RavenDB.RavenDbRepository.Save(T document) +46
UCommerce.Search.RavenDB.RavenDbRepository.SaveMany(IEnumerable`1 documents) +313
UCommerce.Search.Indexers.RavenProductIndexer.Index(IEnumerable`1 subjects) +255
UCommerce.Extensions.CollectionExtensions.ForEach(IEnumerable`1 source, Action`1 action) +136
UCommerce.Pipelines.Search.SearchIndexerTask`1.Execute(T subject) +172
UCommerce.Pipelines.Pipeline`1.Execute(T subject) +275
[PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Catalog.ProductPipeline'. See inner exception for details.]
UCommerce.Pipelines.Pipeline`1.Execute(T subject) +513
UCommerce.Web.UI.Catalog.EditProduct.SaveButton_Clicked(Object sender, ImageClickEventArgs e) +123
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +134
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +204
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
Has anybody run into this before? Not sure what to do here... Any help is appreciated!
RavenDB Error when trying to save products
After deploying to production, I'm receiving the following when I try to save a product:
Server Error in '/' Application.
Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown.
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: Microsoft.Isam.Esent.Interop.EsentDatabaseDirtyShutdownException: Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown.
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.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
Has anybody run into this before? Not sure what to do here... Any help is appreciated!
Thanks,
Ben
Try and delete the database under /App_Data/RavenDatabases and reindex / save a product.
Thanks once again Morten!
is working on a reply...