Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-red-contrib-modbus on armv6 platform not loading (unsupported?) #309

Closed
belveder79 opened this issue Jul 19, 2022 · 9 comments
Closed
Assignees
Labels
community could be done by the community help wanted Stale

Comments

@belveder79
Copy link

Problem

  • I can't install the module on a RPiZeroW which is an ARMv6 architecture

Current behavior

  • npm install works correctly (also compiles correctly from source), but node-red crashes trying to load the module saying that "armv6" is not supported (not very verbose)

Expected behavior

  • actually I would expect that the module works fine if compiled from source

Minimal reproduction of the problem with instructions

  1. get a dietpi (or whatever) install on a PiZeroW (armv6 platform)
  2. install node-red
  3. run npm install node-red-contrib-modbus (optionally build it from source)
  4. restart node-red

Your Environment

Please tell us about your environment:

  • (X ) I am using just the Node-RED package and got modbus-serial package
  • ( X) I have installed modbus-serial package global from source (using git clone)

Yes, modbus-serial is the name but it does all, TCP and Serial.
The node-modbus package is just for the Modbus Server node.

  • Device :

    • (X) Raspbian: v
      • Name: Dietpi (a Debian/Raspbian derivate)
      • Version: v8.6.1
  • node-red-contrib-modbus version: v5.21.2

  • node-red: v2.1.4

  • npm:

  • npm -v= 8.3.0

  • Node:
    node --version = v17.3.0

@biancode biancode self-assigned this Jul 22, 2022
@biancode biancode added help wanted community could be done by the community labels Jul 22, 2022
@biancode
Copy link
Contributor

Hi, what do you get if you start node-red in the verbose mode?

DEBUG=* node-red -v

@biancode
Copy link
Contributor

Maybe you have to install without serial support - it is optional - and you could check the supported platforms of the library dependencies if there is some, who does not support ARMv6. The serialport lib has normally the most restrictions.

@belveder79
Copy link
Author

Thx for the hints...
I finally figured out that it seems to be an incompatibility with node v16/v17 particularely on armv6. I now start node-red with --no-expose-wasm and it works as expected. I found out through this post that it seems to be connected to the dropped WASM support?

@biancode
Copy link
Contributor

From my perspective node v12 or v14 is maybe good enough for node-red if you have or see no big security issues. see the package.json of node-red for the min. version of node to run node-red. That is mostly also better if you work with serialport. That library is not compatible with all constellations and the lib provides with detailed information about supported node versions and hardware architectures.

@belveder79
Copy link
Author

You are totally right; v12 or v14 certainly suffice;

the origin of the issue comes from the fact that distros usually move forward with versions for frameworks regardless of incompatibilities of applications like node-red arising from that.

Still the real problem is that at this point just everything fails for the non-expert in Linux; for the rest of us, it is just tedious to get a particular install of node outside the distro system and fix a few startup scripts, but that's doable and no pain...

@biancode
Copy link
Contributor

biancode commented Jul 29, 2022

A nrm (node-red-manager) like nvm would be great ... like:

nrm install --version=2.2.2 --platform=armv6 --device=pizerow --os=ubuntu

maybe there is some tool like this ...

@dtabone
Copy link

dtabone commented Sep 4, 2022

Nodered v134 running here.. for some reason, everytime i restart nodered, this node disappears and i have to reinstall it. Any idea why this is happening and how i can resolve this?

@github-actions
Copy link

github-actions bot commented Nov 4, 2022

This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.

@github-actions github-actions bot added the Stale label Nov 4, 2022
@belveder79
Copy link
Author

actually after a long story of trial and error, I finally made it work with --no-expose-wasm... don't know how long this will work, but thumbs crossed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community could be done by the community help wanted Stale
Projects
None yet
Development

No branches or pull requests

3 participants