Help with installation - MongoDB error
-
Hey folks,
Super new to this all so please forgive the ignorance here, but I've followed this tutorial to install NodeBB on a DO droplet, and I've got to the 'Welcome to NodeBB' part of the installation. But I'm not sure what I'm doing wrong or how to correct it with regards to these errors:28/2 05:08 [12803] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: connect ECONNREFUSED
28/2 05:08 [12803] - warn: NodeBB Setup Aborted.
Error: connect ECONNREFUSED
at errnoException (net.js:901:11)
at Object.afterConnect [as oncomplete] (net.js:892:19)I just pressed Enter when asked about the MongoDB name and password etc. because the guide linked above mentions not to add any info just to leave this all blank.
Any assistance would be appreciated.
Thanks,
- Mike
-
@nhl.pl Sure, I saw that. But I've followed along with all the commands, so why does the install ask for MongoDB details and not Redis? Either way, how to move forward with the Mongo setup so as to get nodebb up and running from this point?
-
Please use NodeBB Documentation.
https://docs.nodebb.org/en/latest/installing/os/ubuntu.html -
@nhl.pl Hey no worries, figured it out. Ran the install again and simply typed 'redis' instead of mongo for which DB to use, then continued on with that tutorial's steps.
Got it up and running now on my droplet!
Cheers,
- Mike
-
@jasperkade looks like the guide you are using does not have proper information.
If you follow that guide you will end up installing the master branch (development version, more likely to have bugs) of NodeBB and not the stable release.
The default database used to be redis (still redis on the latest stable release). Its changed to mongo on the master branch.
It's always recommended to follow NodeBB docs as others might be outdated.