Trying to upgrade NR v0.19.? to v0.20.5 on a RPi3+

#1

Hi,

I have a relatively fresh install on a RPi3+ with a RAZBERRY2 Z-Wave smart home gateway installed. I'm currently running the upgrade using the upgrade script command:

bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

from the online documentation. The upgrade has been running for almost 2 hours now, and it appears to be hung at the line "Move global nodes to local".

image

As I'm new to this there should only be the standard set of nodes installed, and I have not begun any flows yet. The log file in /var/log also has not grown. Could the script be hung? What will I need to do to complete the upgrade manually if I break out of the upgrade?

Thanks,

Karl

0 Likes

#2

I'd guess the script has hung.

I'd start by running rebooting and then trying the script again.
If that doesn't work, the script is just a text file. Open the URL in a web browser and you can see the commands that it runs.

0 Likes

#3

Break in and have a look at the log (the location is on the screenshot you posted). If that doesn't show anything then just run it again.

[Edit] In addition, while the upgrade is running, you can open another terminal and run

tail -f /var/log/nodered-install.log

to watch what it is doing.

0 Likes

#4

I was able to find in the script where it hung, but not why. After breaking out I also found out that the entire node-red installation was gone, and needed to install from the RPi recommended software menu option.

I now have v0.19.4 running, and am moving forward with getting Z-Wave configured.

Thanks for your help.

0 Likes

#5

That is because it did not complete. Running the script removes the old version and install the current version. How have you managed to install 0.19.4? The script should install the latest.

0 Likes

#6

I was able to re-install through the setup / recommended software menu option of gnome.

0 Likes

#7

Good luck with that. They are likely out of date. What versions of nodejs and npm have you got? Which operating system are you using? I assumed you were using Raspbian but that doesn't use Gnome does it?

npm -v
node -v
0 Likes

#8

npm is v2.14.7
node is v4.2.1
Raspbial is Jessie, kernel 4.14.98

The GUI looks to be Gnome, but it could be something different

0 Likes

#9

Node red does not support versions of node prior to 8.x.
npm is currently at 6.x
See https://nodered.org/docs/getting-started/installation

You would be well advised to persevere with running the install script, otherwise some things will not work.

0 Likes

#10

The latest version of Node-RED doesn’t support nodejs prior to v6. But the version of Node-RED you have installed will run on nodejs v4.

The challenge comes in that nodejs v4 isn’t in support anymore so will not be getting any security patches etc.
Also as @colin suggests nodes you may want to add may assume you are running a more modern version of nodejs and fail to run. I would also encourage to you to try the upgrade script again.

0 Likes

#11

Thanks for the information guys. I’ll get node and npm updated to the current version and try again.

I’ll let you know how things turn out.

0 Likes

#12

The script will do that for you if you give it another go

0 Likes

#13

Ran the upgrade, this time it went through. OS now shows me
node -v
v10.15.3
nodejs -v
10.15.3
(these were showing me differences beforehand)
npm -v
v6.4.1

Thanks for your help!

1 Like