No data from can to SignalK
I have setup a brand new RPI 5 with latest OpenPlotter image, and brand new MacArthur HAT. I have connected it to my NMEA bus and followed the instructions on the MacArthur HAT documentation website. When I hit "Check Device Traffic" its recieving packets.
Inside SignalK i have got the new connection called "can0" but it's dead. No data in or our. When I look in the serverlog I find the errors below. I asume it's the reason that I dont have any data from NMEA inside SignalK. Any ides?
Sep 08 21:14:49 Error: /usr/lib/node_modules/signalk-server/node_modules/socketcan/build/Release/can.node: file too short at Module._extensions..node (node:internal/modules/cjs/loader:1340:18) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/usr/lib/node_modules/signalk-server/node_modules/socketcan/dist/socketcan.js:51:26) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18) at new CanbusStream (/usr/lib/node_modules/signalk-server/node_modules/@canboat/canboatjs/lib/canbus.js:73:22) at CanbusStream (/usr/lib/node_modules/signalk-server/node_modules/@canboat/canboatjs/lib/canbus.js:46:12) at Object.nmea2000input [as NMEA2000] (/usr/lib/node_modules/signalk-server/node_modules/@signalk/streams/simple.js:259:30) at new Simple (/usr/lib/node_modules/signalk-server/node_modules/@signalk/streams/simple.js:92:34) { code: 'ERR_DLOPEN_FAILED' }
Sep 08 21:14:49 WARNING unable to load native socketcan interface
4 Replies
Have tried reinstall of SignalK. Exactly the same.
For some reason your installation is broken. Try removing /usr/lib/node_modules/signalk-server and reinstalling
I have used the "reinstall SignalK" in the "SignalK Installer" app. Wont that do the same? All my settings, apps and connections was gone when I did it.
The RPI was installed with a fresh downloaded image from OpenPlotter. The image to RPI 5 with head. I have not done anything manually. SignalK is included in the image and running from start.
All my reinstallations gave me the same 2.8 version, instead of the new 2.10. Now, after I deleted the folder as you said, the SignalK Reinstall command in SignalK Installer gave me a 2.10 version, and it worked.
As far as I can tell, this has to be a bug in the OP Image downloaded from OP.
Thanks!! 🙂
As you said, seems like an OpenPlotter issue to me
And since i do not use it can’t offer much if any help