NodeBB installation - MongoDB error

Technical Support
  • I'm currently setting up my NodeBB installation on my DigitalOcean server, and I'm getting a few errors. So to start with, I can't get anything working if i run ./nodebb setup. I enter all the details, which goes smoothly and then if i try to launch the site on my domain I receive this error:
    0_1502238560796_Screen Shot 2017-08-09 at 02.28.47.png
    My config.json looks like this:
    0_1502238725657_Screen Shot 2017-08-09 at 02.31.35.png

    If i then delete my config.json and run ./nodebb start everything starts correctly, and I'm able to go onto my domain and i then get to the NodeBB web installer.

    After entering the details in the web installer i receive this message in the terminal:
    0_1502238966150_Screen Shot 2017-08-09 at 02.35.17.png

    And this message on the web installer:
    0_1502238978221_Screen Shot 2017-08-09 at 02.35.44.png

    This time the config.json is identical to the ./nodebb setup one, except that it doesn't contain the username and password fields.

    I have done everything database wise according to the guide at https://docs.nodebb.org/installing/os/ubuntu/ for the mongodb setup.

    Nodebb, npm and node, mongodb, and nginx are all up-to-date and have been restarted several times. I've checked mongodb and nginx status which are both active. I've tried several different versions of mongodb with the same results.

    From what I've been able to read, it seems that the web installer can't connect to the database for some reason, and that's why i receive that error. What i don't understand is why the ./nodebb setup wont work at all.

    Does anyone have any idea how I can get my nodebb installation working? I've been trying for weeks now.

    Thanks in advance!

  • The error creating indexes error sounds a bit like a privilege issue with your MongoDB user... perhaps it does not have enough privileges?

  • @julian Ah i see, any idea how i can fix that? I've followed the guide at https://docs.nodebb.org/installing/os/ubuntu/ and created the users exactly like the guide said.


Suggested Topics


  • 0 Votes
    1 Posts
    234 Views
  • 0 Votes
    1 Posts
    178 Views
  • 0 Votes
    5 Posts
    481 Views
  • 0 Votes
    2 Posts
    930 Views
  • 0 Votes
    2 Posts
    1079 Views