Upvoting and downvoting causes NodeBB crash / restart



  • NodeJS - 6.11.1
    NodeBB - 1.5.2
    NPM - 5.3.0
    Redis - 4.0.0
    CentOS - 6.9

    As per the title, voting on a post causes a crash. Browser error is the "connection lost, please wait while we reconnect" one.

    Error in logs is:

    24/7 12:50:30 [12789] - error: TypeError: callback is not a function
    at Command.callback (/usr/bin/nodebb/src/database/redis/sorted.js:184:4)
    at normal_reply (/usr/bin/nodebb/node_modules/redis/index.js:721:21)
    at RedisClient.return_reply (/usr/bin/nodebb/node_modules/redis/index.js:819:9)
    at JavascriptRedisParser.returnReply (/usr/bin/nodebb/node_modules/redis/index.js:192:18)
    at JavascriptRedisParser.execute (/usr/bin/nodebb/node_modules/redis-parser/lib/parser.js:574:12)
    at Socket.<anonymous> (/usr/bin/nodebb/node_modules/redis/index.js:274:27)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:547:20)


Log in to reply
 


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