Update Nodered 1.0.6

Hello,
I have updated nodered on a Raspberry 4 without any problem (1.0.6 to 1.2.9), following the method describe here.
On a Raspberry 3, installed the same way as the 4, the command bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) has no effect, event after running sudo apt install build-essential git.
Any idea what is wrong?
Thanks,

Welcome to the forum.

Do you see any errors when you run the script? If not then please post the install log here, it tells you where it is at the end of the run. The log may contain multiple runs of the script, please just post the last one. When you paste it here use the </> button at the top of the forum text entry window.

No error reported in the terminal. Where is located the install log?
Thx

What do you mean by "has no effect"? Nothing happened? or the script ran fully but old node-red is still present?

on this problem PI...

  • how was node-red first installed?
  • what does which node-red report?
  • can you post a copy of terminal output from node-red starting to the point it says flows are running (might have some clues).

As I said it tells you at the end of the install script running (assuming you do see it running that is). Assuming you do see it running and showing its progress (it should take several minutes) then it is in /var/log/nodered-install.log.

I get this with the bash:

pi@pi:~ $ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
pi@pi:~ $ 

• Node-red 106 is installed and is working.
• Node-red was preinstalled with noobs351
• Which node-red returns /usr/bin/node-red
• Nodered output:

17 Feb 12:27:31 - [info] Started flows
17 Feb 12:27:31 - [info] [sqlitedb:f8adad6d.04982] opened /home/pi/Documents/NodeRedData/laundry.db ok
17 Feb 12:27:31 - [info] [sqlitedb:2e7de606.ecde22] opened /home/pi/Documents/NodeRedData/laundry.db ok
17 Feb 12:27:31 - [info] [sqlitedb:b14e9106.b09f4] opened /home/pi/Documents/NodeRedData/laundry.db ok
17 Feb 12:27:31 - [info] serial port /dev/ttyS0 opened at 9600 baud 8N1
17 Feb 12:27:31 - [info] [mqtt-broker:ea4dc112.5ec9e8] Connected to broker: mqtt://localhost:1883
17 Feb 12:27:31 - [info] [mqtt-broker:1f9b560e.ea3b9a] Connected to broker: mqtt://localhost:1883

File /var/log/nodered-install.log does not exist

This isn’t, by any chance, a docker image...is it?

In addition to the docker question, Is curl installed? Run
sudo apt install curl
to check and install it.

If it is, what happens if you run just the curl line
curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
It should display a load of text ending with

echo "Please see the documentation at http://nodered.org/docs/getting-started/upgrading."
echo " "
exit 1
fi
fi

Curl is installed: curl is already the newest version (7.64.0-4+deb10u1).

Nothing happend when I run your curl line:

pi@pi:~ $ curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
pi@pi:~ $ 

There is something wrong with curl or your internet access then.
What do you see if you put the https://... bit in the browser on the node-red machine? Also try
wget https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered

https://192.168.1.25:1880/ does not work on both raspberry but I've just updated Node-red 1.2.9 on RPI4 without problem.

pi@pi:~ $ wget https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
--2021-02-18 22:08:10--  https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Name or service not known.
wget: unable to resolve host address ‘raw.githubusercontent.com’

Is the Pi connected to the internet?

If it is connected to the internet then that suggests that DNS is not working. Does
ping www.google.com
work? It not then you need to sort that.

Right, internet was not anymore reachable since I've switched the rpi to AP with a static address. It is working fine in local but no link to internet.
It is working fine without a static address.
I have to dig that point.
Thank you for your time!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.