Cannot install with MongoDB on Windows 10

Technical Support
  • Hello, I'm a first time user trying to install nodebb with mongodb. I've created the nodedb database for mongodb and added the nodebb user, and verified that I can connect with that user through mongoDB, however; after going through all of the steps when I enter node app.js --setup everything runs for quite a while until I get an error stating: 16/11 23:04 [11012] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: auth f
    16/11 23:04 [11012] - warn: NodeBB Setup Aborted.
    MongoError: auth failed

    Any suggestions?

  • I'm in! I was taking the default database name of 0 instead of entering my database name. Doh!

Suggested Topics

  • 0 Votes
    1 Posts

    I'm looking to use Azure CosmosDB mongoDB API with more than 10GB, so I need a shard key to get unlimited storage. Is there anything I have to do with NodeBB for the shard key?

    Also, I couldn't find this anywhere and have no forum experience, but excluding media, how much storage does a moderate forum take up?

  • 0 Votes
    3 Posts

    @PitaJ yea..its working already..i just did a fresh installation..thanks

  • 0 Votes
    12 Posts

    @HolyPhoenix My test forum is on Digital Ocean, and they have SSD disks. Thanks for the info!

  • 0 Votes
    5 Posts

    @pichalite said in v1.x.x installs mongodb 2.1.22 and requires 2.1.3:

    @exodo try the install without the ~

    npm i [email protected]

    that's the latest in that minor version.

    seems to work now after a few error commands šŸŒ

    npm i [email protected] - > [email protected] install /var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos > (node-gyp rebuild) || (exit 0) make: Entering directory `/var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos/build' CXX(target) Release/ In file included from ../lib/ ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory compilation terminated. make: *** [Release/] Error 1 make: Leaving directory `/var/foroexodo/nodebb/node_modules/mongodb/node_modules /kerberos/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820: 12) gyp ERR! System Linux 3.5.0-54-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/nod e-gyp.js" "rebuild" gyp ERR! cwd /var/foroexodo/nodebb/node_modules/mongodb/node_modules/kerberos gyp ERR! node -v v0.10.37 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok [email protected] node_modules/mongodb ā”œā”€ā”€ [email protected] ā”œā”€ā”€ [email protected] ([email protected], [email protected], [email protected] 1, [email protected]) ā”œā”€ā”€ [email protected] ([email protected]) ā””ā”€ā”€ [email protected] ([email protected]) root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb ā””ā”€ā”€ [email protected] invalid npm ERR! invalid: [email protected] /var/foroexodo/nodebb/node_modules/mongodb npm ERR! not ok code 0 root@w1-exodo:/var/foroexodo/nodebb# npm install root@w1-exodo:/var/foroexodo/nodebb# ./nodebb upgrade 1. Bringing base dependencies up to date... OK 2. Checking installed plugins for updates... OK 3. Updating NodeBB data store schema... 15/8 11:14 [5763] - info: [database] Checking database indices. 15/8 11:14 [5763] - info: Beginning database schema update 15/8 11:14 [5763] - info: [2015/12/15] Chats upgrade skipped! 15/8 11:14 [5763] - info: [2015/12/23] Chats room hashes upgrade skipped! 15/8 11:14 [5763] - info: [2015/12/23] Adding theme to active plugins sorted set skipped! 15/8 11:14 [5763] - info: [2016/01/14] Creating user best post sorted sets skipped! 15/8 11:14 [5763] - info: [2016/01/20] Creating users:notvalidated skipped! 15/8 11:14 [5763] - info: [2016/01/23] Creating Global moderators group skipped! 15/8 11:14 [5763] - info: [2016/02/25] Social: Post Sharing skipped! 15/8 11:14 [5763] - info: [2016/04/14] Group title from settings to user profile skipped! 15/8 11:14 [5763] - info: [2016/04/19] Users post count per tid skipped! 15/8 11:14 [5763] - info: [2016/04/29] Dismiss flags from deleted topics skipped! 15/8 11:14 [5763] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped! 15/8 11:14 [5763] - info: [2016/06/13] Store upvotes/downvotes separately skipped! 15/8 11:14 [5763] - info: [2016/07/12] Upload privileges skipped! 15/8 11:14 [5763] - info: [2016/08/05] Removing best posts with negative scores skipped! 15/8 11:14 [5763] - info: [upgrade] Schema already up to date! OK NodeBB Upgrade Complete! root@w1-exodo:/var/foroexodo/nodebb# npm ls redis [email protected] /var/foroexodo/nodebb ā”œā”€ā”¬ [email protected] ā”‚ ā””ā”€ā”¬ [email protected] ā”‚ ā””ā”€ā”€ [email protected] ā”œā”€ā”€ [email protected] ā””ā”€ā”¬ [email protected] ā””ā”€ā”€ [email protected] root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb ā””ā”€ā”€ [email protected]
  • 0 Votes
    11 Posts

    Fixed by reinstalling redis-server.