Hi, I am trying to run ElsaDemoApp downloaded from documentation, i intalled Rabitq service and its running. But when trying to run application i am getting error in server.exe
RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed, host 127.0.0.1:5672) ---> RabbitMQ.Client.Exceptions.ConnectFailureException: Connection failed, host 127.0.0.1:5672 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at RabbitMQ.Client.Impl.SocketFactory.ConnectUsingAddressFamilyAsync(IPEndPoint endpoint, Func
2 socketFactory, AddressFamily family, TimeSpan connectionTimeout, CancellationToken cancellationToken) --- End of inner exception stack trace --- at RabbitMQ.Client.Impl.SocketFactory.ConnectUsingAddressFamilyAsync(IPEndPoint endpoint, Func2 socketFactory, AddressFamily family, TimeSpan connectionTimeout, CancellationToken cancellationToken) at RabbitMQ.Client.Impl.SocketFactory.OpenAsync(AmqpTcpEndpoint amqpTcpEndpoint, Func2 socketFactory, TimeSpan connectionTimeout, CancellationToken cancellationToken) at RabbitMQ.Client.Impl.SocketFrameHandler.CreateAsync(AmqpTcpEndpoint amqpTcpEndpoint, Func2 socketFactory, TimeSpan connectionTimeout, CancellationToken cancellationToken) at RabbitMQ.Client.ConnectionFactory.CreateFrameHandlerAsync(AmqpTcpEndpoint endpoint, CancellationToken cancellationToken) at RabbitMQ.Client.EndpointResolverExtensions.SelectOneAsync[T](IEndpointResolver resolver, Func3 selector, CancellationToken cancellationToken) --- End of inner exception stack trace --- at RabbitMQ.Client.EndpointResolverExtensions.SelectOneAsync[T](IEndpointResolver resolver, Func3 selector, CancellationToken cancellationToken) at RabbitMQ.Client.ConnectionFactory.CreateConnectionAsync(IEndpointResolver endpointResolver, String clientProvidedName, CancellationToken cancellationToken) --- End of inner exception stack trace --- at RabbitMQ.Client.ConnectionFactory.CreateConnectionAsync(IEndpointResolver endpointResolver, String clientProvidedName, CancellationToken cancellationToken) at Volo.Abp.RabbitMQ.ConnectionPool.GetConnectionAsync(String connectionName, ConnectionFactory connectionFactory) at Volo.Abp.RabbitMQ.ConnectionPool.GetAsync(String connectionName) at Volo.Abp.RabbitMQ.RabbitMqMessageConsumer.TryCreateChannelAsync() [16:04:22 INF] Initialized all ABP modules. [16:04:22 INF] Starting ElsaDemoApp. [16:04:30 ERR] The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176, command=HMGET, timeout: 5000, inst: 0, qu: 1, qs: 0, aw: False, bw: CheckingForTimeout, rs: NotStarted, ws: Idle, in: 0, last-in: 0, cur-in: 0, sync-ops: 0, async-ops: 3, serverEndpoint: 127.0.0.1:6379, conn-sec: n/a, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: VBI-VDI-00HK(SE.Redis-v2.7.27.49176), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=8,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7), v: 2.7.27.49176 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) StackExchange.Redis.RedisConnectionException: The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176, command=HMGET, timeout: 5000, inst: 0, qu: 1, qs: 0, aw: False, bw: CheckingForTimeout, rs: NotStarted, ws: Idle, in: 0, last-in: 0, cur-in: 0, sync-ops: 0, async-ops: 3, serverEndpoint: 127.0.0.1:6379, conn-sec: n/a, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: VBI-VDI-00HK(SE.Redis-v2.7.27.49176), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=8,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7), v: 2.7.27.49176 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) ---> StackExchange.Redis.RedisConnectionException: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176 --- End of inner exception stack trace --- at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefreshAsync(String key, Boolean getData, CancellationToken token) at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token) at Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.GetStringAsync(IDistributedCache cache, String key, CancellationToken token) at Volo.Abp.FeatureManagement.StaticFeatureSaver.SaveAsync() at Volo.Abp.FeatureManagement.StaticFeatureSaver.SaveAsync() at Volo.Abp.FeatureManagement.FeatureDynamicInitializer.<>c__DisplayClass10_0.<<SaveStaticFeaturesToDatabaseAsync>b__1>d.MoveNext() --- End of stack trace from previous location --- at Polly.AsyncPolicy.<>c__DisplayClass44_0.<<ImplementationAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) [16:04:30 ERR] The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176, command=HMGET, timeout: 5000, inst: 0, qu: 0, qs: 0, aw: False, bw: CheckingForTimeout, rs: NotStarted, ws: Idle, in: 0, last-in: 0, cur-in: 0, sync-ops: 0, async-ops: 3, serverEndpoint: 127.0.0.1:6379, conn-sec: n/a, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: VBI-VDI-00HK(SE.Redis-v2.7.27.49176), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=3,Free=32764,Min=8,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7), v: 2.7.27.49176 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) StackExchange.Redis.RedisConnectionException: The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176, command=HMGET, timeout: 5000, inst: 0, qu: 0, qs: 0, aw: False, bw: CheckingForTimeout, rs: NotStarted, ws: Idle, in: 0, last-in: 0, cur-in: 0, sync-ops: 0, async-ops: 3, serverEndpoint: 127.0.0.1:6379, conn-sec: n/a, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: VBI-VDI-00HK(SE.Redis-v2.7.27.49176), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=3,Free=32764,Min=8,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7), v: 2.7.27.49176 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) ---> StackExchange.Redis.RedisConnectionException: UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 2s ago, v: 2.7.27.49176 --- End of inner exception stack trace --- at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefreshAsync(String key, Boolean getData, CancellationToken token) at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token) at Microsoft.Extensions.Caching.Distributed.DistributedCacheExtensions.GetStringAsync(IDistributedCache cache, String key, CancellationToken token) at Volo.Abp.PermissionManagement.StaticPermissionSaver.SaveAsync() at Volo.Abp.PermissionManagement.StaticPermissionSaver.SaveAsync() at Volo.Abp.PermissionManagement.PermissionDynamicInitializer.<>c__DisplayClass10_0.<<SaveStaticPermissionsToDatabaseAsync>b__1>d.MoveNext() --- End of stack trace from previous location --- at Polly.AsyncPolicy.<>c__DisplayClass44_0.<<ImplementationAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) [16:04:30 ERR] ---------- Exception Data ---------- Redis-Message = HMGET _ElsaDemoApp.Server_AbpPermissionsHash Redis-Timeout = 5000 Redis-OpsSinceLastHeartbeat = 0 Redis-Queue-Awaiting-Write = 0 Redis-Queue-Awaiting-Response = 0 Redis-Active-Writer = False Redis-Backlog-Writer = CheckingForTimeout Redis-Read-State = NotStarted Redis-Write-State = Idle Redis-Inbound-Bytes = 0 Redis-Last-Result-Bytes = 0 Redis-Inbound-Buffer-Bytes = 0 Redis-Sync-Ops = 0 Redis-Async-Ops = 3 Redis-Server-Endpoint = 127.0.0.1:6379 Redis-Server-Connected-Seconds = n/a Redis-Abort-On-Connect = 0 Redis-Multiplexer-Connects = 1/1/0 Redis-Manager = 10 of 10 available Redis-Client-Name = VBI-VDI-00HK(SE.Redis-v2.7.27.49176) Redis-ThreadPool-IO-Completion = (Busy=0,Free=1000,Min=1,Max=1000) Redis-ThreadPool-Workers = (Busy=3,Free=32764,Min=8,Max=32767) Redis-ThreadPool-Items = (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7) Redis-Busy-Workers = 3 Redis-Version = 2.7.27.49176 redis-command = HMGET _ElsaDemoApp.Server_AbpPermissionsHash request-sent-status = WaitingInBacklog redis-server = 127.0.0.1:6379
[16:04:30 ERR] ---------- Exception Data ---------- Redis-Message = HMGET _ElsaDemoApp.Server_AbpFeaturesHash Redis-Timeout = 5000 Redis-OpsSinceLastHeartbeat = 0 Redis-Queue-Awaiting-Write = 1 Redis-Queue-Awaiting-Response = 0 Redis-Active-Writer = False Redis-Backlog-Writer = CheckingForTimeout Redis-Read-State = NotStarted Redis-Write-State = Idle Redis-Inbound-Bytes = 0 Redis-Last-Result-Bytes = 0 Redis-Inbound-Buffer-Bytes = 0 Redis-Sync-Ops = 0 Redis-Async-Ops = 3 Redis-Server-Endpoint = 127.0.0.1:6379 Redis-Server-Connected-Seconds = n/a Redis-Abort-On-Connect = 0 Redis-Multiplexer-Connects = 1/1/0 Redis-Manager = 10 of 10 available Redis-Client-Name = VBI-VDI-00HK(SE.Redis-v2.7.27.49176) Redis-ThreadPool-IO-Completion = (Busy=0,Free=1000,Min=1,Max=1000) Redis-ThreadPool-Workers = (Busy=2,Free=32765,Min=8,Max=32767) Redis-ThreadPool-Items = (Threads=7,QueuedItems=0,CompletedItems=164,Timers=7) Redis-Busy-Workers = 2 Redis-Version = 2.7.27.49176 redis-command = HMGET _ElsaDemoApp.Server_AbpFeaturesHash request-sent-status = WaitingInBacklog redis-server = 127.0.0.1:6379
Service is running checked PM> Get-Service -Name "RabbitMQ"
Status Name DisplayName
Running RabbitMQ RabbitMQ
PM>
I updated all the packages from nuget in downloaded project.
Can you help me with this so that i can run and understand the elsa module working.
5 Answer(s)
-
0
- Your log shows two separate connectivity problems while starting
ElsaDemoApp.Server:- RabbitMQ connection refused:
127.0.0.1:5672 - Redis connection timeout/unreachable:
127.0.0.1:6379
- RabbitMQ connection refused:
1) Fix RabbitMQ (5672)
- Ensure the RabbitMQ broker is actually listening on port 5672 (the Windows service being “Running” doesn’t always guarantee the listener is reachable).
- Ensure your
ElsaDemoApp.Serverconfiguration points to the correct host/port and credentials.
In
ElsaDemoApp.Server/appsettings.json(or the environment-specific variant), ensure you have a correct RabbitMQ section similar to:"RabbitMQ": { "Connections": { "Default": { "HostName": "localhost", "Port": "5672" } } }If your RabbitMQ uses non-default credentials, also set
UserName/Password(ABP reads RabbitMQ connection settings from configuration).2) Fix Redis (6379) OR disable Redis for local run
Your startup fails later because ABP is trying to use Redis distributed cache at
127.0.0.1:6379:- If you want to use Redis: install/run Redis and make sure it listens on 6379.
- If you don’t want Redis for local demo: remove/disable Redis caching configuration so the app falls back to in-memory distributed cache (common for single-node local dev).
If Redis is enabled in config, verify something like this in
appsettings.json:"Redis": { "IsEnabled": "true", "Configuration": "127.0.0.1:6379" }Make it consistent with your actual Redis endpoint. If you don’t have Redis, set
IsEnabledtofalseor remove the Redis configuration section used by the solution.3) Important note about “updating all NuGet packages”
For samples like
ElsaDemoApp, upgrading packages arbitrarily can introduce version mismatches. Prefer keeping package versions aligned with the sample’s original ABP version (you mentioned ABP10.6.0). If you already upgraded, revert to the original versions shipped with the sample (or align all ABP packages to the same version).
(sources)
- https://abp.io/docs/10.6/samples/elsa-workflows-demo
- https://abp.io/docs/10.6/framework/fundamentals/redis-cache
- https://abp.io/docs/10.6/framework/infrastructure/background-jobs/rabbitmq
- https://stackexchange.github.io/StackExchange.Redis/Timeouts
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - Your log shows two separate connectivity problems while starting
-
0
Point 1 and 2 checked and implemented For point 3 -- the downloaded project have build error so i updated i can attach the version information here ElsaDemoApp.Server.csproj.txt
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
- The stack trace you shared is not a NuGet/package-version problem anymore. It’s a runtime connectivity problem:
- RabbitMQ:
No connection could be made because the target machine actively refused it (127.0.0.1:5672) - Redis:
UnableToConnect on 127.0.0.1:6379
- RabbitMQ:
Updating packages may have fixed your build, but it won’t fix these two services being unreachable.
1) RabbitMQ: “service running” but port 5672 refused
This error means nothing is accepting TCP connections on 127.0.0.1:5672. Even if the Windows service shows “Running”, the broker may not actually be listening (or it’s bound differently / blocked).
Fix options (pick one):
- Ensure RabbitMQ is listening on 5672 and reachable on localhost.
- Or change
ElsaDemoApp.ServerRabbitMQ configuration to match the actual host/port you have.
In
ElsaDemoApp.Serverappsettings (the one actually used at runtime), verify the RabbitMQ endpoint is correct, e.g.:"RabbitMQ": { "Connections": { "Default": { "HostName": "localhost", "Port": "5672" } } }2) Redis is also required by this demo (and it’s not running)
Your log shows ABP is using Redis for distributed cache at
127.0.0.1:6379, and that connection is failing. You must either:A) Start Redis on localhost:6379 (recommended for the demo), or
B) Change the Redis connection string to wherever your Redis actually is, or
C) Disable Redis for local run (only if the sample supports that in its configuration; otherwise you’ll keep hitting caching initialization failures).Given your exception comes from ABP’s feature/permission static savers hitting distributed cache, running Redis is the simplest path.
3) About the csproj you attached
I can’t access
/QA/Files/Download/...from here, so I can’t verify the exact package versions you updated. But again: your current crash is clearly from RabbitMQ + Redis connectivity, not package resolution.If you want the quickest “known-good” environment to run ElsaDemoApp:
- Run RabbitMQ and Redis locally (or via Docker), and keep the demo’s endpoints pointing to
localhost:5672andlocalhost:6379.
(sources)
- https://abp.io/docs/10.6/samples/elsa-workflows-demo
- https://abp.io/docs/10.6/modules/elsa-pro
- https://stackexchange.github.io/StackExchange.Redis/Timeouts
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - The stack trace you shared is not a NuGet/package-version problem anymore. It’s a runtime connectivity problem:
-
0
Hi,
The demo needs SQL Server, Redis and RabbitMQ all reachable before it can start. Redis isn't reachable at
127.0.0.1:6379and RabbitMQ isn't accepting connections on127.0.0.1:5672(the Windows service beingRunningdoesn't mean the broker is listening).The safest way on Windows is to run both in Docker instead of installing them locally:
docker run -d --name redis -p 6379:6379 redis:alpine docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:management-alpineIf the RabbitMQ Windows service is still installed, stop it first so it doesn't hold port 5672.
Two more things for the sample itself. The download still ships ABP
10.0.0-rc.1packages, so keep allVolo.Abp.*packages aligned on 10.6.0 after your update. The Identity schema changed between those versions, so add a migration in theElsaDemoApp.Serverfolder and apply it:dotnet ef migrations add Upgrade_To_10_6 dotnet run --migrate-databaseWithout it, seeding fails with
Invalid column name 'LastSignInTime'.The sample also doesn't ship
wwwroot/libs, so run this once in the same folder:abp install-libsThen start the projects in the order from the docs:
ElsaDemoApp.Server,ElsaDemoApp.Studio.WASM,ElsaDemoApp.Ordering,ElsaDemoApp.Payment.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
We've updated the sample, so grab a fresh copy from https://abp.io/api/download/samples/elsaworkflow and work with that one. It ships with ABP 10.5.0 now and builds as it is, so you no longer need to update the packages yourself or add a migration.
Two things from my previous answer still apply:
- Redis and RabbitMQ have to be up and reachable before you start
ElsaDemoApp.Server. - Run
abp install-libsonce in theElsaDemoApp.Serverfolder, the sample doesn't shipwwwroot/libs.
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - Redis and RabbitMQ have to be up and reachable before you start