Getting Error after enabling Redis.

3 недели назад
Hi,
NopCommerce v4.00

We have integrated cloudflare, and enabled Redis cache, but the app goes down after some period of time (ie: 1h). If I disable Redis cache then app works fine.  Following is the error log, Does anyone have idea how can We fix this issue?

fail: Microsoft.AspNetCore.Session.SessionMiddleware[1]
      Error closing the session.
System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.AspNetCore.Session.DistributedSession.<CommitAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Session.SessionMiddleware.<Invoke>d__9.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 9525.5942ms 200 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 9526.5549ms 200 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://127.0.0.1:0000/iisintegration  0
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.4201ms 202
Application is shutting down...  
2 недели назад
We have integrated cloudflare, and enabled Redis cache, but the app goes down after some period of time (ie: 1h). If I disable Redis cache then https://9apps.ooo/download/ app works fine.
2 недели назад
I have fixed the issue. Now Redis cache working like charm
2 недели назад
Would you please share your solution?
2 недели назад
New York wrote:
Would you please share your solution?

I have increased the requestTimeout in web.config to 15min.  (Previously it was set to 5min)
I don't know exactly how it relates to Redis, but after making this change, I have never encountered the site shut-down/frozen issue. hope it may help you.