OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Redis Cache issue with Azure in Orchard 1.10 #7254

Open npateltronc opened 7 years ago

npateltronc commented 7 years ago

Hi,

When I have enabled redis cache related modules for any tenant in admin site,that tenant site is down. We have 4 servers in Azure for deployment of Orchard 1.10 CMS.

Steps : 1> I have created one tenant called "abc". 2> I have unabled below modules in admin site.

Request you to please advise on same.

Regards, Nayan Patel

sebastienros commented 7 years ago

Have you setup the Redis connection string correctly in the web.config ?

npateltronc commented 7 years ago

I have added below connection string in Azure.web project.

Skrypt commented 7 years ago

Have you tried debugging by installing Redis locally ? It really looks like the cache does'nt return anything.

npateltronc commented 7 years ago

Hi,

I have tried debugging locally and it is working fine. But when I am deploying on QA servers (multiple servers) it is giving me an error. I think because of multiple servers it is not working. Kindly help me for fix the issue.

Regards, Nayan Patel

Skrypt commented 7 years ago

Have you tried doing a hard reset of the cluster ? http://redis.io/commands/cluster-reset

And here some documentation : http://redis.io/topics/cluster-tutorial

npateltronc commented 7 years ago

Hi,

Sorry for delay in response.

We are not using cluster concept.We have used simple redis cache and we refreshed it couple of times.But no luck.

Regards, Nayan Patel

sebastienros commented 7 years ago

Can you provide some repros steps to be sure what we are trying to fix?

npateltronc commented 7 years ago

Hi,

When I have enabled redis cache related modules for any tenant in admin site,that tenant site is down. We have 4 servers in Azure for deployment of Orchard 1.10 CMS.

Steps : 1> I have created one tenant called "abc". 2> I have unabled below modules in admin site.

3> After that I have checked the tenant site but it is not display anything. Below request is capture in profiler.

Azure configuration :-

I have added below connection string in Azure.web project.

< add name="Orchard.Redis.OutputCache" connectionString= "redis.cache.windows.net:6380,password=password=,ssl=True,abortConnect=False" /> < add name="Orchard.Redis.Cache" connectionString= "redis.cache.windows.net:6380,password=password=,ssl=True,abortConnect=False" /> < add name="Orchard.Redis.MessageBus" connectionString= "redis.cache.windows.net:6380,password=password=,ssl=True,abortConnect=False" />

Request you to please advise on same.

Regards, Nayan Patel

sebastienros commented 7 years ago

Can you try with an Azure Web Service instead of Cloud Apps? We have deprecated it.