Problem with Redis



  • Hi,
    I try to install NodeBB with PuTTY on VPS(Debian 7) but i've problem with Redis.

    $ ── UNMET PEER DEPENDENCY redisearch@^0.0.6
    $ └─┬ socket.io-redis@0.1.4
    $ └── redis@0.10.1
    $
    $ npm WARN nodebb-plugin-dbsearch@0.2.18 requires a peer of redisearch@^0.0.6 but none was installed.

    Someone can help me ? i think i don't do error on my code, i've followed https://docs.nodebb.org/vi/latest/installing/os/debian.html


  • Plugin & Theme Dev

    @Noksouls try installing redisearch

    npm i redisearch



  • npm ERR! Linux 3.2.0-4-amd64
    npm ERR! argv "node" "/usr/bin/npm" "install" "redissearch"
    npm ERR! node v0.10.29
    npm ERR! npm v3.5.1
    npm ERR! code E404

    npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/redissearch
    npm ERR! 404
    npm ERR! 404 'redissearch' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.

    npm ERR! Please include the following file with any support request:
    npm ERR! /root/nodebb/npm-debug.log


  • Admin

    It's redisearch not redissearch.

    Try

    npm r redisearch
    npm i redisearch
    


  • Oh...yes...thanks ^^



  • 10/12 21:41 [18540] - info: Now configuring redis database:
    Host IP or address of your Redis instance (...)
    Host port of your Redis instance (22)
    Password of your Redis database
    Which database to use (0..n) (1)
    Configuration Saved OK

    connect-redis@2.0.0 node_modules/connect-redis

    redis@0.10.3 node_modules/redis
    Populating database with default configs, if not already set...
    10/12 21:41 [18540] - error: Error: Auth error: 2.0-OpenSSH_6.0p1 Debian-4+deb7u2
    at Command.callback (/root/nodebb/node_modules/redis/index.js:212:43)
    at RedisClient.return_error (/root/nodebb/node_modules/redis/index.js:558:25)
    at ReplyParser.<anonymous> (/root/nodebb/node_modules/redis/index.js:305:18)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_error (/root/nodebb/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (/root/nodebb/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (/root/nodebb/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/root/nodebb/node_modules/redis/index.js:91:14)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:748:14)



  • Someone can help me ? :( I don't understand my error ...



  • Auth error suggests that there is a problem with username/password - check config.json

    If that is not the case, then check that you can connect to redis as that user, using that password.



  • Ok i think it's the password, but i don't know what is my Redis Database password, where i can find it?


  • Translator

    Are you connecting to the right IP & port? (According to the installer you have used port 22 before)



  • This is the IP and the port of my VPS, i think it is good ^^


  • Translator

    So your Redis install is locally installed? As on your own VPS.



  • I think yes


  • Translator

    @Noksouls What host do you use?



  • VPS on OVH, i use PuTTY for control ^^


  • Plugin & Theme Dev

    @Noksouls port 22 is for SSH (default anyways). Don't think your redis is running on port 22. Check the port and specify the correct port in the NodeBB config file.



  • I try the port 80
    $ Populating database with default configs, if not already set...
    $ 11/12 18:47 [19110] - error: NodeBB could not connect to your Redis database. Redis returned the following error: Redis connection to XX.XXX.XXX.XX:80 failed - connect ECONNREFUSED

    The IP it's the IP of my VPS, i don't know if it's good :/


  • Plugin & Theme Dev

    @Noksouls it won't be running on port 80. Default port for redis is 6379. First check if you have redis installed.

    Enter this at the prompt redis-cli. If redis is installed and running, the prompt will change and will most likely show you the port number redis is running on.



  • It's good !!! Thank you very much :dancer:

    But when i'm connecting to the adress there is a problem :ERR_CONNECTION_REFUSED
    I think it's a problem with my VPS but i don't know where it is.

    I do "forum IN A XX.XXX.XXX.XX" on my NDD (the IP is the IP of my VPS)



  • My NodeBB config :

    $ URL used to access this NodeBB (forum.guilde-arkadia.fr)
    $ Please enter a NodeBB secret (X)
    $ Wich database to use (redis)
    $ Host IP or adress of your Redis instance (127.0.0.1)
    $ Host port of your Redis instance (6379)
    $ Password of your Redis database
    $ Wich database to use (0..n) (1)

    But when i try to connect to the adress forum.guilde-arkadia.fr i have the message : ERR_PROXY_CONNECTION_FAILED

    You think it's a problem with the config or with the VPS?


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.