BiancoRoyal/node-red-contrib-modbus

Error loading shared library

Yusseiin opened this issue · 2 comments

Which node-red-contrib-modbus version are you using?

5.26.0

What happened?

After i upgrade to 5.26.0 it stop working giving 2 error and it will remain in "Infinite waiting".
" ERR_DLOPEN_FAILED" in "manage palette"

msg : error
"Error: Error loading shared library /data/node_modules/modbus-serial/node_modules/@serialport/bindings-cpp/build/Release/bindings.node: Operation not permitted"

In debug.

Server

Modbus-Server Node

How can this be reproduced?

After installing it immidiatly gives the error.
I have tryed old version but now everyones gives the same problem.

[{"id":"fd96d76e6884cdea","type":"modbus-read","z":"e192cba5f9ed9101","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"HoldingRegister","adr":"5560","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"93c5f5c4626d2ea5","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":250,"y":320,"wires":[[],["d9f2e126ca7d5543"]]},{"id":"d9f2e126ca7d5543","type":"modbus-response","z":"e192cba5f9ed9101","name":"","registerShowMax":20,"x":510,"y":340,"wires":[]},{"id":"93c5f5c4626d2ea5","type":"modbus-client","name":"","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.105.212","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true,"showWarnings":true,"showLogs":true}]

What did you expect to happen?

Working

Other Information

I am on Linux
Node-red 3.0.2

Hi @Yusseiin , looks like the serialport has some permission issues now - check the docs of the serialport libs if there are some changes needed like root rights on some systems. You could try to use node-modbus-serial and serialport directly to see more errors or switch on the DEBUG messages see here in the Wiki, how to do that for modbus