RedisInsight / RedisInsight

Redis GUI by Redis
https://redis.com/redis-enterprise/redis-insight/
Other
6.15k stars 343 forks source link

[Bug]: Cannot connect to Redis server in Azure #1548

Closed wshao12 closed 1 year ago

wshao12 commented 1 year ago

Preconditions (Any important steps we need to know) We have redis instances in Azure cloud. I want to connect it using RedisInsight V2

Steps to reproduce (How to reproduce what you found step by step) add host, port, and password, and a random database alias sting, leave username empty

Actual behavior (A short description of what you found) Connection failed.

Expected behavior (A short description of what you expected to find) Connection success.

Screenshots (Paste or drag-and-drop a screenshot or a link to a recording)

Screen Shot 2022-12-31 at 8 50 30 PM

Additional context (Operating system, version of RedisInsight, Redis database version, Redis module version, database type, connection type, logs, or any other information) macbook pro redisinsight v2

wshao12 commented 1 year ago

Failed connection to the redis database. | {"stack":[{"message":"getaddrinfo ENOTFOUND dracorex-engagement-redis.redis.cache.windows.netdracorex-engagement-redis.redis.cache.windows.net"}]} | Failed to add database. | {"stack":[{"message":"getaddrinfo ENOTFOUND dracorex-engagement-redis.redis.cache.windows.netdracorex-engagement-redis.redis.cache.windows.net"}]} | Getting application settings. | {"stack":[]} | Succeed to get application settings. | {"stack":[]} | Creating new database. | {"stack":[]}

ArtemHoruzhenko commented 1 year ago

@wshao12 Did you put host name twice? dracorex-engagement-redis.redis.cache.windows.netdracorex-engagement-redis.redis.cache.windows.net dracorex-engagement-redis.redis.cache.windows.net + dracorex-engagement-redis.redis.cache.windows.net

Are you able to connect using redis-cli?

If it is not the case could you try to connect using test build from this message? https://github.com/RedisInsight/RedisInsight/issues/1339#issuecomment-1367791335

wshao12 commented 1 year ago

Apologies. My computer keyboard has issue. I did not use host name twice. It is a copy/paste issue. I can use a tool called StrongDM as proxy, then I can connect to it.
hmm. I cannot connect to the server using redis-cli either: operation timed out

wshao12 commented 1 year ago

I tried new version, same. could be our env issue.

ViktarStarastsenka commented 1 year ago

@wshao12 , is this issue still relevant?

ViktarStarastsenka commented 1 year ago

please re-open the ticket if it is still relevant

mf182407 commented 1 year ago

i am running into the same issue. when connecting w the old redis desktop manager, i just used to auth w the primary access key. now it isnt available and asks for username and pw. is this not compatible w any azure cache for redis?

ViktarStarastsenka commented 1 year ago

@mf182407 , can you please describe your case in more detail?

mf182407 commented 1 year ago

@ViktarStarastsenka thanks for the reply. with the old redis desktop manager, it used to let you just access a saas redis cache (in my case azure hosted) by entering the access key. there isn't a username or password associated with this type, so when trying to connect to it now with new version, it doesn't work since there's no option for access key anymore. does that make sense?

uglide commented 1 year ago

@mf182407 It should be compatible. You need to make sure that you have checked the "Use TLS" checkbox if you are connecting to TLS-enabled endpoint and put your primary key from Azure in the Password field:

Screenshot 2023-06-15 at 19 09 08
mf182407 commented 1 year ago

@uglide awesome, that worked. thanks for the help on this