question

akhan avatar image
0 Votes"
akhan asked prmanhas-MSFT commented

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

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-kubernetes-serviceazure-cache-redis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

akhan avatar image
0 Votes"
akhan answered prmanhas-MSFT commented

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 .

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@akhan Glad to see that your issue is resolved.

Thank you for sharing it out with community really appreciate that :)

0 Votes 0 ·
prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered akhan commented

@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.






image.png (50.3 KiB)
image.png (44.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Thanks for the prompt response - as i have mentioned i am able to connect via 6379 and not via 6380 , if i was getting error on both SSL and non-SSL redis ports then that would indicate STUNNEL is needed.

also , the JS application is able to connect on other AKS with exact same configuration without installing additional software.

1 Vote 1 ·