SK
Signal K4mo ago
ptryk

can0 Cannot read properties of undefined (reading 'createRawChannelWithOptions')

Hi! I have a pi5 8gb with pican-m and trying to get my garmin nmea 2k network and info into signal k and feel I am stuck after trying a few things and digging about online. I have been going through the instructions from sk pang (pican-m, here: https://www.skpang.co.uk/products/pican-m-with-can-bus-micro-c-and-rs422-connector-3a-smps) and while I get a stream of data I do not get anything in signal k .. the error i have in the dashboard under the entity is: can0
Cannot read properties of undefined (reading 'createRawChannelWithOptions') looking at can0 settings it seems it should choose a number but it seems the data/id's (?) are maybe in hex via MCP2515 ?
6 Replies
Scott Bender
Scott Bender4mo ago
This means that the socketcan library is not installed. Did you recently update the sk server? Or update nodejs?
ptryk
ptrykOP4mo ago
just found a similar error listed here .. seems i should reinistall? it is a pretty new install and i have updated this message: https://discord.com/channels/1170433917761892493/1385985156535419000 I will give it a try - should it work via the openplotter installer you think?
Scott Bender
Scott Bender4mo ago
But not sure if that works with openplotter There’s a thread somewhere about this issue and openplotter, trying to find it…
ptryk
ptrykOP4mo ago
thanks for this!! ok, so I have run sudo npm install -g signalk-server@2.13.5 .. then renamed the folder it errored on .. then restarted and it seems to no longer error! I will check it connected to the n2k network tomorrow. I did try using the openplotter but it said as well it was using the nodejs version that seems to be the issue.. so I did the above. thanks for your help!

Did you find this page helpful?