AKS to Redis fails on port 6380 but works on 6379 - read ECONNRESET

akhan 206 Reputation points
2021-04-21T04:25:49.363+00:00

We have a JS application running on Azure Kubernetes that connects to Azure Redis . the application is unable to reach Redis on port 6380 but can connect on port 6379.
When trying to connect to redis on port 6380 i get the following error

"Connection reset by peer"

Any tips on how to troubleshoot this issue ?

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
308 questions
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,458 questions
0 comments No comments
{count} votes

Accepted answer
  1. akhan 206 Reputation points
    2021-04-21T15:37:43.693+00:00

    Hi i was able to resolve this issue - if one is able to connect on non-ssl and not ssl then for the connection url they have to use rediss:// (extra s for secure) instead of redis://

    Hope this helps .

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,946 Reputation points Microsoft Employee Moderator
    2021-04-21T05:55:50.407+00:00

    @akhan Thank you for your query!!!

    As mentioned here:

    To test the connectivity on SSL port 6380, you need to make use of STUNNEL and make an entry in the configuration file as depicted below. Please reload the configurations after making the entry.

    89783-image.png

    In case the entry is missing or the configuration isn’t loaded correctly, you may receive errors like “No connection could be made because the target machine actively refused it”, “Connection Reset by Peer” or “Unknown Error” etc.

    Once configuration has been loaded successfully, try connecting to REDIS using the below syntax:

    redis-cli.exe -p 6380 -a <ACCESS KEY>

    89801-image.png

    Can you follow the above and let me know if it worked for you?

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.