I'm not sure how I got to the following situation. There were no configuration changes since last work with subscriptions when the subscriptions worked correctly. The issue first occurred with
Build 40, Version 4.0, SemVer 4.0.0-nightly-20170929-0401, Commit 4fd682b and persists with the latest nightly (
Build 40, Version 4.0, SemVer 4.0.0-nightly-20171016-0400, Commit 4a4e831).
When trying to open a subscription, it fails with the following exception (it's trying to redirect to null or empty string):
Subscription With Id '32' cannot be processed by current node, it will be redirected to
at Raven.Client.Documents.Subscriptions.Subscription`1.AssertConnectionState(SubscriptionConnectionServerMessage connectionStatus)
at Raven.Client.Documents.Subscriptions.Subscription`1.<ProcessSubscriptionAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Raven.Client.Documents.Subscriptions.Subscription`1.<RunSubscriptionAsync>d__36.MoveNext()
When I try to open Settings - Manage Ongoing Tasks on the database, the call to /databases/data-subset/tasks fails and the following error is shown:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at Raven.Client.Http.ClusterTopology.GetUrlFromTag(String tag) in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Client\Http\ClusterTopology.cs:line 82
at Raven.Server.Web.System.OngoingTasksHandler.<CollectSubscriptionTasks>d__2.MoveNext() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Web\System\OngoingTasksHandler.cs:line 92
at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Raven.Server.Web.System.OngoingTasksHandler.GetOngoingTasksFor(String dbName, ServerStore store) in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Web\System\OngoingTasksHandler.cs:line 61
at Raven.Server.Web.System.OngoingTasksHandler.GetOngoingTasks() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Web\System\OngoingTasksHandler.cs:line 31
at Raven.Server.Routing.RequestRouter.<HandlePath>d__5.MoveNext() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\Routing\RequestRouter.cs:line 107
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()
at Raven.Server.RavenServerStartup.<RequestHandler>d__11.MoveNext() in C:\Builds\RavenDB-4.0-Nightly\src\Raven.Server\RavenServerStartup.cs:line 157
It seems that the error in /databases/.../tasks didn't occur before trying to create the subscription. What I did:
- Tried to process some documents in the data-subset database. Failed with the error above.
- Tried to access Settings - Manage Ongoing Tasks for data-subset. Failed with the error above.
- Tried to access Settings - Manage Ongoing Tasks for database data-prod. The screen worked successfully.
- Tried to process the documents in the data-prod database. Failed with the error above.
- Subsequent opening of Settings - Manage Ongoing Tasks for data-prod fails with the same error.
Any suggestions about how could I find out what causes this error? The server runs standalone, without other servers.