Base solution for your next web application

Activities of "Leonardo.Willrich"

Hi,

When I am deploing my application I am getting this error: StackExchange.Redis.RedisTimeoutException: Timeout. In my development environment it doesn't happen.

It only happens for Caches used by AbpZero framework (i.e. AbpZeroTenantCache, AbpTenantSettingsCache). Using caches created by my routines I am not getting any issue.

I have already read the article http://stackexchange.github.io/StackExchange.Redis/Timeouts, but so far I have any idea how to fix it.

Any idea how to fix those exceptions? My log files is getting full.

Best regards!

Full exception:

2019-02-28 01:30:53,937 [37 ] Abp.Runtime.Caching.Redis.AbpRedisCache - StackExchange.Redis.RedisTimeoutException: Timeout performing GET n:AbpZeroTenantCache,c:2, inst: 3, queue: 12, qu: 0, qs: 12, qc: 0, wr: 0, wq: 0, in: 4257, ar: 0, clientName: FRESHRF, serverEndpoint: Unspecified/localhost:6379, keyHashSlot: 10529 (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, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2120
at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81
at StackExchange.Redis.RedisDatabase.StringGet(RedisKey key, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1647
at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key)
at Abp.Runtime.Caching.CacheBase.Get(String key, Func`2 factory)
StackExchange.Redis.RedisTimeoutException: Timeout performing GET n:AbpZeroTenantCache,c:2, inst: 3, queue: 12, qu: 0, qs: 12, qc: 0, wr: 0, wq: 0, in: 4257, ar: 0, clientName: FRESHRF, serverEndpoint: Unspecified/localhost:6379, keyHashSlot: 10529 (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, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2120
at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81
at StackExchange.Redis.RedisDatabase.StringGet(RedisKey key, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1647
at Abp.Runtime.Caching.Redis.AbpRedisCache.GetOrDefault(String key)
at Abp.Runtime.Caching.CacheBase.Get(String key, Func`2 factory)

Hi,

I am getting a Warn in my log files in the server:

naries.DictionaryBasedLocalizationSource - Can not find 'MainMenu' in localization source 'Abp'!

It only happens when my application is published and running in IIS server. In my local develop machine it doesn't happen.

Futhermore, in my .xml file I have it specified: <text name="MainMenu">Main menu</text>

Some idea what is going on?

Cheers.

No, I am deployinng on Windows Server 2012 R2 IIS version 8.5.9600.16384.

Hi, I have already read that question, but it doesn't work for me.

I have in my AbpLanguages table just one record:

And in my Source folder I have just one file with en-GB culture:

I wonder if somehow it is looking for "en" culture instead of "en-GB". Is this possible?

Hi Aaron,

I have one line with TenantId = Null and UserId = Null

Do I need to have this configuration per Tenant?

Do you mean changing "en-GB" to "en"?

Do I need to change from Language and Settings table as well?

Hi @ismcagdas

They are different databases, however, almost the same data. The database and tables are really small compared with caches that I use in my routines. I am getting erros only in apb routine.

I will try Windows's Event Viewer.

Guys,

I am still struggling to fix it. My logs have tons and tons of ERROR with Timeout, and only for "AbpUserSettingsCache".

Some idea?

In additional,

I realized that in my appsettings.json I have these configuration:

"Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } },

And in my preInitialize() method I have these lines:

        //Uncomment this line to use Redis cache instead of in-memory cache.
        //See app.config for Redis configuration and connection string
        Configuration.Caching.UseRedis(options =>
        {
            options.ConnectionString = _appConfiguration["Abp:RedisCache:ConnectionString"];
            options.DatabaseId = _appConfiguration.GetValue&lt;int&gt;("Abp:RedisCache:DatabaseId");
        });
        

Maybe is there something wrong with that?

Hi ryancyq

The most strange is in my local machine, development environment, it works fine. Only when it is running in our non-production environment with the application published in a ISS server it happens.

Some idea what is going on? Any configuration maybe I am missing?

Showing 1 to 10 of 78 entries