SK
Signal K2mo ago
Kees

Kees - I am getting errors with the new n2kais ...

I am getting errors with the new n2kais to NMEA plugin version. Since installing that update my ais does not send through anymore. The plugin keeps marked as uninstalled even when I install. In the error log it says Plugin not registered and after that it gets this: Aug 07 13:02:44 (node:53140) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 delta listeners added to [FullSignalK]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)
11 Replies
Scott Bender
Scott Bender2mo ago
Can you check the System Log at startup, any errors?
Kees
KeesOP2mo ago
Seems same error reported here https://github.com/sbender9/signalk-n2kais-to-nmea0183/issues/17 Sorry for images but copy pasting hard on. Mobile. Currently sailing haha
Kees
KeesOP2mo ago
No description
No description
No description
Kees
KeesOP2mo ago
When I try to update to the new signalk version .14, after restarting after updating it shows still updage available and so update failed (same for when I try to install the N2k ais again)
Scott Bender
Scott Bender2mo ago
hmm. you may have two different issues do you know how to revert to the previous version of the plugin? and which version of the server are you currently running?
Kees
KeesOP2mo ago
I don’t know how to revert, I guess some manual npm install? I am running 2.13.5
Scott Bender
Scott Bender2mo ago
cd ~/.signalk
npm install signalk-n2kais-to-nmea0183@1.5.0
cd ~/.signalk
npm install signalk-n2kais-to-nmea0183@1.5.0
I'll let you know when I figure out what the issue is with the new version
Kees
KeesOP2mo ago
Reverting to 1.5.0 did work to fix the n2kais part I now only have this one: Aug 08 10:51:02 (node:126803) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 delta listeners added to [FullSignalK]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created), but that would likely not be related to that plugin Just to come back on this. When trying to install new SK server version 2.15.3, it installs successfully, but then reboot it still boots my old version. What logs should i check what's happening?
Kees
KeesOP2mo ago
Thanks, not sure if i understand correctly though. I have directory /usr/lib/node_modules, but not /usr/local/lib/node_modules. The FAQ states i have to see both? And this is what signalk-server use: pi@openplotter:~/.signalk/node_modules $ ls -l $HOME/.signalk/signalk-server -rwxrwxr-x 1 pi pi 174 Apr 24 2024 /home/pi/.signalk/signalk-server seems i managed to fix that with chatgpt. running 2.13.5 now
doug kimmerly
doug kimmerly18h ago
Can you please share how you fixed it I've been getting the MaxListenersExceededWarning on one of my servers for a while now always at startup. Its a fairly busy server with over 1000 paths and 12 ws clients

Did you find this page helpful?