Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

I cant connect rediss with abp framework

Writer Mia Lopez

I use latest version ABP Framework tiered, EF and blaozrserver client. I get redis error It was not possible to connect to the redis server(s). when treace AuthServerModule everything seems fine. var redis = ConnectionMultiplexer.Connect able to connect redis server and got database. And my redis server work fine with redisInsight 2023-04-12 17:24:15.606 +03:00 [INF] Content root path: C:_MyProjectsa_Samples\Denemeler14\Adalim14\src\Adalim14.AuthServer 2023-04-12 17:24:15.668 +03:00 [INF] Request starting HTTP/2 GET - - 2023-04-12 17:24:22.411 +03:00 [ERR] It was not possible to connect to the redis server(s). UnableToConnect on merry-ladybug-33525.upstash.io:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 5s ago, last-write: 5s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 0s ago, v: 2.2.4.27433 StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on merry-ladybug-33525.upstash.io:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 5s ago, last-write: 5s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 0s ago, v: 2.2.4.27433 at StackExchange.Redis.ConnectionMultiplexer.ConnectImplAsync(ConfigurationOptions configuration, TextWriter log) in /_/src/ 861 at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.ConnectAsync(CancellationToken token) 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 Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule.<>c__DisplayClass8_0.<b__1>d.MoveNext()

Thanks for your advice

I tried connect my redis remote server with redisInsight client. All test seems fine.

3

1 Answer

Make sure redis is running at merry-ladybug-33525.upstash.io:6379. If you are deploying to an isolated network, it can be the reason of your connection issues.

Also, check your application appsettings.json file for the Redis section that has correct configuration like:

"Redis": { "Configuration": "merry-ladybug-33525.upstash.io:6379" },

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.