We are using MT 3.2.4.
We started to get error message from our website "Failed to execute async request. The supervisor is stopping, no additional scopes can be created".
Our site is hosted on an iis (on windows server 2012) in a web farm with load balancer, and we got this error message only from one of the servers.
Recycling the application pool of this webserver seemed to fix the issue.
This error message is from one specific request only (wichh uses the CreatePublishRequest method) . no errors from other request.
System.OperationCanceledException: The supervisor is stopping, no additional scopes can be created
at MassTransit.Util.TaskSupervisor.CreateScope(String tag)
at MassTransit.Util.TaskSupervisorExtensions.CreateScope(ITaskSupervisor supervisor, String tag, Func`1 afterStopped)
at MassTransit.RabbitMqTransport.Integration.RabbitMqModelCache.ModelScope..ctor(ITaskScope supervisor)
at MassTransit.RabbitMqTransport.Integration.RabbitMqModelCache.Send(IPipe`1 connectionPipe, CancellationToken cancellationToken)
at MassTransit.RabbitMqTransport.RabbitMqSendTransport.<MassTransit-Transports-ISendTransport-Send>d__6`1.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 MassTransit.Transports.PublishEndpoint.<MassTransit-IPublishEndpoint-Publish>d__8`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at MassTransit.Transports.PublishEndpoint.<MassTransit-IPublishEndpoint-Publish>d__8`1.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 MassTransit.PublishRequestClient`2.<MassTransit-IRequestClient<TRequest\,TResponse>-Request>d__5.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 My.Core.Messaging.AsyncExecutor.<ExecuteAsync>d__0`2.MoveNext()
at My.Core.Messaging.AsyncExecutor.<ExecuteAsync>d__0`2.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at My.Core.Messaging.AsyncExecutor.ExecuteAsync[TRequest,TResponse](MessageTimeoutInfo timeoutInfo, IMessage chainedMessage, TRequest request)
at MySite.<GetSpecificRequestAsync>d__3.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at GetSpecificRequestAsync(MyInput myInput, MessageTimeoutInfo timeoutInfo, IMessage chainedMessage)
at My.Core.Messaging.AsyncExecutor.<>c__DisplayClassc`2.<<ExecuteAsyncAndWait>b__b>d__e.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at My.Core.Messaging.AsyncExecutor.<>c__DisplayClassc`2.<ExecuteAsyncAndWait>b__b()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch()