HELP! Update from 0.8 to 1.4
-
@obri3n The only thing I can recommend is the official guides: https://docs.nodebb.org/en/latest/installing/os.html
If those aren't working for you, then asking questions about issues you're having is the best way for us to help you. Unfortunately there's no
apt install nodebb
, and since we're under active development, there are many changes between versions, so upgrading can be difficult. -
ok here goes : )
So, following link text
Digital Ocean
Ubuntu 16.4
node -v = v6.9.5
npm -v = 3.10.10First problem...
tom@ama:~$ mongo
MongoDB shell version: 3.2.12
connecting to: test
Server has startup warnings:
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten]
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten]
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-02-19T10:36:01.171+0000 I CONTROL [initandlisten] -
Ok, getting closer...
One thing I'm not sure about was the edit mongo .conf - It didn't have an auth=true ???
tom@ama:~/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)
tom@ama:~/nodebb$ -
tom@ama:~/nodebb$ ./nodebb setup
19/2 11:33:56 [23827] - info: NodeBB Setup Triggered via Command LineWelcome to NodeBB!
This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
Press enter to accept the default setting (shown in brackets).19/2 11:33:56 [23827] - info: Now configuring mongo database:
19/2 11:33:56 [23827] - error: Error saving server configuration! EACCES: permission denied, open '/home/tom/nodebb/config.json'
19/2 11:33:56 [23827] - warn: NodeBB Setup Aborted.
Error: EACCES: permission denied, open '/home/tom/nodebb/config.json'
at Error (native) -
tom@ama:~/nodebb$ mongo nodebb
MongoDB shell version: 3.2.12
connecting to: nodebb
Server has startup warnings:
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten]
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten]
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-02-19T11:42:57.746+0000 I CONTROL [initandlisten]show users
{
"_id" : "nodebb.nodebbsvc",
"user" : "nodebbsvc",
"db" : "nodebb",
"roles" : [
{
"role" : "readWrite",
"db" : "nodebb"
}
]
}