# node does not work with balena node-red

**URL:** <https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689>\
**Category:** balenaOS\
**Created:** [September 7, 2020, 3:30pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689 "2020-09-07T15:30:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 11, 2020, 3:09pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/40 "2020-09-11T15:09:27Z")

</div>

Hello there, we are still investigating, could you please confirm which type of device you are using?

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 11, 2020, 3:14pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/41 "2020-09-11T15:14:03Z")

</div>

rpi4

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 11, 2020, 3:32pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/42 "2020-09-11T15:32:17Z")

</div>

Well, I managed to reproduce it and it was not working for rpi4 due to some libraries missing

It will take a couple of day until we merge those changes into the code, but for now you can use the following code:

> **[balenalabs/balena-node-red](https://github.com/balenalabs/balena-node-red/tree/add_Dockerfilerpi4)**
>
> a node-red application with balena-supervisor support, can be managed remotely via resin publicURL - balenalabs/balena-node-red

Just download that one (it is the same repository you were already using, but another branch) and do **balena push** to your application, I have just tried it on my rpi4 and it works

I hope you enjoy it

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 8:43am UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/44 "2020-09-14T08:43:08Z")

</div>

hi  
I just tested but it doesn’t work, I still have the error:

nrgpio python command not running

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 1:00pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/66 "2020-09-14T13:00:06Z")

</div>

Hi my colleague Juan added a PR regarding this. Would you mind to try this [https://github.com/balenalabs/balena-node-red/archive/add\_Dockerfilerpi4.zip](https://github.com/balenalabs/balena-node-red/archive/add_Dockerfilerpi4.zip) out and tell us if it worked for you?

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 1:16pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/68 "2020-09-14T13:16:03Z")

</div>

Hi, again my colleague confirmed that this branch is working on a pi4 and the changes are going to be included in the next version of the project.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 1:26pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/69 "2020-09-14T13:26:26Z")

</div>

i tested [https://github.com/balenalabs/balena-node-red/archive/add\_Dockerfilerpi4.zip](https://github.com/balenalabs/balena-node-red/archive/add_Dockerfilerpi4.zip)

i have the same error

> Blockquote

nrgpio python command not running

with the node :node-red-node-pi-gpio

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 1:41pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/70 "2020-09-14T13:41:01Z")

</div>

Can you click the `Deploy to balena` button on the readme of this repo [https://github.com/balenalabs/balena-node-red](https://github.com/balenalabs/balena-node-red) . The new version is available, This will deploy v2.2.1 of balena-node-red.

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 1:59pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/72 "2020-09-14T13:59:28Z")

</div>

6275246e82a44d94688019c8e011f059

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 3:24pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/73 "2020-09-14T15:24:54Z")

</div>

Can you confirm that this is working for you now?

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [September 14, 2020, 3:25pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/74 "2020-09-14T15:25:56Z")

</div>

Is there something else I can help you with?

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 14, 2020, 3:44pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/76 "2020-09-14T15:44:26Z")

</div>

no it doesn’t work

 ![Sans titre](https://global.discourse-cdn.com/balena/original/2X/c/cb73046754d1bd65867818dfe5c007b726ddec7f.png)

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 14, 2020, 6:06pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/77 "2020-09-14T18:06:10Z")

</div>

hello there, can you please try to describe the steps that you are taking to get this error?

please also include information like:

- are you importing an existing flow?
- are you importing the required libraries from the Palette Manager?
- are you importing any libraries or nodes from the console?

the more information you can provide, the better. We will try to reproduce your procedure and help you out

thank you

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 15, 2020, 8:25am UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/80 "2020-09-15T08:25:28Z")

</div>

hi  
I don’t have a lot of things

-add new device = RPi4  
-select version: v2.51.1 + rev1  
-download balena os  
-sd flash card  
-push balena -node -red -master

-add device service variables  
(PORT, USER, PASSWORD)

node red  
-manage the pallete  
-install node-red-node-pi-gpio

can you test ?

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 15, 2020, 11:58am UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/84 "2020-09-15T11:58:37Z")

</div>

Is this the library you are installing? and are you doing it from here?  
If yes, I don’t see any problems, what are the properties you have set to those pins?

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 15, 2020, 11:59am UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/86 "2020-09-15T11:59:50Z")

</div>

![node-red](https://global.discourse-cdn.com/balena/original/2X/0/0ce5f012779fbbdc00dbe8b8da11260bd92e7ea1.png)

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 15, 2020, 2:11pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/88 "2020-09-15T14:11:46Z")

</div>

test this flow with rpi4

> **[flow.txt](https://wetransfer.com/downloads/a9cf02d0ab5f584a38b44d96a13dab4220200915141456/e7672c)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![JuanFRidano](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/juanfridano/32/3934_2.png) [@JuanFRidano](https://forums.balena.io/u/JuanFRidano)\
**Post date:** [September 16, 2020, 12:52pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/90 "2020-09-16T12:52:56Z")

</div>

Hello !  
That seems to be a problem with that the library, I might also be regarding the architecture of the raspberrypi4  
I could reproduce the error on those particular pin, I have tried it on GPIO4 (pin7) and it works fine.

I will try to see if there is a workaround/fix for that, ut I couldn’t find anything so far

 ![image](https://global.discourse-cdn.com/balena/original/2X/7/79d08933f34d768fa017df4149dfe09df2548936.png)

 ![image](https://global.discourse-cdn.com/balena/original/2X/f/faaccd0ef492e0f123b33acb8013fcde0bb3b660.jpeg)

---

<div class="post-metadata">

**Author:** ![baudetd](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@baudetd](https://forums.balena.io/u/baudetd)\
**Post date:** [September 16, 2020, 1:53pm UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/92 "2020-09-16T13:53:45Z")

</div>

ok!!!, i hadn’t thought of testing it like this!

it works up to port 26

there is still a problem because we cannot use ports 27-\> 40

---

<div class="post-metadata">

**Author:** ![phil-d-wilson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/phil-d-wilson/32/3730_2.png) [@phil-d-wilson](https://forums.balena.io/u/phil-d-wilson)\
**Post date:** [September 18, 2020, 7:41am UTC](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689/100 "2020-09-18T07:41:53Z")

</div>

Hi there,

So it seems like the `pi-gpio` library is at fault here. Juan has tried really hard to find a solution for you, but since it doesn’t seem to be a balenaOS issue, he’s come to the end of what he can do. Maybe you can ask for some support from the maintainers of the library?

Thanks,  
Phil

[Previous page](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689.md?page=1)

[Next page](https://forums.balena.io/t/node-does-not-work-with-balena-node-red/184689.md?page=3)
