Open Closed

Redis Cache Operation Cancellation Error #8289


User avatar
0
selim.agca@payosfer.com created
  • ABP Framework version: v8.3.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at System.Threading.CancellationToken.ThrowIfCancellationRequested() at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token) at Volo.Abp.Caching.DistributedCache2.GetAsync(TCacheKey key, Nullable1 hideErrors, Boolean considerUow, CancellationToken token)
  • Steps to reproduce the issue:

We have two different servers where the application is deployed. The application works fine on one server, but on the other server, we are encountering the following log messages:

2024-11-13 16:37:44.275 +03:00 [WRN] The operation was canceled. System.OperationCanceledException: The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at System.Threading.CancellationToken.ThrowIfCancellationRequested() at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token) at Volo.Abp.Caching.DistributedCache2.GetAsync(TCacheKey key, Nullable1 hideErrors, Boolean considerUow, CancellationToken token) 2024-11-13 16:37:44.275 +03:00 [INF] Request finished HTTP/1.1 GET https://localhost:44391/ - 499 null null 1.4581ms 2024-11-13 16:37:45.651 +03:00 [INF] Request starting HTTP/1.1 GET https://localhost:44391/ - null null 2024-11-13 16:37:45.652 +03:00 [WRN] The operation was canceled. System.OperationCanceledException: The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at System.Threading.CancellationToken.ThrowIfCancellationRequested() at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync(String key, CancellationToken token) at Volo.Abp.Caching.DistributedCache2.GetAsync(TCacheKey key, Nullable1 hideErrors, Boolean considerUow, CancellationToken token) 2024-11-13 16:37:45.652 +03:00 [INF] Request finished HTTP/1.1 GET https://localhost:44391/ - 499 null null 1.395ms 2024-11-13 16:48:23.612 +03:00 [INF] Request starting HTTP/1.1 GET https://localhost:44391/ - null null 2024-11-13 16:48:23.613 +03:00 [WRN] The operation was canceled. System.OperationCanceledException: The operation was canceled.

We are using ABP 8.3.0 and Redis works fine on both servers. However, on the server where this error occurs, when we turn off Redis in the configuration, we receive a database connection error instead.

Could you please guide us in resolving this issue?


No answer yet!
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11