Extra Commands Needed for Upgrade
-
Hi PitaJ, I'm sure you are right but those are the commands I had to do to stop all the conflicts and get it running when using the instruction page that is linked from the dashboard of NodeBB.
I can't remember the exact errors etc but it did instruct me to commit before I could proceed (try it yourself on a CENTOS 7 server). This is the second time I had to battle through to get it installed (running perfectly now). On the second time I panicked at one stage so was making some random commands because I couldn't remember how I'd got through it the first time (hence some jumbled up commands in the list). I'd rolled back to 1.6 because Slick wasn't working at first (and didn't backup 1.7.... what a dumbo) it was late and I was tired. When I got up this morning you guys had fixed Slick which I thank you again for!
Anyway I didn't document everything but I figured as I'm using NodeBB for free I'd post the command history up as it might be useful to someone who knows what they are looking for.
-
The problem with doing all of these extra commands is that running git commands like this can mess up your installation for future updates etc.
If I were you, I'd make a backup and run
git reset --hard origin/1.7.x
which will hopefully prevent any conflicts in the future. -
Thanks much appreciated
-
Will i need to update/rebuild etc after that?
-
@billygrande yes,
./nodebb upgrade
should do everything -
One more thing:
If you do have problems upgrading to 1.7.1 which will release next week, can you message me here, and I can help you remedy those issues permanently.
-
I certainly will thanks a lot
-
Is Slick going to work in 1.7.1 ?
-
@billygrande you should be able to run
npm i [email protected]
and that version of slick will work with NodeBB 1.7.0 -
Thanks I think I have that version already because I needed it for 1.7.0
-
Oh, yeah, sorry, I thought you said 1.7.0
Yes, if it works with 1.7.0 it should work with 1.7.1
-
Hi
Tried to run the hard git and got this :ambiguous argument 'origin/1.7.x': unknown revision or path not in the working tree.
-
My bad. I forgot the
v
. The full command should begit reset --hard origin/v1.7.x
-
Thanks should have spotted that myself
-
@pitaj Thanks for your response regarding plugin (I'm restricted on forum responses and my time is limited)
Do I need to do a merge after this as I got some kind of message after the hard git mentioning that (forgot to copy it). I ran the hard git then an upgrade. Everything is working fine.
-
Hopefully you don't need to do anything for the upcoming v1.7.1 upgrade.
In the meantime, can you do
git status
and paste the output of that? Maybe it will provide some useful information. -
# On branch v1.7.x # # It took 2.10 seconds to enumerate untracked files. 'status -uno' # may speed it up, but you have to be careful not to forget to add # new files yourself (see 'git help status'). nothing to commit, working directory clean
-
@billygrande ok as far as I can tell, you should be good when upgrading to the next version. Of course, let me know if that's not the case.