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 ?
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
This means that the socketcan library is not installed.
Did you recently update the sk server?
Or update nodejs?
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?
I would do this https://github.com/SignalK/signalk-server/wiki/FAQ:-Frequently-Asked-Questions#somethings-wrong-i-need-to-reinstall--reset-my-system
GitHub
FAQ: Frequently Asked Questions
An implementation of a Signal K central server for boats. - SignalK/signalk-server
But not sure if that works with openplotter
There’s a thread somewhere about this issue and openplotter, trying to find it…
GitHub
Node version bump from 18-12 to 20-22 · Issue #1928 · SignalK/sig...
Time to leave Node 18 behind and move on to 22, 18 LTS is ending in May: https://nodejs.org/en/about/previous-releases
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!