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

cant connect to redis cluster #294

Open
pdeva opened this issue Sep 7, 2023 · 7 comments
Open

cant connect to redis cluster #294

pdeva opened this issue Sep 7, 2023 · 7 comments

Comments

@pdeva
Copy link

pdeva commented Sep 7, 2023

using latest version of medis on mac Version 2.12.1 (3090)

this command from cli works:

redis-cli -c -h xxx.test.xxx.memorydb.us-east-1.amazonaws.com --tls -p 6379

in medis , i did set the correct config params:
Screenshot 2023-09-07 at 11 25 21 AM

it says 'connected' but nothing works...

Screenshot 2023-09-07 at 11 26 35 AM
@luin
Copy link
Owner

luin commented Sep 8, 2023

Hey @pdeva 👋

Thanks for using Medis! Did you use a VPN to connect to MemoryDB from your local machine? There is a documentation for connecting to ElastiCache via a jump server but it may not apply to your setup.

Could you please run "CLUSTER SLOTS" in your redis-cli and send the output here? That will help me in troubleshooting the issue.

@pdeva
Copy link
Author

pdeva commented Sep 8, 2023

i am indeed using Twingate VPN to connect to Memorydb.
the cli command shown above is executed from my desktop so we know that there is no issues with connecting to memorydb itself.

here is the output of cluster slots

clustercfg.test.drktf1.memorydb.us-east-1.amazonaws.com:6379> CLUSTER SLOTS
1) 1) (integer) 0
   2) (integer) 16383
   3) 1) "test-0001-001.test.drktf1.memorydb.us-east-1.amazonaws.com"
      2) (integer) 6379
      3) "d6340974fe9ecefa8a88cf9cd1a3f072cb4bd1ba"
      4) 1) "ip"
         2) "10.0.74.252"
   4) 1) "test-0001-002.test.drktf1.memorydb.us-east-1.amazonaws.com"
      2) (integer) 6379
      3) "412997fc81ef3bcd927167653a39efe0eedd719b"
      4) 1) "ip"
         2) "10.0.85.202"
clustercfg.test.drktf1.memorydb.us-east-1.amazonaws.com:6379>

@luin
Copy link
Owner

luin commented Sep 9, 2023

@pdeva Thanks for the details! I managed to set up a MemoryDB on AWS and actually it worked for me. Here is my setup:

CleanShot 2023-09-09 at 21 18 21@2x CleanShot 2023-09-09 at 21 19 07@2x

I used https://manual.nssurge.com/others/snell.html but it should pretty similar to Twingate so not sure what was the issue in your setup. Can you connect to test-0001-001.test.drktf1.memorydb.us-east-1.amazonaws.com directly with "Standalone" mode in Medis to see if that works?

@pdeva
Copy link
Author

pdeva commented Sep 9, 2023

you have 1 node in your setup. mine has 2.

@luin
Copy link
Owner

luin commented Sep 10, 2023

@pdeva Thanks for the follow-up! I created another cluster that has 2 shards. I was able to connect to the cluster with Medis:

CleanShot.2023-09-10.at.08.14.46.mp4

Is it possible that Medis was able to connect to the clustercfg node but not the individual node?

@DiegoRBaquero
Copy link

DiegoRBaquero commented Nov 1, 2023

I am now experiencing this, when I was previously not. What changed? I scaled up the size of the 2 nodes I have from t4g small to t4g medium. 🤔

image

@luin
Copy link
Owner

luin commented Nov 4, 2023

@DiegoRBaquero Sorry for the inconvenience! Nothing should have been changed recently. If it's possible, could you share with me the connection setting that is causing problems? I would troubleshoot it on my side. [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants