-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Silently omit exception from Redis #16483
Comments
Please steps to reproduce |
Redis Server should be running |
It sounds like your Redis server is not reachable from your localhost
|
the home page of the site did not call IRedisService or any other Redis stuff. |
I think if the Redis feature is enabled, it'll attempt to make a connection to the server which could be causing your issue. So I don't think you need to hit a page that uses IRedisService to encounter an issue with the connection string. |
The pages which use db as data source should keep working as normal. |
Based on what I can see, if you only enabled the Redis module, you should not get an exception. If the connection fails we log an error but we catch the exception so it should not break you app. OrchardCore/src/OrchardCore.Modules/OrchardCore.Redis/Services/RedisDatabaseFactory.cs Lines 38 to 55 in 84ae5cb
The error you shared, what that displayed on the UI or you got that from the logs? I expect it to be in the logs only but the UI should not break. |
The UI was broken on home page. See the screenshot above
…On Wed, Jul 24, 2024, 4:56 p.m. Mike Alhayek ***@***.***> wrote:
@infofromca <https://github.com/infofromca>
Based on what I can see, if you only enabled the Redis module, you should
not get an exception. If the connection fails we log an error but we catch
the exception so it should not break you app.
https://github.com/OrchardCMS/OrchardCore/blob/84ae5cb0c8e0ec297a645f32b39695c3ea7003a3/src/OrchardCore.Modules/OrchardCore.Redis/Services/RedisDatabaseFactory.cs#L38-L55
The error you shared, what that displayed on the UI or you got that from
the logs? I expect it to be in the logs only but the UI should not break.
—
Reply to this email directly, view it on GitHub
<#16483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACIVS33YFUJ7H7ODS74VBLZOAIGFAVCNFSM6AAAAABLMSZ5TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYHA4DENZVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok. May be the home page called Iredisservice
…On Wed, Jul 24, 2024, 4:59 p.m. guang zheng ***@***.***> wrote:
The UI was broken on home page. See the screenshot above
On Wed, Jul 24, 2024, 4:56 p.m. Mike Alhayek ***@***.***>
wrote:
> @infofromca <https://github.com/infofromca>
>
> Based on what I can see, if you only enabled the Redis module, you should
> not get an exception. If the connection fails we log an error but we catch
> the exception so it should not break you app.
>
>
> https://github.com/OrchardCMS/OrchardCore/blob/84ae5cb0c8e0ec297a645f32b39695c3ea7003a3/src/OrchardCore.Modules/OrchardCore.Redis/Services/RedisDatabaseFactory.cs#L38-L55
>
> The error you shared, what that displayed on the UI or you got that from
> the logs? I expect it to be in the logs only but the UI should not break.
>
> —
> Reply to this email directly, view it on GitHub
> <#16483 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACIVS33YFUJ7H7ODS74VBLZOAIGFAVCNFSM6AAAAABLMSZ5TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYHA4DENZVGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
this is the code the home page hit:
|
@infofromca I think there is something invalid on your end (somewhere). I can't reproduce this issue in OC. I created the a new tenant using the blog recipe. I then configured Redis with wrong credentials, enabled Redis and Redis Cache. When the app started I do see the error you encountered in my logs, but the UI did not break as expected since we catch the connection exception. |
@MikeAlhayek Thanks, it happened on my custom layout. so close this |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Currently if the Redis is enabled and Redis server is not available, the whole site will fail in the beginning.
Describe the solution you'd like
A clear and concise description of what you want to happen.
it should not influence the whole site.
The text was updated successfully, but these errors were encountered: