数据库的最后一致时间无与伦比

时间:2014-10-19 23:20:33

标签: ravendb

当我设置使用RavenDB的网站时,它显示“数据库上次一致时间不匹配”例外。

我检查了RavenDB的权限和安全性,这是正确的。

还有其他潜在原因导致RavenDB无法打开数据库吗?

  

数据库上次一致时间不匹配

     

描述:执行期间发生了未处理的异常   当前的网络请求。请查看堆栈跟踪了解更多信息   有关错误的信息以及它在代码中的起源。

     

异常详细信息:   Microsoft.Isam.Esent.Interop.EsentConsistentTimeMismatchException:   数据库上次一致时间不匹配

     

来源错误:

     

执行期间生成了未处理的异常   当前的网络请求。有关的来源和位置的信息   可以使用下面的异常堆栈跟踪来识别异常。

     

堆栈追踪:

     

[EsentConsistentTimeMismatchException:数据库上次一致时间   无与伦比]
  Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator   uuidGenerator,OrderedPartCollection`1 documentCodecs)+561

     

[InvalidOperationException:无法打开事务存储:   C:\的Inetpub \ wwwroot的\ officecore.web \网站\ App_Data文件/ RavenDatabases / uCommerce \数据]   Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator   uuidGenerator,OrderedPartCollection 1 documentCodecs) +810
Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState transportState) +2056
Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() +449 Raven.Client.Document.DocumentStore.Initialize() +797 UCommerce.Search.RavenDB.RavenDbStoreProvider.SetupEmbeddedDocumentStore() +675 UCommerce.Search.RavenDB.RavenDbStoreProvider.GetStore() +231 UCommerce.Search.RavenDB.RavenFacetedSearch.Query() +105
Castle.Proxies.Invocations.SearchLibraryInternal_FacetedQuery.InvokeMethodOnTarget() +37 Castle.DynamicProxy.AbstractInvocation.Proceed() +116 UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation) +625 Castle.DynamicProxy.AbstractInvocation.Proceed() +595 Castle.Proxies.SearchLibraryInternalProxy.FacetedQuery() +154 Officecore.Website.code.DataRepositories.ProductRepository.SearchProducts(String searchterm, IList
1 facetList,List 1& products) in c:\inetpub\wwwroot\officecore\officecore.web\Website\code\DataRepositories\ProductRepository.cs:210 Officecore.Website.code.DataRepositories.ProductRepository.SearchFacets(String searchterm, IList 1 facetList,List`1&产品)   C:\的Inetpub \ wwwroot的\ officecore \ officecore.web \网站\代码\ DataRepositories \ ProductRepository.cs:189   Officecore.Website.layouts.Officecore.Controls.Desktop.Desktop_Search_Facets.Page_Load(对象   发件人,EventArgs e)in   C:\的Inetpub \ wwwroot的\ officecore \ officecore.web \网站\布局\ Officecore \控制\桌面\产品\桌面检索用Facets.ascx.cs:57   System.Web.UI.Control.LoadRecursive()+71
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Control.LoadRecursive()+190
  System.Web.UI.Page.ProcessRequestMain(布尔   includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)   3178

1 个答案:

答案 0 :(得分:0)

如果您收到此消息,则可能是该数据库已损坏。

要解决此问题,请尝试在数据库文件夹中运行此脚本,其中RVN是logs文件夹中日志文件的名称:

Esentutl /r RVN /l logs /i