Nedd help while instaling NodeBBon Debian 7



  • Hey, i have tryd to isntall NodeBB on my Debian 7 root but i wont work. it thros me an error:

    /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/base.js:242
    throw message;
    ^
    TypeError: Object #<Object> has no method 'genSalt'
    at Object.User.hashPassword (/var/www/forum.nardox.de/src/user.js:555:10)
    at /var/www/forum.nardox.de/src/user.js:133:11
    at /var/www/forum.nardox.de/src/database/mongo.js:418:5
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/collection/core.js:703:14
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/db.js:1098:5
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/db.js:1806:9
    at Server.Base._callHandler (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/base.js:442:41)
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/server.js:485:18
    at MongoReply.parseBody (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
    at null.<anonymous> (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/server.js:443:20)

    I dont know what that means?

    can any one help me pls?


  • GNU/Linux Admin

    Hey @tedroastbeef The issue may have been fixed already, can you give the fixes outlined here a try?



  • got new error:

    node app start
    info: NodeBB v0.3.2 Copyright (C) 2013 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 Feb 20 2014 13:54:30 GMT-0500 (EST)
    info: Initializing NodeBB v0.3.2
    info: * using configuration stored in: /var/www/forum.nardox.de/config.json
    info: * using mongo store at 127.0.0.1:27017
    info: * using themes stored in: /var/www/forum.nardox.de/node_modules
    warn: You have no mongo password setup!
    info: No minified client-side library found
    info: NodeBB attempting to listen on: 0.0.0.0:8080
    info: NodeBB Ready

    /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/base.js:242
    throw message;
    ^
    TypeError: Cannot call method 'substr' of null
    at Object.m.compare (/var/www/forum.nardox.de/node_modules/bcryptjs/bcrypt.min.js:40:142)
    at /var/www/forum.nardox.de/src/routes/authentication.js:191:13
    at /var/www/forum.nardox.de/src/database/mongo.js:339:4
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/collection/query.js:147:5
    at Cursor.nextObject (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/cursor.js:733:5)
    at commandHandler (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/cursor.js:713:14)
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/db.js:1806:9
    at Server.Base._callHandler (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/base.js:442:41)
    at /var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/connection/server.js:485:18
    at MongoReply.parseBody (/var/www/forum.nardox.de/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)

    The erros will popup if i try to login



  • Can you check the database and see if that user has password set? The key name should be user:<uid> replace <uid> with that users user id.



  • it works now i mean the error came from my Db


Log in to reply
 

Suggested Topics

| |