Made a pull request for it.Icehunter created this issue in NodeBB/NodeBB closed use replicaset if configured #3091
Setup script: MongoDb connection
Can't do initial setup:
sudo ./nodebb setup
I have auth connection error:
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):
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
overuseris dbOwner of forum_db
Interesting stuff, but:
node app.js --setup
I was able to finish initial setup...
It could be because you were calling it with sudo
As @pitaj mentions, invoking sudo with NodeBB is bound to bring you trouble -- no need for superuser privileges for NodeBB, and I'm thinking of having NodeBB run as the
nobodyuser, if possible...