0.9 Upgrade command failed
-
We develop on master, so if you run master you wouldn't experience the issues we'd have as well.
Ideally it would be a site administrator who runs on stable, but when requested, will duplicate his db, and run the upgrade from, for example, v0.8.2 to v0.9.0
-
@julian said:
Ideally it would be a site administrator who runs on stable, but when requested, will duplicate his db, and run the upgrade from, for example, v0.8.2 to v0.9.0
I would not mind doing that. Actually, I already do that. It is part of my upgrade process before upgrading the real forum. I am sure I am not the only one. I am late for the 0.9.0 but I would be OK to give it a try for the next release.
-
@scottalanmiller said:
Ah sorry, the probably....
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.9.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
Sorry for the newb post.....
I've tried to upgrade 3 times now each time breaking my install. Is the above the way to go????
Trying to upgrade from v0.7.1-dev to v0.9.0.
Please help?
-
-
Bringing base dependencies up to date... OK
-
Updating NodeBB data store schema.
10/11 12:39 [15868] - info: Beginning database schema update
10/11 12:39 [15868] - error: [upgrade] NodeBB upgrade could not complete, as your database schema is too far out of date.
10/11 12:39 [15868] - error: [upgrade] Please ensure that you did not skip any minor version upgrades.
10/11 12:39 [15868] - error: [upgrade] (e.g. v0.1.x directly to v0.3.x)
OKNodeBB Upgrade Complete!
-
-
@Phate said:
@scottalanmiller said:
Ah sorry, the probably....
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.9.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
Sorry for the newb post.....
I've tried to upgrade 3 times now each time breaking my install. Is the above the way to go????
Trying to upgrade from v0.7.1-dev to v0.9.0.
Please help?
You need to go through the 0.8.x series first.
-
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.8.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
Make sure that things are okay then...
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.9.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
-
@scottalanmiller said:
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.8.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
Make sure that things are okay then...
git fetch; git pull, npm i; ./nodebb upgrade; git checkout v0.9.x; git pull; npm install; ./nodebb stop; ./nodebb upgrade; ./nodebb start; ./nodebb log
So easy lol
-
-
No I don't need them, but curious since they're causing trouble
-
The way npm handles peer dependencies left much to be desired, especially in a development landscape like ours where versions go up regularly and different rates compared to plugins.
Specifically, if a module A required a peer dependency B with a fairly strict version (e.g.
~0.15.0
), then if that dependency got updated to v0.16.0 or above, then any future attempts to install module A would throw a peer dependency error and abort the npm installation, leaving NodeBB in a state that would not run. That's not so good for non-developers