# Raspberry pi Install script not working

**URL:** <https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865>\
**Category:** General\
**Created:** [8 December 2022 12:44 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865 "2022-12-08T12:44:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 12:44 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/1 "2022-12-08T12:44:40Z")

</div>

Hi, I tried installing nodered locally on my new raspberry pi 4 B and the provided Github install script does not work. The pi seems to "think" for a while when the script is run but returns to command prompt with no indication of what went wrong. I did update and upgrade my pi Os first before attempting to install nodered.

What am i missing?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [8 December 2022 13:02 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/2 "2022-12-08T13:02:55Z")

</div>

Hi srikumarc,

Can you explain exactly what you did to run the script?  
A screen capture might help diagnose it too (even if the script exits without printing anything)

Do you have a file /var/log/nodered-install.log? There may be clues in there.

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 13:18 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/3 "2022-12-08T13:18:16Z")

</div>

Hi Jbudd

This is copied from my screen

srikumar@raspberrypi:~ $ 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))

srikumar@raspberrypi:~ $

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [8 December 2022 13:21 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/4 "2022-12-08T13:21:48Z")

</div>

OK, that certainly looks right - no sudo, running from the home directory.

1. What about the log file?
2. Is your user name "pi" or something else?

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 13:23 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/5 "2022-12-08T13:23:28Z")

</div>

1. The Var folder does not contain any log pertaining to Nodred installation
2. No. myuser name is srikumarc

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 13:24 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/6 "2022-12-08T13:24:21Z")

</div>

1. I meant var/log folder

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 13:32 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/7 "2022-12-08T13:32:02Z")

</div>

![2022-12-08-185921_1920x1080_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/2563ad3eac8d8302a9a98e517888a9fd4a294ea7.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [8 December 2022 13:52 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/8 "2022-12-08T13:52:35Z")

</div>

Does your username have sudo ability?  
Edit: - I see you do have sudo.

I have never seen the script exit silently, maybe @dceejay might know what's going on.

If I had this problem, here's what I would do as an experiment. Never tried this.

1 Download the script **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) \> nrinstall**  
2 Edit the script to remove the code which throws away output **sed -i 's|\>\>/dev/null||' nrinstall \> test**  
3 Run the edited script **bash ./test**

If you are lucky there will be an error message, or possibly lots and lots of output.

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 14:10 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/9 "2022-12-08T14:10:39Z")

</div>

sorry jbudd, I have limited ability in scripts editing !

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 14:12 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/10 "2022-12-08T14:12:09Z")

</div>

I am just now taking baby steps out of the windows world !!

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [8 December 2022 14:21 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/11 "2022-12-08T14:21:40Z")

</div>

Maybe not a good idea changing the script, let's see why it's not working first.  
Are you using this install script - [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi) ?  
What operating system have you installed?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [8 December 2022 14:31 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/12 "2022-12-08T14:31:33Z")

</div>

> [@Paul-Reed](#):
>
> Maybe not a good idea changing the script, let's see why it's not working first.

Shrug. I'm away from my computer for a while anyway.

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 14:31 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/13 "2022-12-08T14:31:56Z")

</div>

Ye. That is correct

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 14:37 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/14 "2022-12-08T14:37:36Z")

</div>

![2022-12-08-200412_1920x1080_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c060509d58d380d52719e228cbcce3a25550dcc5.png)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [8 December 2022 14:46 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/15 "2022-12-08T14:46:32Z")

</div>

Can't read that on my phone, please type it instead of screenshotting!

---

<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:** [8 December 2022 15:07 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/16 "2022-12-08T15:07:25Z")

</div>

As Paul says, please copy/paste output here rather than screenshot, where possible.

What does this commands show?  
`curl https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered`  
If it outputs lots then just the last few lines will do.

@jbudd We did have a similar report of no output at all just a few weeks ago, but I can't immediately find it.

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 15:08 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/17 "2022-12-08T15:08:06Z")

</div>

'srikumar@raspberrypi:~ $ cat /etc/os-release  
PRETTY\_NAME="Raspbian GNU/Linux 11 (bullseye)"  
NAME="Raspbian GNU/Linux"  
VERSION\_ID="11"  
VERSION="11 (bullseye)"  
VERSION\_CODENAME=bullseye  
ID=raspbian  
ID\_LIKE=debian

srikumar@raspberrypi:~ $

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [8 December 2022 15:09 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/18 "2022-12-08T15:09:22Z")

</div>

connection refused !

srikumar@raspberrypi:~ $ curl [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)  
curl: (7) Failed to connect to [raw.githubusercontent.com](http://raw.githubusercontent.com) port 443: Connection refused  
srikumar@raspberrypi:~ $

---

<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:** [8 December 2022 15:29 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/19 "2022-12-08T15:29:37Z")

</div>

You have a networking issue of some sort. Can you issue the curl command from your PC? It won't do any harm as it just fetches the file and displays it.

**[Edit]** Another couple of questions.  
Are you using a VPN at all?  
What does this show  
`date`  
Does it show the correct local time and timezone?

---

<div class="post-metadata">

**Author:** ![srikumarc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/srikumarc/32/72222_2.png) [@srikumarc](https://discourse.nodered.org/u/srikumarc)\
**Post date:** [9 December 2022 13:18 UTC](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865/20 "2022-12-09T13:18:26Z")

</div>

Got locked out of the forum for 24 hour being a new user and having posted messages in excess of the allowed maximum yesterday. Hence the delayed reply as below;

Tried it from my PC. got the following message

ERR\_CONNECTION\_REFUSED

I am not using any VPN

Yes, "date" command shows the local time correctly

Your observation about networking issue proved correct. Something seems to be wrong with my ISP, gateway or my router. I tried connecting my pi using mobile hotspot and the installation script worked but there is a new problem. It stopped after the second (y/n) step with the message below.

Running Node-RED install for user srikumar at /home/srikumar on raspbian

Node-RED v3.x no longer supports Nodejs 12

You can force an install of node 14, 16 or 18 by using the --node14, --node16 or --node18 parameter.  
However doing so may break some nodes that may need re-installing manually.  
Generally it is recommended to update all nodes to their latest versions before upgrading.

If you wish to stay on nodejs 12 you can update to the latest Node-RED 1.x or 2.x version by adding  
--nodered-version="1.3.7" or --nodered-version="2.2.2" to that install command. If in doubt this is the safer option.  
Please backup your installation and flows before upgrading.

Exiting now.

Installation is getting interrupted. can you please give me a solution? I have run update and upgrade command already and rebooted my pi.

[Next page](https://discourse.nodered.org/t/raspberry-pi-install-script-not-working/71865.md?page=2)
