サービスの 1 つを開始しようとすると、次のエラーが発生します。
There is no index named: RavenTimeoutPersistence/TimeoutDataSortedByTime
スタックトレース:
未処理の例外: Magnum.StateMachine.StateMachineException:
1[[NServiceBus.Hosting.Windows.WindowsHost, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc3864 79f8a226c]] during state Initial while handling OnStart ---> System.Exception: Exception when starting endpoint, error h as been logged. Reason: There is no index named: RavenTimeoutPersistence/TimeoutDataSortedByTime ---> System.InvalidOper ationException: There is no index named: RavenTimeoutPersistence/TimeoutDataSortedByTime at Raven.Client.Connection.ServerClient.DirectQuery(String index, IndexQuery query, String operationUrl, String[] inc ludes) at Raven.Client.Connection.ServerClient.<>c__DisplayClass37.<Query>b__36(String u) at Raven.Client.Connection.ServerClient.TryOperation[T](Func
Raven.Client.Connection.ServerClient.ExecuteWithReplication
[T](String メソッド、Func2 operation) at Raven.Client.Connection.ServerClient.Query(String index, IndexQuery query, String[] includes) at Raven.Client.Document.AbstractDocumentQuery
2. Raven.Client.Document.AbstractDocumentQuery でのExecuteActualQuery()
1.Raven.Client.Linq.RavenQueryProviderProcessorでの ExecuteQueryTProjection 1.Raven.Client.Linq.RavenQueryProvider での1.Execute(式式) System.Collections.Generic.List での 1.GetEnumerator() 1 コレクション) NServiceBus.Timeout.Hosting.Windows.Persistence.RavenTimeoutPersistence.GetAll() で NServiceBus.Timeout.Core.TimeoutRunner.CacheExistingTimeouts() で2.get_QueryResult()
at Raven.Client.Linq.RavenQueryProviderProcessor1.Execute(Expression expression) at Raven.Client.Linq.RavenQueryProvider
1.System.Linq.IQueryProvider.Execute(Expression expression) at Raven.Client.Linq.RavenQueryInspector
1.InsertRange(Int32 index, IEnumerable
NServiceBus.Timeout.Core.TimeoutRunner.Run() で System.Collections.Generic.List1.ForEach(Action
1 アクション) で NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start(Action startupAction) で NServiceBus.Hosting.GenericHost.Start() でc:\TeamCity\buildAgent\work\nsb.master_6\src\hosting\NServiceBus.Hosting\GenericHost.cs:34行目
ホストの構成は次のとおりです。
var container = new WindsorContainer();
container.Install(FromAssembly.This());
Configure.With()
.DefiningEventsAs(t => t.Namespace != null && t.Namespace.StartsWith("Events"))
.DefiningCommandsAs(t => t.Namespace != null && t.Namespace.StartsWith("Messages"))
.CastleWindsorBuilder(container)
.XmlSerializer()
.MsmqTransport()
.IsTransactional(true)
.IsolationLevel(IsolationLevel.ReadUncommitted)
.UnicastBus()
.RavenSagaPersister()
.RavenSubscriptionStorage()
.UseRavenTimeoutPersister()
.RunTimeoutManager()
.ForInstallationOn<NServiceBus.Installation.Environments.Windows>().Install();
このマシンには、エラーなしで実行されている他のサービスがあります。ravendb サービスを再起動しようとしました。
Nservicebus 3.2.5 の実行