You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I configured the Event Bus Rebus by following the document but got exceptions when starting host service.
Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.EventBus.Rebus.AbpEventBusRebusModule, Volo.Abp.EventBus.Rebus, Version=8.3.2.0, Culture=neutral, PublicKeyToken=null: An exception was thrown while activating Volo.Abp.EventBus.Rebus.RebusDistributedEventBus -> λ:Rebus.Bus.IBus.. See the inner exception for details.
---> Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.EventBus.Rebus.RebusDistributedEventBus -> λ:Rebus.Bus.IBus.
---> System.InvalidOperationException: Error when trying to resolve default bus instance! No current message context was found (i.e. we're not currently handling a message), so the default bus was requested from the service provider (via DefaultBusInstance). If you'd like to use IBus outside of message handlers, please remember to mark one of the bus registrations as being the default bus instance by setting isDefaultBus:true in one of the calls to AddRebus.
---> Rebus.Exceptions.RebusConfigurationException: No transport has been configured! You need to call .Transport(t => t.Use***) in order to select which kind of queueing system you want to use to transport messages. If you want something lightweight (possibly for testing?) you can use .Transport(t => t.UseInMemoryTransport(...))
at Rebus.Config.RebusConfigurer.VerifyRequirements()
at Rebus.Config.RebusConfigurer.Start()
The host service is shut down when got a Rebus exception.
Regression?
No response
Known Workarounds
Need to override the default Rebus config. The default config is here.
PreConfigure<AbpRebusEventBusOptions>(options =>
{
options.InputQueueName = "eventbus";
options.Configurer = configure =>
{
// Workaround: do not need this line
// configure.Subscriptions(s => s.StoreInMemory());
configure.Transport(p =>
{
// registerSubscriptionStorage is true as default when using UseInMemoryTransport
p.UseInMemoryTransport(new InMemNetwork(), "eventbus");
});
};
});
Version
8.1.1
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
macOS
Other information
UseInMemoryTransport screenshot
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description
I configured the Event Bus Rebus by following the document but got exceptions when starting host service.
Reproduction Steps
Try to config the Rebus by following the document
Expected behavior
Host service should start normally.
Actual behavior
The host service is shut down when got a Rebus exception.
Regression?
No response
Known Workarounds
Need to override the default Rebus config. The default config is here.
Version
8.1.1
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
macOS
Other information
UseInMemoryTransport
screenshotThe text was updated successfully, but these errors were encountered: