# Node RED with Revolution Pi Core 3: Can't find package: noderedrevpinodes-server

**URL:** <https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601>\
**Category:** balenaOS\
**Tags:** node-red\
**Created:** [September 23, 2020, 3:06pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601 "2020-09-23T15:06:11Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 23, 2020, 3:06pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/1 "2020-09-23T15:06:11Z")

</div>

Hi!  
I’ve tried using Node Red on my Revolution Pi Core 3 with the following code [https://github.com/balenalabs/balena-node-red](https://github.com/balenalabs/balena-node-red) integrated in my multi-container app.

Node RED works but when I added revpi nodes ([https://flows.nodered.org/node/node-red-contrib-revpi-nodes](https://flows.nodered.org/node/node-red-contrib-revpi-nodes)) and then tried to install the required package `apt-get install noderedrevpinodes-server`, the build fails because the package isn’t found.

Do you maybe have an idea what’s causing the problem?

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [September 23, 2020, 5:50pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/3 "2020-09-23T17:50:36Z")

</div>

It looks like the noderedrevpinodes-server repo ([https://github.com/erminas/noderedrevpinodes-server](https://github.com/erminas/noderedrevpinodes-server)) has an alternate installation method you could try using wget. However, it is Python-based so you may want to consider putting this in its own container with a base image that favors Python rather than the Node Red container which has Node components. There are probably other dependencies you’ll need to install to get it to work. You will also need to make the container privileged in docker-compose to access the GPIO.

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 24, 2020, 11:13am UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/5 "2020-09-24T11:13:42Z")

</div>

Thank you for your answer!  
I was able to load the package but the installation fails because it cannot find the package `python3-revpimodio2`.  
I tried building it with the image `balenalib/revpi-core-3-python:3.5-stretch-build` with apt-get install and pip install but then it’s either `Unable to locate package python3-revpimodio2` or `No matching distribution found for python3-revpimodio2`. Do I need to use a different image?

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 24, 2020, 12:07pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/6 "2020-09-24T12:07:02Z")

</div>

I installed python3-rvpimodio manually and now it says `noderedrevpinodes-server depends on nodered (>= 0.2); however: Package nodered is not installed.`… inside the container where I install node-RED?

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [September 24, 2020, 2:51pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/7 "2020-09-24T14:51:08Z")

</div>

Hey there! Can you share the Dockerfile you have so far? At which step exactly do you get the error? Do you mind pasting the whole output?

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 24, 2020, 3:13pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/9 "2020-09-24T15:13:53Z")

</div>

Hey! the Dockerfile looks like this:

```
# Build step
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:12-stretch-build as build
RUN JOBS=MAX npm install -g --production --unsafe-perm \
  node-red \
  node-red-admin \
  node-red-contrib-balena \
  node-red-dashboard \
  node-red-contrib-revpi-nodes

# Runtime image
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:12-stretch-run
RUN apt-get update && apt-get install -yq --no-install-recommends \
  wget \
  dpkg \
  rpi.gpio \
  python-dev \
  python-rpi.gpio \
  libatomic1 \
  && apt-get clean && rm -rf /var/lib/apt/lists/*

# Defines our working directory in container
WORKDIR /usr/src/app

# Copy over the files created in the previous step, including lib/, bin/
COPY --from=build /usr/local/bin /usr/local/bin
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules

RUN wget -P /nodeserver https://github.com/erminas/noderedrevpinodes-server/releases/download/1.0.1/noderedrevpinodes-server_1.0.1.deb
RUN wget -P /revpimodio http://revpimodio.org/dnl/python3-revpimodio2_2.5.3-1_all.deb
RUN dpkg -i /revpimodio/python3-revpimodio2_2.5.3-1_all.deb
RUN dpkg -i /nodeserver/noderedrevpinodes-server_1.0.1.deb

# This will copy all files in our root to the working directory in the container
COPY ./app ./

# server.js will run when container starts up on the device
CMD ["bash", "/usr/src/app/start.sh"]

```

It fails here: `RUN dpkg -i /nodeserver/noderedrevpinodes-server_1.0.1.deb` with this output

 ![grafik](https://global.discourse-cdn.com/balena/original/2X/b/be34b87d22726aec932f7d900b9ce079bf2a8a09.png)

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [September 24, 2020, 3:21pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/10 "2020-09-24T15:21:12Z")

</div>

Just by taking a quick glance at it, I think that the issue is that you are installing `node-red` in the build step, but not on the runtime image. Can you try installing node-red there, and see if that makes a difference?

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 24, 2020, 4:11pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/11 "2020-09-24T16:11:18Z")

</div>

Okay I’ve tried installing it on the runtime image and I’ve tried using only one image but it didn’t make a difference, the error is still the same.

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [September 24, 2020, 4:17pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/12 "2020-09-24T16:17:19Z")

</div>

Hm, I think that the `noderedrevpinodes-server_1.0.1.deb ` package lists the `nodered` _Debian_ package as a dependency, and it can’t detect that Node RED is installed through `npm` (it expects it to be installed through a `.deb` through `dpkg` or `apt`).

Would it be possible to install node red through the official Debian repositories rather than through `npm`? If not, you can try passing the `--force-depends` option to `dpkg -i` to tell `dpkg` to install the package even if the dependencies are not satisfied (given that we know that Node RED was installed through another medium)

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 24, 2020, 7:37pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/13 "2020-09-24T19:37:08Z")

</div>

Okay so installing `nodered` via `apt-get install` worked to get `noderedrevpinodes-server` to install, but I can’t see and select any in- or output pins. Any ideas for that problem?

---

<div class="post-metadata">

**Author:** ![saintaardvark](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/saintaardvark/32/3390_2.png) [@saintaardvark](https://forums.balena.io/u/saintaardvark)\
**Post date:** [September 24, 2020, 7:52pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/14 "2020-09-24T19:52:36Z")

</div>

Hi there – I have not used nodered before, but I wonder if the problem with input/output pins is due to missing permissions in your application container. On the assumption that you’re deploying this with a `docker-compose.yml` file, can you try adding [these lines](https://github.com/balenalabs/balena-node-red/blob/master/docker-compose.yml#L14-L19) and see if that makes a difference? You can read more about these flags [here](https://www.balena.io/docs/learn/develop/hardware/).

If that doesn’t work, or if I’ve misunderstood something, please let us know.

All the best,  
Hugh

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 25, 2020, 7:31am UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/16 "2020-09-25T07:31:17Z")

</div>

Hi! So [these lines](https://github.com/balenalabs/balena-node-red/blob/master/docker-compose.yml#L14-L19) are already in my `docker-compose.yml` file because I used the same project as a base.

---

<div class="post-metadata">

**Author:** ![kerstin\_boergers](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kerstin\_boergers](https://forums.balena.io/u/kerstin_boergers)\
**Post date:** [September 26, 2020, 11:18am UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/17 "2020-09-26T11:18:27Z")

</div>

Is it possible that the standard noderedrevpinodes-server port 8000 is not working when I have another container running on port 8000?  
I saw that you can [change the server‘s port](https://github.com/erminas/noderedrevpinodes-server#configuration-optional), but the path `~/.config/noderedrevpinodes-server/` does not exist.

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [September 28, 2020, 4:36pm UTC](https://forums.balena.io/t/node-red-with-revolution-pi-core-3-cant-find-package-noderedrevpinodes-server/192601/18 "2020-09-28T16:36:37Z")

</div>

If you have something else using port 8000, that could cause a conflict. Have you tried changing the noderedrevpinodes server’s port using the docker-compose `ports:` to something like `- 8080:8000` (or some other port?) - it may be helpful to see your entire docker-compose at this point.
