Auch mit den neuesten Updates:
socket.io 2.1.2 auf 3.0.6
und nochmals MQTT Broker/Client 2.0.4 auf 2.1.1
kommt es zum sofortigen Absturz, wenn sich meine Webseite über Websockets/Port 1884 beim MQTT Broker anmeldet.
Gleiche Fehlermeldung wie oben.
Erst wenn ich MQTT wieder zurück auf 2.0.4 installiere, funktioniert alles wieder. Socket.io Version scheint nicht relevant zu sein.
Weiß vielleicht jemand, wo ich sonst um Hilfe fragen könnte?
Auf Github habe ich schon seit geraumer Zeit ein Issue eröffnet, aber da meldet sich auch niemand.
Hier nochmal die Fehlermeldung iobroker Logs mit MQTT Version 2.1.1:
host.ioBroker-RasPi 2020-05-04 10:06:54.647 error instance system.adapter.mqtt.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.ioBroker-RasPi 2020-05-04 10:06:54.645 error Caught by controller[0]: at Connection.Readable.push (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:245:10)
host.ioBroker-RasPi 2020-05-04 10:06:54.644 error Caught by controller[0]: at readableAddChunk (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:278:11)
host.ioBroker-RasPi 2020-05-04 10:06:54.644 error Caught by controller[0]: at addChunk (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:291:12)
host.ioBroker-RasPi 2020-05-04 10:06:54.644 error Caught by controller[0]: at Connection.emit (events.js:198:13)
host.ioBroker-RasPi 2020-05-04 10:06:54.643 error Caught by controller[0]: at Object.onceWrapper (events.js:286:20)
host.ioBroker-RasPi 2020-05-04 10:06:54.643 error Caught by controller[0]: at Connection.<anonymous> (/opt/iobroker/node_modules/mqtt-connection/connection.js:53:12)
host.ioBroker-RasPi 2020-05-04 10:06:54.642 error Caught by controller[0]: at Connection.emit (events.js:198:13)
host.ioBroker-RasPi 2020-05-04 10:06:54.642 error Caught by controller[0]: at Connection.emitPacket (/opt/iobroker/node_modules/mqtt-connection/connection.js:10:8)
host.ioBroker-RasPi 2020-05-04 10:06:54.641 error Caught by controller[0]: at Connection.emit (events.js:198:13)
host.ioBroker-RasPi 2020-05-04 10:06:54.640 error Caught by controller[0]: at Connection.client.on.options (/opt/iobroker/node_modules/iobroker.mqtt/lib/server.js:756:30)
host.ioBroker-RasPi 2020-05-04 10:06:54.638 error Caught by controller[0]: TypeError: stream.setTimeout is not a function
mqtt.0 2020-05-04 10:06:53.460 info (6894) terminating
mqtt.0 2020-05-04 10:06:53.405 warn (6894) Terminated (UNCAUGHT_EXCEPTION): Without reason
mqtt.0 2020-05-04 10:06:52.026 error at Connection.Readable.push (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:245:10)
mqtt.0 2020-05-04 10:06:52.026 error at readableAddChunk (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:278:11)
mqtt.0 2020-05-04 10:06:52.026 error at addChunk (/opt/iobroker/node_modules/readable-stream/lib/_stream_readable.js:291:12)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.emit (events.js:198:13)
mqtt.0 2020-05-04 10:06:52.026 error at Object.onceWrapper (events.js:286:20)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.<anonymous> (/opt/iobroker/node_modules/mqtt-connection/connection.js:53:12)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.emit (events.js:198:13)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.emitPacket (/opt/iobroker/node_modules/mqtt-connection/connection.js:10:8)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.emit (events.js:198:13)
mqtt.0 2020-05-04 10:06:52.026 error at Connection.client.on.options (/opt/iobroker/node_modules/iobroker.mqtt/lib/server.js:756:30)
mqtt.0 2020-05-04 10:06:52.026 error (6894) TypeError: stream.setTimeout is not a function
mqtt.0 2020-05-04 10:06:52.025 error (6894) uncaught exception: stream.setTimeout is not a function
mqtt.0 2020-05-04 10:06:51.784 info (6894) Client [SCHATZ-COUNTDOWN-70185] connected with secret 1588579611759_4423
mqtt.0 2020-05-04 10:06:51.321 info (6894) Starting MQTT -WebSocket' server on port 1884
mqtt.0 2020-05-04 10:06:51.319 info (6894) Starting MQTT ' server on port 1883
mqtt.0 2020-05-04 10:06:49.412 info (6894) starting. Version 2.1.1 in /opt/iobroker/node_modules/iobroker.mqtt, node: v10.19.0
Und hier das gleiche Verhalten mit MQTT Version 2.0.4:
mqtt.0 2020-05-04 10:07:28.228 info (7360) Client [SCHATZ-COUNTDOWN-70185] subscribes on topic "SCHATZ/"
mqtt.0 2020-05-04 10:07:28.023 info (7360) Client [SCHATZ-COUNTDOWN-70185] connected with secret 1588579648006_4897
mqtt.0 2020-05-04 10:07:14.470 info (7360) Starting MQTT -WebSocket' server on port 1884
mqtt.0 2020-05-04 10:07:14.467 info (7360) Starting MQTT ' server on port 1883
mqtt.0 2020-05-04 10:07:12.709 info (7360) starting. Version 2.0.4 in /opt/iobroker/node_modules/iobroker.mqtt, node: v10.19.0
Danach keine Fehlermeldung. Es läuft und läuft.