Skip to content
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

Unable to connect to Azure Redis Cache after Directus v10.9.0 update #22465

Open
seyfi-ab opened this issue May 10, 2024 · 4 comments
Open

Unable to connect to Azure Redis Cache after Directus v10.9.0 update #22465

seyfi-ab opened this issue May 10, 2024 · 4 comments

Comments

@seyfi-ab
Copy link

seyfi-ab commented May 10, 2024

Describe the Bug

We have been successfully connecting to Azure Redis Cache using a connection string prior to version 10.9.0 of Directus. However, after updating to version 10.9.0 or later, we are encountering connectivity issues and receiving the following error:

2024-05-10T15:11:48.790243038Z [ioredis] Unhandled error event: Error: read ECONNRESET 2024-05-10T15:11:48.790313439Z at TCP.onStreamRead (node:internal/stream_base_commons:217:20) 2024-05-10T15:11:48.792794373Z [ioredis] Unhandled error event: Error: read ECONNRESET 2024-05-10T15:11:48.792818773Z at TCP.onStreamRead (node:internal/stream_base_commons:217:20) 2024-05-10T15:11:59.061673066Z [ioredis] Unhandled error event: Error: read ECONNRESET 2024-05-10T15:11:59.061722967Z at TCP.onStreamRead (node:internal/stream_base_commons:217:20) 2024-05-10T15:12:01.936389042Z [ioredis] Unhandled error event: Error: read ECONNRESET 2024-05-10T15:12:01.936430843Z at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
It appears that the connection to Azure Redis Cache is being reset unexpectedly, resulting in the inability to establish a connection.

To Reproduce

Update Directus to version 10.9.0 or later.
Attempt to connect to Azure Redis Cache using the same connection string as before.
Observe the ECONNRESET error in the logs.
Expected Behavior:
We expect Directus to successfully connect to Azure Redis Cache without encountering any connection reset errors, as it did before the update to version 10.9.0 .

Additional Information:

We have verified that the connection string used is correct and has not changed.
The Azure Redis Cache instance is accessible and operational from other services and environments.
There have been no changes to the network configuration or Azure setup that would affect outbound connections.
Directus configuration settings related to Redis have not been altered.
This issue is consistently reproducible after updating to Directus version 9.0.0 or later.
Any assistance in resolving this issue would be greatly appreciated. Thank you!

Directus Version

=v 10.9.0

Hosting Strategy

Self-Hosted (Docker Image)

@br41nslug
Copy link
Member

Major version 9.0 was a complete rewrite in another language with another ecosystem so it's not unthinkable this may have broken for one reason or another however considering the 9.0.0 release was about 2.5 years ago could you reproduce this issue on the latest supported version? 10.11.0

@seyfi-ab seyfi-ab changed the title Unable to connect to Azure Redis Cache after Directus v9.0.0 update Unable to connect to Azure Redis Cache after Directus v10.9.0 update May 13, 2024
@seyfi-ab
Copy link
Author

seyfi-ab commented May 13, 2024

I apologize for the typo. We meant to version 10.9.0 instead of 9.0.0. We tried various versions, including the latest one, but Redis didn't work. The newest working version we found was v10.8.3. I fixed the description of the issue.

@seyfi-ab
Copy link
Author

Hi @br41nslug, any progress on the issue? Or maybe you can suggest a workaround?

@br41nslug
Copy link
Member

We work in public, you can follow the progress of the issue right here in the issue, no need to ask for updates 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Needs Triage
Development

No branches or pull requests

2 participants