Setup script: MongoDb connection


  • Plugin & Theme Dev

    Hello guys,

    Can't do initial setup: sudo ./nodebb setup

    Screenshot from 2015-01-25 11:36:34.png

    I have auth connection error:

    Screenshot from 2015-01-25 11:44:01.png

    I just double checked configuration(config.json includes correct password), seems everything is correct, also I don't have problems with connection from mongo shell or Robomongo (Admin GUI):

    Shell example: mongo -u overuser -p herePwd --authenticationDatabase forum_db

    Mongo is configured with authentication:

    # Turn on/off security.  Off is currently the default
    #noauth = true
    auth = true
    

    P.S.
    overuser is dbOwner of forum_db
    branch: 0.6.x


  • Plugin & Theme Dev

    Interesting stuff, but:

    node app.js --setup
    

    I was able to finish initial setup...


  • Global Moderator

    It could be because you were calling it with sudo


  • Admin

    As @pitaj mentions, invoking sudo with NodeBB is bound to bring you trouble :smile: -- no need for superuser privileges for NodeBB, and I'm thinking of having NodeBB run as the nobody user, if possible...


Log in to reply
 


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