trying to enable SSL for azure redis cache

R Aishwarya 65 Reputation points
2023-11-23T08:48:38.8966667+00:00

Hi,

I m trying to enable SSL connection to azure redis cache with port 6380. Also I added the redis-port 6380 at configuration tab of App services and in codebase at docker-compose.yml file , .env file of the ROR application which is running on azure app service. But I see application is down ever since then. I tried restarting the app service and azure redis cache, but it didnt work. I m able to see redis connection timed out error in logs.

below are the logs:

[a0772e93-2ca4-4e5b-bb9c-54c606a70f50] Redis::TimeoutError (Connection timed out):
[a0772e93-2ca4-4e5b-bb9c-54c606a70f50]   
[a0772e93-2ca4-4e5b-bb9c-54c606a70f50] redis (4.0.3) lib/redis/connection/ruby.rb:71:in `rescue in _read_from_socket'
[a0772e93-2ca4-4e5b-bb9c-54c606a70f50] redis (4.0.3) lib/redis/connection/rF, [2023-11-21T11:17:41.757863 #23] FATAL -- : [2702280f-d2ad-4a27-b451-f3ce709e2724]   
[2702280f-d2ad-4a27-b451-f3ce709e2724] Redis::ConnectionError (Connection lost (ECONNRESET)):
[2702280f-d2ad-4a27-b451-f3ce709e2724]   
[2702280f-d2ad-4a27-b451-f3ce709e2724] redis (4.0.3) lib/redis/client.rb:260:in `rescue in io'
[2702280f-d2ad-4a27-b451-f3ce709e2724] redis (4.0.3) lib/redis/client.rb:252:in `io'
[2702280f-d2ad-4a27-b451-f3ce709e2724] redis (4.0.3) lib/redis/client.rb:264:in `read'

fail: Middleware[0]
2023-11-23T08:42:28.935017702Z Failed to forward request to http://169.254.131.3:3000. Encountered a System.Threading.Tasks.TaskCanceledException exception after 299998.289ms with message: The request was canceled due to the configured HttpClient.Timeout of 300 seconds elapsing.. Check application logs to verify the application is properly handling HTTP traffic.
2023-11-23T08:42:28.947193451Z fail: Middleware[0]
2023-11-23T08:42:28.947228353Z Failed to forward request to http://169.254.131.3:3000. Encountered a System.Threading.Tasks.TaskCanceledException exception after 300004.499ms with message: The request was canceled due to the configured HttpClient.Timeout of 300 seconds elapsing.. Check application logs to verify the application is properly handling HTTP traffic.
2023-11-23T08:42:28.938404230Z fail: Middleware[0]
2023-11-23T08:42:28.938436330Z Failed to forward request to http://169.254.130.3:3000. Encountered a System.Threading.Tasks.TaskCanceledException exception after 300002.847ms with message: The request was canceled due to the configured HttpClient.Timeout of 300 seconds elapsing.. Check application logs to verify the application is properly handling HTTP traffic.


Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
222 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,062 questions
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 13,976 Reputation points MVP
    2023-11-23T08:56:14.0933333+00:00

    Hello @R Aishwarya

    Thanks for your Q & A forum.

    You are using a Linux VM and you want to connect to Azure Cache for Redis using SSL Port 6380.

     Action:

    You can connect to Azure Cache for Redis using SSL Port with the help of Stunnel and Redis-cli.

    The steps are as follows:

    Connectivity Issue Troubleshooting


    If this answers your query, do click `Accept Answer` and **Up-Vote** for the same. And, if you have any further query do let us know.
    
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful