# Problems to update node-red

**URL:** <https://discourse.nodered.org/t/problems-to-update-node-red/53620>\
**Category:** General\
**Created:** [12 November 2021 08:19 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620 "2021-11-12T08:19:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [12 November 2021 08:19 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/1 "2021-11-12T08:19:11Z")

</div>

Hi,  
running the update command

bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))

my Raspi tells me:

Sorry - cannot connect to internet - not going to touch anything.  
[node-red - npm](https://www.npmjs.com/package/node-red) is not reachable.  
Please ensure you have a working internet connection.  
Return code from curl is 0

Running the command without bash Raspi shows me the script of this command.

A ping to [npmjs.com](http://npmjs.com) works perfectly. What can I do to run the update from 1.3.2 to the latest version?

Regards Eberhard

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [12 November 2021 08:43 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/2 "2021-11-12T08:43:36Z")

</div>

Do you get a reply from the server if you do a ping command ?

```auto
ping raw.githubusercontent.com

```

Is the date / time correct on your Pi ?  
(wrong date could cause certificate issues connecting to some sites)

* * *

edit (sorry .. so the script downloads and starts the installation process and then fails .. thats why you tested pinging npm?)

Did you run ?

`sudo apt update`  
`sudo apt full-upgrade`

---

<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:** [12 November 2021 09:09 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/3 "2021-11-12T09:09:24Z")

</div>

Can you ping `registry.npmjs.org`?  
Can you open that in a browser?  
If not then that is the problem. If you can then try again in case it was a temporary issue. If still not working is there anything in `/var/log/nodered-install.log`?

**[Edit]** Also what happens if you  
curl -I [https://registry.npmjs.org/@node-red/util](https://registry.npmjs.org/@node-red/util)

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [12 November 2021 10:01 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/4 "2021-11-12T10:01:31Z")

</div>

@Colin  
**1st question:** I can ping [registry.npmja.org](http://registry.npmja.org)  
**2nd question:** I'm using the RasPi headless without a browser  
**3rd question:** There are multiple entries concerning nodered-install.log in that directory. The lastet entry is empty.  
4th question:

```auto
HTTP/2 200
date: Fri, 12 Nov 2021 09:59:39 GMT
content-type: application/json
cf-ray: 6acee8a6380b7168-DUS
accept-ranges: bytes
age: 129
cache-control: public, max-age=300
etag: "26f3b53d536dc00b7a59f7193e12fb7b"
last-modified: Tue, 26 Oct 2021 09:44:52 GMT
vary: accept-encoding, accept
cf-cache-status: HIT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
x-amz-replication-status: PENDING
server: cloudflare

```

@UnborN  
**1st question:** I can ping raw. [githubusercontent.com](http://githubusercontent.com)  
**2nd question:** date/time is correct  
**last question:** I ran sudo apt update - ok, but within the sudo apt full-upgrade the connection to the RasPi was refused by Putty. I'm afraid that the upgrade was not finished perfectly. Can I run the full-upgrade once more?

Eberhard

---

<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:** [12 November 2021 10:12 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/5 "2021-11-12T10:12:46Z")

</div>

> [@Eberhard](#):
>
> There are multiple entries concerning nodered-install.log in that directory. The lastet entry is empty.

The log file is rotated regularly. Run the script again and see if you get a non-empty one. Or the last one that is not empty may already have the information.

Did you try running the script again in case it was a temporary issue?

> [@Eberhard](#):
>
> Can I run the full-upgrade once more?

Yes, hopefully. An upgrade that fails half way through can occasionally be disastrous.

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [12 November 2021 12:43 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/6 "2021-11-12T12:43:22Z")

</div>

Now I have tried to update/upgrade ubunto again an - lucky - i was successful. Then I removed the rmote connection and connected the RasPi direct via HMDI/USB. Then the Installation of the new version was installed without any displayed errors during the installation. The file nodered-installed.log shows a lot entries, but that all means nothing to me.

[nodered-install.log](https://discourse.nodered.org/uploads/short-url/3wkxax5IR74ZJf2Os9Xzv8Bbx3n.log) (11.0 KB)

Are there remarkable errors or warnings?

Thanks to both of you for your help to this point.

Eberhard

---

<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:** [12 November 2021 13:33 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/7 "2021-11-12T13:33:00Z")

</div>

> [@Eberhard](#):
>
> Are there remarkable errors or warnings?

No, that is all ok.

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [12 November 2021 14:07 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/8 "2021-11-12T14:07:26Z")

</div>

Thank you so much, Colin. You made my Day!

Regards Eberhard

---

<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:** [26 November 2021 14:08 UTC](https://discourse.nodered.org/t/problems-to-update-node-red/53620/9 "2021-11-26T14:08:07Z")

</div>

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