Code Monkey home page Code Monkey logo

Comments (6)

joemccann avatar joemccann commented on August 27, 2024

Sounds like you are having a redis issue and not a dillinger issue.

I would have a look at the node redis client and see what they do for password protected redis instances.

It appears you just need to pass it an options hash:

https://github.com/bnoguchi/redis-node

from dillinger.

MarcosBL avatar MarcosBL commented on August 27, 2024

As for redis.conf , it's a simple:

requirepass PLAIN_TEXT_PASSWORD

My code looks like this:

function initRedis(){
  redisClient = redis.createClient();
  redisClient.on("error", function (err) {
      console.log("Redis connection error to " + redisClient.host + ":" + redisClient.port + " - " + err);
  });
  redisClient.on("connect", function (err){ console.log("Connection done"); redisClient.auth("PASSWORD", function (err) { }); });
  redisClient.on("reconnect", function (err){ console.log("Re-Connection done"); redisClient.auth("PASSWORD", function (err) { }); });
  RedisStore = require('connect-redis')(express);
}

And the error looks like this

/home/nodejs/dillinger # node app.js
Connection done
Redis connection error to 127.0.0.1:6379 - Ready check failed: Error: Error: ERR operation not permitted

Maybe related to https://github.com/mranney/node_redis/issues/search?q=auth

from dillinger.

MarcosBL avatar MarcosBL commented on August 27, 2024

I'm lost or the dependency is http://github.com/mranney/node_redis instead of https://github.com/bnoguchi/redis-node ?

That's the one (version 0.6.7) listed under dillinger/node_modules/redis/package.json

from dillinger.

joemccann avatar joemccann commented on August 27, 2024

Oops sorry about that, yeah it is the one listed in the package.json. Nonetheless, the redis client module is the issue, not Dllinger. =)

from dillinger.

joemccann avatar joemccann commented on August 27, 2024

did you get this sorted out?

from dillinger.

joemccann avatar joemccann commented on August 27, 2024

Closing as my assumption is this has been resolved.

from dillinger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.