-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis connection error restored #397
Comments
up i had same error |
Hi, Here https://github.com/imperugo/StackExchange.Redis.Extensions/blob/master/samples/StackExchange.Redis.Samples.Web.Mvc/Startup.cs#L42 and example on "how to use it" |
i still got the same error |
How do you use it? Because I use it in production without problem. Thanks |
//register redis in appsettings |
I can't see the serializer in your code, but I can see it here That's the problem! |
i updated my code but exception still throws :( services.AddStackExchangeRedisExtensions(new RedisConfiguration |
debian@ns3100181:~/ariplus-backend$ docker-compose -f docker-compose.yml logs web |
I have removed PoolSize parameter but problem still continue |
I have using totally same conf with sample but problem still continue //register redis
|
I'm getting the same error in my production logs. Digging deeper into sources for both StackExchange.Redis.Extensions and StackExchange.Redis , the error is logged when Redis connection is recovered from previous failure. Strange enough, I don't see any mention of previous errors in my logs, and no other signs of crashing. My question here is: why is this event logged here as error? Why not warning, since it is a recovery event, not actual failure?
|
Same issue for me. It does not appear if its its executed the first time, but after shut down and re-connection it begins to display this error |
I have the same logs. It happens when I deploy the application only. I agree with @kirillito. I believe this should be logged as a warning. |
I had the same issue in my setup. In my ASP.NET Core service I am using DataProtection and of course I would like to use Redis to store the Keys.
I have recognized that the "Redis connection error restored" error was printed when I was trying to get the IDatabase instance directly via the RedisCacheConnectionPoolManager. Then I have changed the section like this:
Now I am getting a RedisClient from the managed Redis connection pool to retrieve the IDatabase instance and the error was gone. |
Also have this bug, in V7 version. |
In a basic console app when DI resolves in constructor a error log raised: "Redis connection error restored."
It comes from ConnectionRestored in RedisCacheConnectionPoolManager.
DI config:
Config:
I've tried multiple combinations without luck. Despite this, if I try to read or write to redis it works fine... but this error is a bit confusing. I don't know if I can ignore it...
The text was updated successfully, but these errors were encountered: