SignalK / node-red-embedded

Node red nodes for use with the signalk-node-red plugin
Apache License 2.0
12 stars 2 forks source link

Node red crashes when adding nodes ( signalk-input-handler ) #33

Closed torbenaa closed 1 year ago

torbenaa commented 1 year ago

Running on Victron Cerbo-S ( Venus OS Large ) . When I enable the module, add a node and deploys, my server crashes and I see this in the logs :

@400000006567c60404957834 @400000006567c60404957c1c Welcome to Node-RED @400000006567c604049583ec =================== @400000006567c604049587d4 @400000006567c6040569e704 29 Nov 23:15:06 - [info] Node-RED version: v3.0.2 @400000006567c60405c93574 29 Nov 23:15:06 - [info] Node.js version: v18.16.0 @400000006567c60405ef013c 29 Nov 23:15:06 - [info] Linux 5.10.109-venus-12 arm LE @400000006567c60c13fca93c 29 Nov 23:15:14 - [info] Loading palette nodes @400000006567c614198bc5a4 29 Nov 23:15:22 - [info] Settings file : /usr/lib/node_modules/node-red/venus-settings.js @400000006567c6141a1bc8d4 29 Nov 23:15:22 - [info] Context store : 'default' [module=memory] @400000006567c6141bc28f4c 29 Nov 23:15:22 - [info] User directory : /data/home/nodered/.node-red @400000006567c6141be4193c 29 Nov 23:15:22 - [warn] Projects disabled : editorTheme.projects.enabled=false @400000006567c6141c9884bc 29 Nov 23:15:22 - [info] Flows file : /data/home/nodered/.node-red/flows.json @400000006567c6151c534dfc 29 Nov 23:15:23 - [info] Server now running at http://127.0.0.1:1880/ @400000006567c615284a3774 29 Nov 23:15:23 - [warn] @400000006567c615284a56b4 @400000006567c615284a5a9c --------------------------------------------------------------------- @400000006567c615284a6a3c Your flow credentials file is encrypted using a system-generated key. @400000006567c615284a75f4 @400000006567c615284a79dc If the system-generated key is lost for any reason, your credentials @400000006567c615284a8594 file will not be recoverable, you will have to delete it and re-enter @400000006567c615284a914c your credentials. @400000006567c615284d0e04 @400000006567c615284d15d4 You should set your own key using the 'credentialSecret' option in @400000006567c615284d218c your settings file. Node-RED will then re-encrypt your credentials @400000006567c615284d2d44 file using your chosen key the next time you deploy a change. @400000006567c615284d38fc --------------------------------------------------------------------- @400000006567c615284d44b4 @400000006567c6152dd690d4 29 Nov 23:15:23 - [info] Starting flows @400000006567c6161bda16bc 29 Nov 23:15:24 - [error] [signalk-input-handler:dc2f5c0d8733db7f] TypeError: Cannot read properties of undefined (reading 'registerDeltaInputHandler') @400000006567c6161c98d6c4 29 Nov 23:15:24 - [info] Started flows @400000006567c61626d1d3fc 29 Nov 23:15:24 - [info] [mqtt-broker:Stoffer MTQQ] Connected to broker: xxxxxxxxxxxxx @400000006567c61b1cd13c44 29 Nov 23:15:29 - [red] Uncaught Exception: @400000006567c61b1d006294 29 Nov 23:15:29 - [error] TypeError: Cannot read properties of undefined (reading 'subscribe') @400000006567c61b1d0089a4 at Timeout._onTimeout (/data/home/nodered/.node-red/node_modules/@signalk/node-red-embedded/signalk-subscribe.js:124:16) @400000006567c61b1d00a114 at listOnTimeout (node:internal/timers:569:17) @400000006567c61b1d00accc at process.processTimers (node:internal/timers:512:7) @400000006567c61b1faa2da4 starting node-red-venus

torbenaa commented 1 year ago

Sorry - my bad. I did not install the embedded nodes :(