# Node-red-node-pi-gpio out stopped working

**URL:** <https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875>\
**Category:** General\
**Created:** [8 December 2021 13:20 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875 "2021-12-08T13:20:21Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 13:20 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/1 "2021-12-08T13:20:21Z")

</div>

Suddenly 2 of my rasberry stopped working the same problem. The node rpi-gpio out is grey and disappered from the node collection. In the flow is says "Unknown: rpi-gpio out".

I've upgraded Raspian to latest. Removed from palette the node-red-node-pi-gpio. Restarted and reinstalled it. But no luck. My Rasperrys is one pi4 and one pi zero W. I believe it happend on the 6/12 if it's any lead.

Best Regards Magnus  
 ![nodes](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/a/aa17c34236022f7ff6d4a09f64240f5dffe6a19b.png)  
 ![palette](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2be8f2e42f66ca7bd7f0cb33d1f077a51901622d.png)

---

<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 2021 14:01 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/2 "2021-12-08T14:01:07Z")

</div>

Did you do anything to the two pis (or anything else in your network) at the time it failed?

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 14:10 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/3 "2021-12-08T14:10:55Z")

</div>

None. that should do anything with this.

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 14:21 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/4 "2021-12-08T14:21:47Z")

</div>

I saw not when checking more closely on pi zero W that also gpio in is missing. That pi runs version 1.2.3 of node-red-node-pi-gpio.

---

<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 2021 15:01 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/5 "2021-12-08T15:01:13Z")

</div>

> [@Magnus-rosenborg](#):
>
> None. that should do anything with this.

Maybe they should not be anything to do with this, but obviously something happened. So what did you do?

Have you tried re-booting? Also try clearing the cache in the browser (using the browser menus to clear it).

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 16:39 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/6 "2021-12-08T16:39:46Z")

</div>

The only thing I've done is working on a bash script on another machine totaly irrelevant. The pi4 is after i detected the problem upgraded to latest Raspian and reinstalled the node. Nothing else have I done. And about cache in browser is also tested. Still problem.

---

<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 2021 17:31 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/7 "2021-12-08T17:31:30Z")

</div>

For it to happen on two pis at the same time without you doing anything to the pis means that is something external to the pis, or it is a most remarkable co-incidence.

Open the browser console and see if you see any errors when you refresh the page

Also stop node red and start it again in a terminal and post the output here.  
`node-red-stop`  
`node-red-start`

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 20:59 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/8 "2021-12-08T20:59:57Z")

</div>

```auto
Starting as a systemd service.

8 Dec 21:56:49 - [info]

Welcome to Node-RED

===================

8 Dec 21:56:49 - [info] Node-RED version: v1.3.4

8 Dec 21:56:49 - [info] Node.js version: v10.24.0

8 Dec 21:56:49 - [info] Linux 5.10.63-v7l+ arm LE

8 Dec 21:56:51 - [info] Loading palette nodes

8 Dec 21:56:53 - [info] Settings file : /home/pi/.node-red/settings.js

8 Dec 21:56:53 - [info] Context store : 'default' [module=memory]

8 Dec 21:56:53 - [info] User directory : /home/pi/.node-red

8 Dec 21:56:53 - [warn] Projects disabled : editorTheme.projects.enabled=false

8 Dec 21:56:53 - [info] Flows file : /home/pi/.node-red/flows_honshus.json

(node:2245) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/usr/lib/node_modules/node-red/node_modules/@node-red/nodes/examples'

(node:2245) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:2245) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

8 Dec 21:56:53 - [warn]

---------------------------------------------------------------------

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials

file will not be recoverable, you will have to delete it and re-enter

your credentials.

You should set your own key using the 'credentialSecret' option in

your settings file. Node-RED will then re-encrypt your credentials

file using your chosen key the next time you deploy a change.

---------------------------------------------------------------------

8 Dec 21:56:53 - [info] Server now running at http://127.0.0.1:1880/

8 Dec 21:56:53 - [info] Starting flows

8 Dec 21:56:54 - [info] [Bme280:BME280] Initializing on bus1 addr:119

8 Dec 21:56:54 - [info] Started flows

8 Dec 21:56:55 - [info] [mqtt-broker:server] Connected to broker: mqtt://192.168.200.1:1883

Found BMx280 chip ID 0x60 on bus i2c-1, address 0x77

8 Dec 21:56:55 - [info] [BME280:BME280] Sensor BME280 initialized.

```

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 21:17 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/9 "2021-12-08T21:17:10Z")

