All projections hanging is status Preparing

$by_category
Preparing
Continuous
0.0%
0 / 0
0 / 0
0
0.0
0
0
$by_event_type
Preparing
Continuous
0.0%
0 / 0
0 / 0
0
0.0
0
0
$stream_by_category
Preparing
Continuous
0.0%
0 / 0
0 / 0
0
0.0
0
0
$streams
Preparing
Continuous
0.0%
0 / 0
0 / 0
0
0.0
0
0
All my projections are in preparing status.

I can neither stop nor delete them.

What could be the problem?

Are you running a cluster of nodes?

Yes. 5 nodes

Do you have logs for the nodes that you are able to share?
Interim fix would be to restart the master node. This is by no means a real solution, however as we move projections from beta into production, which is the current focus, this issue will be addressed.

Regarding logs, It’s gonna take a while. Like one hour.

What are the conditions when this may happen?
We are in the process of moving to production, and I need to know how to react, and what not to do.
Projections aren’t going to change often. So I need them up and running.

Projections are currently in beta and not supported in production.
Unfortunately there are a couple of scenarios were projections can end up being stuck in preparing like this.

For now, until we release a fix for this specific issue you can write a service that just checks the status of projections and curl -i http://localhost:2113/projections/any and if they are stuck in preparing, you can kill the master node, which will resolve the issue.

Unfortunately as of now I cannot give you a better answer.

Have you considered getting a support contract?

Here are the logs from master node (rebooting actually helped)
[PID:00850:034 2016.02.08 15:37:51.158 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #2’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:032 2016.02.08 15:37:51.158 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #0’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:034 2016.02.08 15:37:51.161 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #2’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:032 2016.02.08 15:37:51.161 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #0’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:032 2016.02.08 15:37:51.161 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #0’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:033 2016.02.08 15:37:51.356 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #1’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:033 2016.02.08 15:37:51.356 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe in queued handler ‘Projection Core #1’.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.Collections.Generic.Dictionary`2[System.Guid,System.Guid].get_Item (Guid key) [0x00000] in :0

at EventStore.Projections.Core.Services.Processing.EventReaderCoreService.Handle (EventStore.Projections.Core.Messages.Unsubscribe message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ReaderSubscriptionManagement+Unsubscribe].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 08:49:16.559 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+UpdateQuery in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.UpdateQuery message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.UpdateQuery message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+UpdateQuery].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 08:49:19.273 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Reset in queued handler ‘Projections Master’.

System.ApplicationException: Internal error: projection definition must be saved before forced updating version

at EventStore.Projections.Core.Services.Management.ManagedProjection.UpdateProjectionVersion (Boolean force) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.ResetProjection () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.DoReset1 () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Reset message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Reset message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Reset].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:30.155 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Enable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Enable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Enable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Enable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.428 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.428 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.428 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.428 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.428 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:38.429 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:48.566 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:01:48.566 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:02:17.510 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

[PID:00850:031 2016.02.09 09:02:19.182 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable in queued handler ‘Projections Master’.

System.NotSupportedException: Operation is not supported.

at EventStore.Projections.Core.Services.Management.ManagedProjection.StopUnlessPreparedOrLoaded () [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ManagedProjection.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Projections.Core.Services.Management.ProjectionManager.Handle (EventStore.Projections.Core.Messages.Disable message) [0x00000] in :0

at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messages.ProjectionManagementMessage+Command+Disable].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0

at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0

``

I believe this issue has been resolved in a branch and will be merged (quite a few of the preparing state problems have been)

We’re seeing this problem now in 4.0.1.0. no error logs. We restarted the server yesterday and the projections have been stuck in the “Preparing” state ever since. New events appear to still be coming in, just no projections which breaks our query model.

Hey Denny, I highly suggest upgrading to 4.0.3. For us it solved the preparing issue (now it properly will commit timeout and fault if it fails to prepare/run for a given time) instead of relying on the old “restart the master and hope for the best” trick.

I’m still seeing this in 4.1.0.0