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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to redis db #39

Closed
k33g opened this issue Jan 14, 2017 · 2 comments
Closed

Unable to connect to redis db #39

k33g opened this issue Jan 14, 2017 · 2 comments

Comments

@k33g
Copy link

k33g commented Jan 14, 2017

Hi 馃憢

I would like to connect to the redis db with something like that:

    "redis": {
      "url": "redis://:oOLzF44DnFLzcZ5fsMZ@cktrezr8w-redis.services.hola.com:3002", // fake url
      "db":15
    }

If i use directly node redis client, it's ok:

var redis = require("redis"),
    client = redis.createClient({
      url:"redis://:oOLzF44DnFLzcZ5fsMZ@cktrezr8w-redis.services.hola.com:3002"
    });

client.set("yo", "OK");

// This will return a JavaScript String
client.get("yo", function (err, reply) {
    console.log(reply.toString());
});

But with Hydra, I get some errors:

ERROR
{ event: 'error',
  message: 'Established Redis server connection has closed' }
ERROR
{ event: 'error', message: 'Reconnecting to redis server...' }
ERROR
{ event: 'error', message: 'Reconnecting to redis server...' }
ERROR
{ event: 'error', message: 'Reconnecting to redis server...' }
ERROR
{ event: 'error', message: 'Reconnecting to redis server...' }
ERROR
{ event: 'error',
  message: 'Max redis connection retry period exceeded.' }
ERROR
{ event: 'error',
  message: 'Error: Unable to establish a connection to Redis' }

so I don't understand how to set correctly my connection to redis

Can you help me please? 馃檹 馃槃

@emadum
Copy link
Contributor

emadum commented Jan 14, 2017

We fixed this in 0.14.0. I just published it on npm, so try updating and seeing if it works for you now.

@cjus
Copy link
Contributor

cjus commented Jan 17, 2017

@k33g Let us know if the 0.14.2 addresses your need.

@cjus cjus closed this as completed Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants