Crash on Login Attempt



  • I decided to drop a NBB install on a DigitalOcean droplet for some testing on my lunch break following @psychobunny's guide. Despite not being able to connect to Chris Lea's PPA, I was able to get NodeJS and NPM up to date.
    I was then able to do a quick configuration of NBB (without a database password - bad idea, I know - but let's look past that temporarily.)

    The issue is that the board starts and runs, but throws an error and dies when I attempt to login. Given that it's pexpire, I'm going to assume it's related to password expiration.

    test@vsecbb:~/nodebbinstall$ node app --start`
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info: 
    info: Time: Thu Jun 05 2014 14:53:58 GMT-0400 (EDT)
    info: Initializing NodeBB v0.4.3
    info: * using configuration stored in: /home/test/nodebbinstall/config.json
    info: * using redis store at 127.0.0.1:6379
    info: * using themes stored in: /home/test/nodebbinstall/node_modules
    warn: You have no redis password setup!
    info: [user.startJobs] Registering User Jobs
    info: Enabling 'trust proxy'
    
    warn: [plugins/nodebb-plugin-mentions] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.
    warn: [plugins/nodebb-plugin-mentions] In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset plugin="nodebb-plugin-mentions".
    
    info: [meta/css] Minifying LESS/CSS
    info: [sounds] Sounds OK
    info: [themes] Compiling templates
    info: [themes] Successfully compiled templates.
    info: NodeBB attempting to listen on: 0.0.0.0:4567
    info: NodeBB is now listening on: 0.0.0.0:4567
    info: [meta/css] Done.
    info: [meta/js] Compilation complete
    info: NodeBB Ready
    

    Now - I can access and view my node install - but let's try logging in.

    node_redis: no callback to send error: ERR unknown command 'pexpire'
    error: Error: ERR unknown command 'pexpire'
        at ReplyParser.<anonymous> (/home/test/nodebbinstall/node_modules/redis/index.js:305:31)
        at ReplyParser.EventEmitter.emit (events.js:95:17)
        at ReplyParser.send_error (/home/test/nodebbinstall/node_modules/redis/lib/parser/javascript.js:296:10)
        at ReplyParser.execute (/home/test/nodebbinstall/node_modules/redis/lib/parser/javascript.js:181:22)
        at RedisClient.on_data (/home/test/nodebbinstall/node_modules/redis/index.js:534:27)
        at Socket.<anonymous> (/home/test/nodebbinstall/node_modules/redis/index.js:91:14)
        at Socket.EventEmitter.emit (events.js:95:17)
        at Socket.<anonymous> (_stream_readable.js:745:14)
        at Socket.EventEmitter.emit (events.js:92:17)
        at emitReadable_ (_stream_readable.js:407:10)```
    
    Alright, I saw something about the mentions plugin Let's try nixxing that temporarily.
    
    

    test@vsecbb:~/nodebbinstall$ ./nodebb reset plugin="nodebb-plugin-mentions"
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    warn: You have no redis password setup!
    info: [reset] Plugin nodebb-plugin-mentions disabled

    Disabled, here we go.
    

    test@vsecbb:~/nodebbinstall$ node app --start
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Thu Jun 05 2014 14:57:01 GMT-0400 (EDT)
    info: Initializing NodeBB v0.4.3
    info: * using configuration stored in: /home/test/nodebbinstall/config.json
    info: * using redis store at 127.0.0.1:6379
    info: * using themes stored in: /home/test/nodebbinstall/node_modules
    warn: You have no redis password setup!
    info: [user.startJobs] Registering User Jobs
    info: Enabling 'trust proxy'
    info: [meta/css] Minifying LESS/CSS
    info: [sounds] Sounds OK
    info: [themes] Compiling templates
    info: [themes] Successfully compiled templates.
    info: NodeBB attempting to listen on: 0.0.0.0:4567
    info: NodeBB is now listening on: 0.0.0.0:4567
    info: [meta/css] Done.
    info: [meta/js] Compilation complete
    info: NodeBB Ready
    node_redis: no callback to send error: ERR unknown command 'pexpire'
    error: Error: ERR unknown command 'pexpire'
    at ReplyParser.<anonymous> (/home/test/nodebbinstall/node_modules/redis/index.js:305:31)
    at ReplyParser.EventEmitter.emit (events.js:95:17)
    at ReplyParser.send_error (/home/test/nodebbinstall/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (/home/test/nodebbinstall/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (/home/test/nodebbinstall/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/home/test/nodebbinstall/node_modules/redis/index.js:91:14)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (stream_readable.js:745:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable
    (_stream_readable.js:407:10)
    test@vsecbb:~/nodebbinstall$

    
    Forum crashes again :cry: 
    So, where to go from here?


  • @Albus Your Redis is out of date, upgrade to a version above 2.6.0.

     sudo apt-get install -y python-software-properties
     sudo add-apt-repository -y ppa:rwky/redis
     sudo apt-get update
     sudo apt-get install -y redis-server

  • Admin

    I really should update my guide. For now I've left a note in the comments. Thanks 🙂



  • @psychobunny While you're at it, can you update the official docs to include sudo in the commands, just in case people have started following your guide and set up a new account that isn't root, then just copy pasted the lines in to Terminal. As even accounts with sudo privs need sudo adding for some reason. I think a few of the errors are caused by this point here:

    apt-get update && apt-get dist-upgrade which asks are you root? Now the non observant would just change it to this sudo apt-get update && apt-get dist-upgrade which would still give the are you root error, but the error message may be missed by the user thinking apt-get update is working, the second command did too. Completely missing that you need sudo on the apt-get dist-upgrade.

    It may be worth reworking the guide to work with 14.04 as that's pretty much latest and greatest. And I found that npm wasn't installed.



  • @a_5mith said:

    @Albus Your Redis is out of date, upgrade to a version above 2.6.0.
    sudo add-apt-repository -y ppa:rwky/redis
    sudo apt-get update
    sudo apt-get install -y redis-server

    These seem to have fixed the issue, thanks for the assistance.


  • Admin

    @a_5mith

    While you're at it, can you update the official docs to include sudo in the commands

    Just updated it, thanks 🙂 The documentation is actually in the repository under /docs if you want to make any changes yourself, I'm not sure if everybody knows that



  • @psychobunny Now you mention it, I do. 😆 I'll have a look through, see if I can't contribute anything.



  • hey I just started and was following the guide for centOS
    by default I had redis-server 2.4.
    I'm trying to upgrade to a 2.6 + but having problem right now:

    If you know how to do it with yum would be nice to share, thanks!

    edit: found here:

    (only did step 1: install, not sure the other are needed or not)



  • Updated to Redis 2.8.19
    Still get this error when trying to login only, I can register and post message fine

    18/3 21:51 [32724] - info: Time: Wed Mar 18 2015 21:51:47 GMT+0000 (UTC)
    18/3 21:51 [32724] - info: Initializing NodeBB v0.6.1
    18/3 21:51 [32724] - info: NodeBB is now listening on: 0.0.0.0:4567
    18/3 21:51 [32724] - info: NodeBB Ready
    node_redis: no callback to send error: ERR unknown command 'pexpire'
    18/3 21:52 [32724] - error: Error: ERR unknown command 'pexpire'
    at ReplyParser.<anonymous> (/home/maximur1/nodebb/node_modules/redis/index.js:305:31)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_error (/home/maximur1/nodebb/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (/home/maximur1/nodebb/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (/home/maximur1/nodebb/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/home/maximur1/nodebb/node_modules/redis/index.js:91:14)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    

    test here:



  • Fixed, I did not uninstall 2.4 properly, this guide helped me

    Thanks!


 

| |