Venus Plugin stopping on CerboGX V3.30 / SK 2.50

The pre-installed Victron venus plugin stops delivering GX data within SignalK after a undefined period of time (after 2min or up to 4h). Other plugins are working flawless. I did not change the venus plugin settings. Data sets are either internal data created by the CerboGX like electrical.venus.totalPanelPower (venus.com.victronenergy.system) electrical.venus.totalPanelCurrent (venus.com.victronenergy.system) or delivered data from ET112 electrical.grid.31.power (venus.com.victronenergy.grid.cgwacs_ttyUSB1_mb1) Disabling and enabling the plugin brings the plugin back to life. Error in ServerLog: Mar 25 16:53:57 TypeError: Cannot set properties of undefined (setting 'deviceInstance') at Object.<anonymous> (/usr/lib/node_modules/signalk-server/node_modules/signalk-venus-plugin/dbus-listener.js:82:44) at EventEmitter.<anonymous> (/usr/lib/node_modules/signalk-server/node_modules/dbus-native/lib/bus.js:110:19) at EventEmitter.emit (node:events:529:35) at /usr/lib/node_modules/signalk-server/node_modules/dbus-native/index.js:106:14 at Socket.<anonymous> (/usr/lib/node_modules/signalk-server/nodemodules/dbus-native/lib/message.js:55:9) at Socket.emit (node:events:517:28) at emitReadable (node:internal/streams/readable:601:12) at process.processTicksAndRejections (node:internal/process/task_queues:81:21) Mar 25 17:10:44 POST /skServer/plugins/venus/config 200 27.129 ms - 36 Mar 25 17:10:44 GET /skServer/plugins 200 65.267 ms - - Mar 25 17:11:02 POST /skServer/plugins/venus/config 200 18.321 ms - 36 Mar 25 17:11:02 GET /skServer/plugins 200 127.006 ms - - Mar 25 17:11:10 GET /skServer/debugKeys 304 24.884 ms - - Any idea what to do, any suggetsion for missing or wrong config?
5 Replies
Teppo Kurki
Teppo Kurki8mo ago
ping @Scott Bender
Scott Bender
Scott Bender8mo ago
Checking… Am I crazy? How that even possible? hmm... @x4y5z6 can you turn on debug for the venus plugin, then look for messages like 'com.victronenergy.settings is ":1.53"' and 'warning: error getting device instance for com.victronenergy.settings' those messages would be right before the error above Also updated the github issue...
Scott Bender
Scott Bender8mo ago
@Teppo Kurki can you look at that code? I don't understand how this could even happen. https://github.com/sbender9/signalk-venus-plugin/blob/7afde8cac0d9e5feca9d9d9f93106cf572076636/dbus-listener.js#L82
GitHub
signalk-venus-plugin/dbus-listener.js at 7afde8cac0d9e5feca9d9d9f93...
reading venus-style dbus signals to go into signalk - sbender9/signalk-venus-plugin
Teppo Kurki
Teppo Kurki8mo ago
Name_owner_changed deleted the entry between init invocation and the callback getting called
Scott Bender
Scott Bender8mo ago
Ahh. That would do it. Thanks! I published a fix
Want results from more Discord servers?
Add your server