This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No NMEA data into SignalK - errors i serverlog
#1
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" it looks like it's a lot going on there:

This type of messages are rolling:

can0  0DF0100F  [8]  8C F0 06 4E D0 4D 10 2C
can0  09F8010F  [8]  81 1B 3E 23 F5 15 19 06
can0  09F8020F  [8]  8C FC 8F BD 00 00 FF FF
can0  19F11A0F  [8]  8C 01 06 4E 14 03 FF FF
can0  0DF1190F  [8]  49 C1 BB 11 00 11 00 FF

Inside SignalK i have got the new connection calles "can0" but it's dead. When looking in serverlog I find this. I asume it's the reason that I dont have any data from NMEA inside SignalK:

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


Any tips on how to adress this? I'm not a programmer, but i have quite good computer skils.
Reply
#2
In the time this tool to be moderated, I've solved it. But it seems it could be a bug in the OP image?

I used the "Reinstall SignalK" button in the "SignalK installer" app and it did not fix it. The image seems to come with a 2.8 SignalK installation, so I got a message in SK to "update to 2.10". Tried it and nothing happened. Waited for 10 mins and rebooted, still SK 2.8 and no can0 traffic.

I got a tip on the Discord server for SignalK to stop SignalK, delete the folder /usr/lib/node_modules/signalk-server and install SignalK again.

So I did. Used "SignalK installer" to install it. Voila. It gave me 2.10 and now can0 works.

This leads me to think that the SignalK installation in the "OpenPlotter Touchscreen" Official image Download is broken?
Reply
#3
I do not think it is broken. This a recurrent issue I have never experimented but it has been already reported. It seems that something gets corrupted after a failing update. Maybe removing /usr/lib/node_modules/signalk-server to the re-installtion process in openplotter-signalk-installer could help
Reply
#4
Just had the same issue and resolved it following https://github.com/SignalK/signalk-server/issues/1870
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)