# Rpi-gpio : Raspberry Pi specific node set inactive

**URL:** <https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569>\
**Category:** General\
**Created:** [11 November 2021 10:59 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569 "2021-11-11T10:59:41Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 16:01 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/21 "2021-11-11T16:01:58Z")

</div>

Now I think: when I imaged for the first time on Monday, I've found the same problem, RPI was killed and also video had non signal. I've re-immaged and all start as we attend!!

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 November 2021 16:37 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/22 "2021-11-11T16:37:50Z")

</div>

I can't access the Pi ☹  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/baa3efcb0c92ad71d3b75bae4b4dbc893ff71a9f.png)  
I'll keep on trying to sort out my issue but I don't think I will get it done quickly ☹

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 16:39 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/23 "2021-11-11T16:39:33Z")

</div>

I use cmd by Windows for ssh connection`ssh pi@raspberrypi.local`. You should have win 10 2018 update to do this

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 November 2021 16:48 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/24 "2021-11-11T16:48:22Z")

</div>

Thank you -that works - must be a problem with putty and new OS

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/b/8b89b41a1f0a0c2c1a0c17acced0436e29851226.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:** [11 November 2021 16:52 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/25 "2021-11-11T16:52:16Z")

</div>

Do you know whether the gpio node uses python to interface with rpi.gpio? I notice that on my Buster system that python-rpi.gpio is installed, but it isn't here, in fact there is no python-rpi.gpio package. There is python3-rpi.gpio though.

@alanmasu, as an experiment could you install that and then restart node-red. I am not very hopeful but worth trying.  
`sudo apt install python3-rpi.gpio`  
then restart node-red. In fact maybe a good idea to reboot. Then check the startup log for node-red.  
If that doesn't do it then could you enable trace level debugging in settings.js. If you edit that file (in your .node-red folder) and find the logging section. In there you should see  
`level: "info"`  
change it to  
`level: "trace"  
Then stop node-red and start it again. There should be a lot of extra stuff in the log. See if it says anything extra about gpio.

**[Edit]** Before doing any of the above could you check your system is up to date, there may have been some updates since the image was made  
`sudo apt update`  
`sudo apt full-upgrade`  
Reboot and check node-red again.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 November 2021 16:54 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/26 "2021-11-11T16:54:53Z")

</div>

last time I dove into what the node does is it ran a prog called nrgpio.py and that reference RPi.GPIO module (IIRC)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 November 2021 16:55 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/27 "2021-11-11T16:55:41Z")

</div>

I will try the install 1st without doing any updates just to make sure it fails 🙂

Just watching the paint dry at the moment

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0af182cdc894a9ddd25752aeaf4b985639a953ca.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:** [11 November 2021 17:00 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/28 "2021-11-11T17:00:26Z")

</div>

The suggestion to update was meant for @alanmasu in fact.

> [@cymplecy](#):
>
> it ran a prog called nrgpio.py

It might be the missing package then.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [11 November 2021 17:06 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/29 "2021-11-11T17:06:00Z")

</div>

Ok - confirmed not to work with default brand new image

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/0118315f96a9f3f96602bc9d43e243a24319f874.png)

Going to apt update and apt upgrade to see if that helps

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:08 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/30 "2021-11-11T17:08:10Z")

</div>

just done but nothing change!

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:08 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/31 "2021-11-11T17:08:58Z")

</div>

> [@Colin](#):
>
> `level: "info"`  
> change it to  
> `level: "trace"

I've done, but now the log where can I found it?

---

<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:** [11 November 2021 17:09 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/32 "2021-11-11T17:09:28Z")

</div>

When you start node red  
`node-red-stop`  
`node-red-start`

---

<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:** [11 November 2021 17:10 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/33 "2021-11-11T17:10:00Z")

</div>

> [@alanmasu](#):
>
> just done but nothing change!

Done what?

---

<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:** [11 November 2021 17:16 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/34 "2021-11-11T17:16:03Z")

</div>

> [@Colin](#):
>
> `level: "trace"

Sorry, there shouldn't be a ' on the front it should be  
`level: "trace"`

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:18 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/35 "2021-11-11T17:18:06Z")

</div>

> [@Colin](#):
>
> Done what?

Excuse me... Updating apt...

---

<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:** [11 November 2021 17:19 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/36 "2021-11-11T17:19:30Z")

</div>

Ok, so you haven't tried installing the python3-rpi.gpio package yet. Try that.

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:20 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/37 "2021-11-11T17:20:36Z")

</div>

yes, but the "trace" is written in a file or only in console?

> [@Colin](#):
>
> Ok, so you haven't tried installing the python3-rpi.gpio package yet. Try that.

just done also this...

---

<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:** [11 November 2021 17:22 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/38 "2021-11-11T17:22:11Z")

</div>

> [@alanmasu](#):
>
> the "trace" is written in a file or only in console?

It goes to /var/log/syslog too I think.

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:28 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/39 "2021-11-11T17:28:34Z")

</div>

> [@Colin](#):
>
> It goes to /var/log/syslog too I think.

ok, but I don konw how to search in a log file, I'm not an expert in this environment!

Alan

---

<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:** [11 November 2021 17:29 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/40 "2021-11-11T17:29:00Z")

</div>

I don't think the trace is going to help. I have had a look in the source at where the inactive message comes from and it is from `node_modules/node-red-node-pi-gpio/36-rpi-gpio.js`. Right at the start that runs `testgpio.py` in the same folder and displays the message if testgpio fails. That contains only

```auto
#!/usr/bin/python
import sys
try:
    import RPi.GPIO as GPIO
    sys.exit(0)
except ImportError:
    sys.exit(1)

```

which means that rpi.gpio is basically not there or not working at all I think. I was hopeful installing the package would fix it.

[Previous page](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569.md?page=1)

[Next page](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569.md?page=3)
