Base solution for your next web application
Open Closed

Have problem with RedisTimeoutException #9698


User avatar
0
cyberlotus created
  • What is your product version? v6.8.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core
  • What is ABP Framework version? 3.8.2.0

Hi support team,

I have a probrem with redis cache on production environment. Sometime, my application I am getting this error: StackExchange.Redis.RedisTimeoutException: Timeout --> system crash *Abp.Runtime.Caching.Redis.AbpRedisCache - StackExchange.Redis.RedisTimeoutException: Timeout performing SETEX n:AbpZeroTenantCache,c:6, inst: 24, queue: 27, qu: 0, qs: 27, qc: 0, wr: 0, wq: 0, in: 6157, ar: 0, clientName: , serverEndpoint: x.x.x.x, keyHashSlot: 10661 (Please take a look at this article for some common client-side issues that can cause timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts) at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2120 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81 at StackExchange.Redis.RedisDatabase.StringSet(RedisKey key, RedisValue value, Nullable1 expiry, When when, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1765 at Abp.Runtime.Caching.Redis.AbpRedisCache.Set(String key, Object value, Nullable1 slidingExpireTime, Nullable1 absoluteExpireTime) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory)*

On my appsettings.json file with redis information: "Abp": { "RedisCache": { "ConnectionString": "x.x.x.x:6379,password=xxxx,SyncTimeout=10000", "DatabaseId": 1 } }

Can you help me to resolve this issue? Thanks.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @cyberlotus

    Did you try to increase Redis timeout duration ? You can also try to update your ABP NuGet package versions. It will decrease teh reading count from Redis.