Ok, getting closer...
One thing I'm not sure about was the edit mongo .conf - It didn't have an auth=true ???
[email protected]:~/nodebb$ sudo nano /etc/mongod.conf
GNU nano 2.5.3 File: /etc/mongod.conf Modified
#security:
#operationProfiling:
#replication:
#sharding:
Enterprise-Only Options:
#auditLog:
#snmp:
???
Then on to node install I get this:
19/2 11:24:02 [23753] - info: Now configuring mongo database:
Host IP or address of your MongoDB instance (127.0.0.1)
Host port of your MongoDB instance (27017)
MongoDB username mongoadmin
Password of your MongoDB database
MongoDB database name (nodebb)
Configuration Saved OK
19/2 11:24:40 [23753] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: Authentication failed.
19/2 11:24:40 [23753] - warn: NodeBB Setup Aborted.
MongoError: Authentication failed.
at Function.MongoError.create (/home/tom/nodebb/node_modules/mongodb-core/lib/error.js:31:11)
at /home/tom/nodebb/node_modules/mongodb-core/lib/connection/pool.js:483:72
at authenticateStragglers (/home/tom/nodebb/node_modules/mongodb-core/lib/connection/pool.js:429:16)
at Connection.messageHandler (/home/tom/nodebb/node_modules/mongodb-core/lib/connection/pool.js:463:5)
at Socket.<anonymous> (/home/tom/nodebb/node_modules/mongodb-core/lib/connection/connection.js:317:22)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)
[email protected]:~/nodebb$