You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up the Roon Core node as per instructions and added the sample flow. I saw an extension appear in Roon, which I enabled.
Adding Debug nodes to the sample flow, I see data flowing, and I can see MQTT topics populating as well. So everything seems to be working.
However, after initial Node-Red startup, if I click 'Deploy', Node-Red will crash. My Node-Red (v2.1.4) runs in a docker, and if I inspect the log, I see that Roon Core is causing an error that seems to be the cause of the crash. If I restart Node-Red docker, all is well, until the next deploy.
Here's the relevant portion of the log file that shows the roon-core node crashing after the deploy command stops and restarts node and flows;
8 Dec 21:21:01 - [info] Stopping flows
8 Dec 21:21:01 - [info] [udp out:64342634.2e1408] udp output stopped
8 Dec 21:21:01 - [info] [udp out:230fb82.e504748] udp output stopped
8 Dec 21:21:01 - [info] [udp in:770903fa.bb1aec] udp listener stopped
8 Dec 21:21:01 - [info] [denon-in:Marantz] Closed
8 Dec 21:21:01 - [info] [denon-connection:AV8805] Closed
8 Dec 21:21:01 - [info] [denon-connection:AV8805] Disconnected
8 Dec 21:21:01 - [info] Stopped flows
8 Dec 21:21:01 - [info] Starting flows
8 Dec 21:21:01 - [info] Started flows
8 Dec 21:21:01 - [info] [udp in:770903fa.bb1aec] udp listener at 0.0.0.0:10000
8 Dec 21:21:01 - [info] [mqtt-broker:mqtt local broker] Connected to broker: presencedetector@mqtt://192.168.1.199:1883
8 Dec 21:21:01 - [info] [mqtt-broker:c9cd3208.c4535] Connected to broker: mqtt://192.168.1.199:1883
8 Dec 21:21:01 - [info] [mqtt-broker:8d10f29d.66b98] Connected to broker: mqtt://localhost:1883
-> REQUEST 0 com.roonlabs.registry:1/info
<- COMPLETE 0 Success {"core_id":"e2634122-d408-4430-9584-59ca7937fd8e","display_name":"UNRAID","display_version":"1.8 (build 850) stable"}
-> REQUEST 1 com.roonlabs.registry:1/register {"extension_id":"com.jac459.nodeRedRoon","display_name":"Roon Core","display_version":"0.9.9","publisher":"jac459","email":"[email protected]","required_services":["com.roonlabs.transport:2","com.roonlabs.image:1","com.roonlabs.browse:1"],"optional_services":[],"provided_services":["com.roonlabs.status:1","com.roonlabs.pairing:1","com.roonlabs.ping:1"],"website":"https://github.com/jac459/roon-node-red","token":"c034a86f-7d99-439a-8c85-32bd438e3a7d"}
MOO: empty message received
-> REQUEST 22 com.roonlabs.transport:2/get_zones
8 Dec 21:21:01 - [red] Uncaught Exception:
8 Dec 21:21:01 - [error] TypeError: Cannot read property 'send' of undefined
at Transport.send (/data/node_modules/node-roon-api/transport-websocket.js:32:13)
at Moo.send_request (/data/node_modules/node-roon-api/moo.js:75:24)
at RoonApiTransport.get_zones (/data/node_modules/node-roon-api-transport/lib.js:339:19)
at /data/node_modules/roon-core/roon.js:33:31
at /data/node_modules/node-roon-api-transport/lib.js:375:41
at /data/node_modules/node-roon-api/moo.js:27:37
at /data/node_modules/node-roon-api/moo.js:204:10
at Array.forEach (<anonymous>)
at Moo.clean_up (/data/node_modules/node-roon-api/moo.js:202:32)
at Transport.moo.transport.onclose (/data/node_modules/node-roon-api/lib.js:384:13)
at Transport.close (/data/node_modules/node-roon-api/transport-websocket.js:43:14)
at WebSocket.Transport.ws.onmessage (/data/node_modules/node-roon-api/transport-websocket.js:24:18)
at WebSocket.onMessage (/data/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:400:28)
at Receiver.receiverOnMessage (/data/node_modules/ws/lib/websocket.js:800:20)
at Receiver.emit (events.js:400:28)
at Receiver.dataMessage (/data/node_modules/ws/lib/receiver.js:413:14)
at Receiver.getData (/data/node_modules/ws/lib/receiver.js:352:17)
at Receiver.startLoop (/data/node_modules/ws/lib/receiver.js:138:22)
at Receiver._write (/data/node_modules/ws/lib/receiver.js:74:10)
at writeOrBuffer (internal/streams/writable.js:358:12)
at Receiver.Writable.write (internal/streams/writable.js:303:10)
at Socket.socketOnData (/data/node_modules/ws/lib/websocket.js:875:35)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
The text was updated successfully, but these errors were encountered:
I have set up the Roon Core node as per instructions and added the sample flow. I saw an extension appear in Roon, which I enabled.
Adding Debug nodes to the sample flow, I see data flowing, and I can see MQTT topics populating as well. So everything seems to be working.
However, after initial Node-Red startup, if I click 'Deploy', Node-Red will crash. My Node-Red (v2.1.4) runs in a docker, and if I inspect the log, I see that Roon Core is causing an error that seems to be the cause of the crash. If I restart Node-Red docker, all is well, until the next deploy.
Here's the relevant portion of the log file that shows the roon-core node crashing after the deploy command stops and restarts node and flows;
The text was updated successfully, but these errors were encountered: