Node-Red hanging after update

Start by looking there. If there is a problem running the script on a new installation then that needs fixing so let us know what it is.

Thanks up and running

Needed to
npm remove node-red-contrib-facebook
npm remove node-red-contrib-pca9685

See now where you found what were stopping the update "make: Leaving directory '/home/pi/.node-red/node_modules/ursa/build'"

Will investigate the log and see.

Also right at the end it says
npm ERR! Failed at the ursa@0.9.4 install script.

This is the nodered-install.log

Can you please advise me?

nodered-installlog.txt (25.1 KB)

What does this command show?
sudo apt update

sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [279 kB]
Err:3 http://archive.raspberrypi.org/debian buster/main armhf Packages
File has unexpected size (279790 != 279388). Mirror sync in progress? [IP: 176.126.240.167 80]
Hashes of expected file:

  • Filesize:279388 [weak]
  • SHA256:fbe9158c810d0517d486836fbcaa19d43e3757a31ec5c4af985749a22e136351
  • SHA1:0b4771c3adf17d05505ac912fb2fe1e3ae0f4d9f [weak]
  • MD5Sum:c21b734f17c40ac84cbf57b3cdae3207 [weak]
    Release file created at: Fri, 20 Mar 2020 17:25:50 +0000
    Fetched 40.1 kB in 1s (29.9 kB/s)
    Reading package lists... Done
    E: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/main/binary-armhf/Packages.gz File has unexpected size (279790 != 279388). Mirror sync in progress? [IP: 176.126.240.167 80]
    Hashes of expected file:
    - Filesize:279388 [weak]
    - SHA256:fbe9158c810d0517d486836fbcaa19d43e3757a31ec5c4af985749a22e136351
    - SHA1:0b4771c3adf17d05505ac912fb2fe1e3ae0f4d9f [weak]
    - MD5Sum:c21b734f17c40ac84cbf57b3cdae3207 [weak]
    Release file created at: Fri, 20 Mar 2020 17:25:50 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

I think that means that the raspbian repository mirror you are using is messed up. It may well recover at some point.
That has prevented it updating the repository list so it has installed the wrong version of nodejs.
Run
sudo apt remove nodejs
to take the wrong one out, then leave it a bit and try the apt update command again. Once that works ok then run the script again.

@dceejay should the install script error out if apt update fails?

maybe it should - but - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778357
if it returns 0 after an error it won't help much.

Yes, that is true.

I will try today again, think there are a problem with the undersea cable between South Africa and UK (I am in South Africa), causing the mirror here to not been update

Once the update works ok and you have removed nodejs then run
sudo apt full-upgrade
which will bring everything up to date and then run the script again.

@Colin Thank for you assistance, seems the mirror image were out of date, ran the update and install, all up and working.

1 Like

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