Closed edu-sistec closed 5 months ago
This is a bug in the node-serial node on ARM, the pre-built binaries just don't work on ARM, this has been reported upstream but there has been no fix for many years. https://github.com/serialport/bindings-cpp/issues/139
The workaround is to log into the container and run npm rebuild
in the /data
directory
Hi Ben,
thanks for answering
Yes, I have done what you mention in the thread: https://github.com/node-red/node-red/issues/3461
I have followed all the steps with the result order suced, but finally when running the contrib-modbus node the result is the same error.
I don't know what I'm doing wrong.
Edu
Then the only other option is to try changing the node-red container for the debian based image instead of the alpine one.
Change the container line in the docker compose to point to nodered:latest-debian
Hi Ben,
Thanks, I'll try it
Right now I've reset the device and I don't have it ready to test, but when I get a chance I'll try and let you know.
Hi Ben
It is already working perfectly. Finally I just had to add in docker-compose that it takes the Debian version: nodered:latest-debian.
I didn't need to do npm rebuild
Thank you for your time Edu
Hello,
This is my 1st case here.
to help you understand my problem I will try to explain it well I'm trying to get the container node-red to grab the ttyS2. I'm using docker-compose:
I also tried entering docker-compose:
In the node-red I insert the palette of contrib-modbus and configure it to use the ttyS2, then the error comes out:
in the contender it looks like I can access the ttyS2 with:
stty -a < /dev/ttyS2
result:I am running the container on an IOT2050 basic, docker node-red the last.
Client: Docker Engine - Community Version: 24.0.7 Kernel Version: 5.10.104-cip3 Operating System: Debian GNU/Linux 11 (bullseye)
I don't understand the problem I have to access the ttyS2 device, help is possible.
Thanks in advance Edu