</div>

I don't know if it's any help but both my pi:s respond when I write command  
gpio readall with

Oops - unable to determine board type... model: 17

---

<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 2021 21:31 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/10 "2021-12-08T21:31:11Z")

</div>

Check you are using the latest versions of all the pi s/w packages  
`sudo apt update`  
`sudo apt full-upgrade`

Then reboot

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [8 December 2021 21:36 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/11 "2021-12-08T21:36:11Z")

</div>

> [@Magnus-rosenborg](#):
>
> I've upgraded Raspian to latest.

Check your `settings` file for the RasPi. (`raspi-config`) and make sure the GPIO setting is still active.

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 21:42 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/12 "2021-12-08T21:42:13Z")

</div>

Done, check on that. Did that before asking for help.

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 22:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/13 "2021-12-08T22:50:26Z")

</div>

I'm not sure really if I did right here on this tip.  
If not point me in right direction please

cat config.txt | grep -v ^#

hdmi\_force\_hotplug=1  
hdmi\_group=2  
hdmi\_mode=85  
dtparam=i2c\_arm=on  
dtparam=audio=on

[pi4]  
dtoverlay=vc4-fkms-v3d  
max\_framebuffers=2

[all]  
dtoverlay=w1-gpio,gpiopin=4 pullup=0

---

<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:** [8 December 2021 22:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/14 "2021-12-08T22:50:28Z")

</div>

Did you install using the recommended script ? You seem to have be using node10 which is no longer supported, so is that deliberate?

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [8 December 2021 23:07 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/15 "2021-12-08T23:07:42Z")

</div>

Hi!  
I do think you are on something here. I tried the install script earlier today. It detected that I ran node10 and let me choose what to do. I don't remember what the script said but I thought i've done correct. The script downloaded I believe 1,4Gb and needed a reboot. Therefore I thought thats done. What to do next?

## When I try the script now it says:

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

Nodejs 10 is no longer supported.  
You can update to the latest Node-RED 1.x version by adding --nodered-version="1.3.5"  
to that install command. If in doubt this is the safer option.

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

Please backup your installation and flows before upgrading.

## Exiting now.

---

<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:** [8 December 2021 23:17 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/16 "2021-12-08T23:17:50Z")

</div>

Do you have any critical non standard nodes (iE ones for some specific hardware or device?). If not I would go for the --node14 option

---

<div class="post-metadata">

**Author:** ![Magnus-rosenborg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnus-rosenborg/32/52276_2.png) [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Post date:** [9 December 2021 11:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/17 "2021-12-09T11:50:05Z")

</div>

> [@dceejay](#):
>
> --node14

I ran the install script again with --node14 option and it worked fine. After that I had to edit the settings.js to set the uiHost: "192.168.200.232"  
Now it's up and running using chrome browser but for some reason it won't work with my old safari, but thats ok.

## Many thanks for all help Best Regards Magnus

 ![script](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/8/a8f00d9c5fe3bc818960df4c1d91e3ddf543f687.jpeg)

---

<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:** [9 December 2021 13:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/18 "2021-12-09T13:50:41Z")

</div>

> [@Magnus-rosenborg](#):
>
> I had to edit the settings.js to set the uiHost: "192.168.200.232"

It isn't normally necessary to do that, did something not work without it? Leaving it unset should allow access via localhost or via the ip address.

---

<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:** [23 December 2021 13:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875/19 "2021-12-23T13:50:54Z")

</div>

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