SignalR.Orleans icon indicating copy to clipboard operation
SignalR.Orleans copied to clipboard

Extension not installed on grain

Open stephenlautier opened this issue 4 years ago • 6 comments

I'm not entirely sure if something has changed or why is this happening. However, we recently are getting the following. Any ideas?

Extension not installed on grain SignalR.Orleans.Groups.GroupGrain attempting to invoke type Orleans.Streams.OrleansCodeGenStreamConsumerExtensionMethodInvoker from invokable Orleans.Runtime.ActivationData

Source: Orleans.Runtime

Stacktrace:

 at Orleans.Runtime.InsideRuntimeClient.Invoke(IAddressable target, IInvokable invokable, Message message)
   at Orleans.OrleansTaskExtentions.<ToTypedTask>g__ConvertAsync|4_0[T](Task`1 asyncTask)
   at Orleans.Providers.Streams.SimpleMessageStream.SimpleMessageStreamProducerExtension.StreamConsumerExtensionCollection.DeliverToRemote(IStreamConsumerExtension remoteConsumer, StreamId streamId, GuidId subscriptionId, Object item, Boolean optimizeForImmutableData, Boolean fireAndForgetDelivery)
   at Orleans.Providers.Streams.SimpleMessageStream.SimpleMessageStreamProducer`1.OnNextAsync(T item, StreamSequenceToken token)
   at SignalR.Orleans.Clients.ClientGrain.OnDisconnect()
   at SignalR.Orleans.Clients.OrleansCodeGenClientGrainMethodInvoker.Invoke(IAddressable grain, InvokeMethodRequest request)
   at Orleans.Runtime.GrainMethodInvoker.Invoke()
   at Odin.Orleans.Logging.LoggingIncomingCallFilter.Invoke(IIncomingGrainCallContext context)
   at Orleans.Runtime.GrainMethodInvoker.Invoke()
   at Odin.Orleans.Error.UnknownErrorIncomingCallFilter.Invoke(IIncomingGrainCallContext context)
   at Orleans.Runtime.GrainMethodInvoker.Invoke()
   at Orleans.Runtime.InsideRuntimeClient.Invoke(IAddressable target, IInvokable invokable, Message message)
   at SignalR.Orleans.OrleansHubLifetimeManager`1.OnDisconnectedAsync(HubConnectionContext connection)
   at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection)
   at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteApplication(ConnectionDelegate connectionDelegate, HttpConnectionContext connection)
   at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully)
   at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully)
   at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully)

stephenlautier avatar Jul 10 '19 14:07 stephenlautier

THat is weird... Can you come down to gitter? would like to debug it...

galvesribeiro avatar Jul 10 '19 14:07 galvesribeiro

It seems i've got the same issue. Did you ever find a solution to this? Exception seems to be the same as above, or very similar at least.

emilekberg avatar Oct 17 '19 13:10 emilekberg

@emilekberg Recently it seems ok.. few weeks ago we were still having it tho.

Last thing we've changed is, we updated to latest of this lib, but we are still on 2.3.5 orleans

stephenlautier avatar Oct 17 '19 16:10 stephenlautier

@emilekberg actually it seems it still happens, much less in frequency but it does happen

stephenlautier avatar Oct 18 '19 15:10 stephenlautier

Did you find a solution for this? I see the same exceptions unfortunately.

Edit: Anyone who is having this issue: Try using this fork mentioned in this issue. This seems to have fixed it for me. Thanks @stephenlautier

digisimon avatar Feb 06 '21 17:02 digisimon

@digisimon im glad that worked for you! We do have several fixes/improvements in our fork; we will need to contribute back to this at some point

stephenlautier avatar Feb 07 '21 14:02 stephenlautier