Finally made it from v0.6.0 to v1.4.1
This was my upgrade route (hosted on DigitalOcean and with a mongo database - shell 2.6.7, node v0.10.38)
*v0.6 to v0.6.1
git fetch
git reset --hard origin/v0.6.x
git describe --tags
./nodebb upgrade
*v0.6.1 to v0.7.0
git checkout v0.7.0
./nodebb upgrade
npm install touch
npm install minimist
npm install colors
*v0.7.0 to v0.7.3
git reset --hard origin/v0.7.x
git describe --tags
./nodebb upgrade
node app --upgrade
*install nvm
curl https://raw.githubusercontent.com/creationix/nvm/v0.11.1/install.sh | bash
*Restart terminal
nvm install v0.10.39
* Change index.js in /root/"yourfoldername"/node_modules/connect-mongo from
*module.exports = require('./src');
*to
*module.exports = require('connect-mongo/es5');
*edit /etc/mongod.conf, to uncomment auth = true line
service mongod restart
mongo
use admin
db.createUser({user: "adminname", pwd: "yourpassword", roles: ["readWrite"]})
use *name of the db where nodebb is installed*
db.updateUser( "adminname",
{
roles : [
{ role : "dbAdmin", db : "*name of the db where nodebb is installed*" },
{ role : "readWrite", db : "*name of the db where nodebb is installed*" }
]
}
)
./nodebb upgrade
./nodebb start
./nodebb stop
*v0.7.3 to v0.8.x
git checkout v0.8.x
git pull
./nodebb upgrade
./nodebb start
./nodebb stop
*v0.8.2 to v0.9.x
git checkout v0.9.x
git pull
./nodebb upgrade
./nodebb start
./nodebb stop
*v0.9.4 to v1.4.1
git checkout v1.x.x
git pull
nvm install v6.2.1
nvm use v6.2.1
./nodebb upgrade
*edit /etc/mongod.conf, to uncomment noauth=true line
This should help to avoid any issue with mmmagic, kerberos, bluebird and the key_1_value_-1 already exist error.
Et voilà !
Thanks again for your help Julian !