# Node-Red hanging after update

**URL:** <https://discourse.nodered.org/t/node-red-hanging-after-update/23874>\
**Category:** General\
**Created:** [30 March 2020 06:28 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874 "2020-03-30T06:28:22Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 14:11 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/21 "2020-03-30T14:11:34Z")

</div>

> [@ScheepersJohan](#):
>
> /var/log/nodered-install.log

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.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 March 2020 14:49 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/22 "2020-03-30T14:49:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 14:58 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/23 "2020-03-30T14:58:52Z")

</div>

> [@ScheepersJohan](#):
>
> See now where you found what were stopping the update "make: Leaving directory '/home/pi/.node-red/node\_modules/ursa/build'"

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

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 March 2020 20:27 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/24 "2020-03-30T20:27:18Z")

</div>

> [@Colin](#):
>
> 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.

This is the nodered-install.log

Can you please advise me?

[nodered-installlog.txt](https://discourse.nodered.org/uploads/short-url/xG02KMpRyqZ7PFHZemqf8q4Kmc9.txt) (25.1 KB)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 20:43 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/25 "2020-03-30T20:43:23Z")

</div>

What does this command show?  
`sudo apt update`

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 March 2020 20:45 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/26 "2020-03-30T20:45:43Z")

</div>

sudo apt-get update  
Get:1 [http://archive.raspberrypi.org/debian](http://archive.raspberrypi.org/debian) buster InRelease [25.1 kB]  
Get:2 [http://raspbian.raspberrypi.org/raspbian](http://raspbian.raspberrypi.org/raspbian) buster InRelease [15.0 kB]  
Get:3 [http://archive.raspberrypi.org/debian](http://archive.raspberrypi.org/debian) buster/main armhf Packages [279 kB]  
Err:3 [http://archive.raspberrypi.org/debian](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](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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 20:53 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/27 "2020-03-30T20:53:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 20:57 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/28 "2020-03-30T20:57:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 March 2020 21:04 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/29 "2020-03-30T21:04:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 March 2020 21:27 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/30 "2020-03-30T21:27:56Z")

</div>

Yes, that is true.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [31 March 2020 05:49 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/31 "2020-03-31T05:49:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 March 2020 08:02 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/32 "2020-03-31T08:02:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [31 March 2020 21:23 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/33 "2020-03-31T21:23:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 April 2020 21:23 UTC](https://discourse.nodered.org/t/node-red-hanging-after-update/23874/34 "2020-04-14T21:23:54Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/node-red-hanging-after-update/23874.md?page=1)
