# PiGPIOd Freezing or Stops Responding: How to Debug?

**URL:** <https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492>\
**Category:** General\
**Created:** [1 April 2021 06:17 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492 "2021-04-01T06:17:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noschvie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/noschvie/32/21425_2.png) [@Noschvie](https://discourse.nodered.org/u/Noschvie)\
**Post date:** [1 April 2021 06:17 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/1 "2021-04-01T06:17:59Z")

</div>

Continuing the discussion from [PiGPIOd Freezing or Stops Responding?](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding/32056):  
same here...  
@Nodi.Rubrum : did you get this resolved?

RPi3+ with NR running as docker container (nodered/node-red:latest-12) and with an optocoupler connected to GPIO04 and GPIO17.

```auto
pi@liechtenstein:~ $ cat /etc/rc.local
...
# startup pigpio
sudo pigpiod
pigs modes 4 r
pigs modes 17 r

exit 0

```

Sometimes the PiGPIOd input doesn't respond to inbound messages, but `pigs r 4` as shell command works fine.  
Changing eg. the debouncing setting of the node and deploying it get the inbound response working again.  
Any idea to get this solved?  
Thanks!

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [1 April 2021 15:58 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/2 "2021-04-01T15:58:36Z")

</div>

As a long time PiGPIO user, I will say it is extremely well written. Easily the best I/O driver for Raspberry PI IMHO. It is very reliable in our industrial applications over the past five years (we used its c library).

I suspect that it is a problem related to docker or the node or the way you use the node. Unfortunately, on pigpio's website, it clearly states that "Note that pigpio does not support or accept issues relating to problems of running in docker. " 😅

Node Red has its own GPIO node, did you have rpi gpio node installed? Multiple GPIO drivers can cause conflict. Try to use only one driver. I don't use the rpi gpio node or docker, but usually contention to use the driver from two sources cause the issue.

---

<div class="post-metadata">

**Author:** ![Noschvie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/noschvie/32/21425_2.png) [@Noschvie](https://discourse.nodered.org/u/Noschvie)\
**Post date:** [1 April 2021 16:28 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/3 "2021-04-01T16:28:16Z")

</div>

> [@davidz](#):
>
> pigpio

is it recommended to use the image "zinen2/alpine-pigpiod" to have access to the GPIO instead of running the pigpio daemon at the host OS?

---

<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:** [1 April 2021 16:51 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/4 "2021-04-01T16:51:14Z")

</div>

not seen that one so can't really advise - but certainly sounds like a good thing to try.

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [1 April 2021 17:16 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/5 "2021-04-01T17:16:15Z")

</div>

Sorry I don't have experience on "zinen2/alpine-pigpiod".

Did you check out any conflicts on the GPIO ports by different resources?

In our case, we interface more than 20 pi GPIO ports with FPGA. The multiple I/O ports run in parallel in micro-seconds level. No problem for the last five years.

---

<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:** [31 May 2021 17:17 UTC](https://discourse.nodered.org/t/pigpiod-freezing-or-stops-responding-how-to-debug/43492/6 "2021-05-31T17:17:08Z")

</div>

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