Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Starts, detects my meross devices, then crashes. Any clue ??? #17

Open
silkyclouds opened this issue Sep 16, 2022 · 0 comments
Open

Starts, detects my meross devices, then crashes. Any clue ??? #17

silkyclouds opened this issue Sep 16, 2022 · 0 comments

Comments

@silkyclouds
Copy link

silkyclouds commented Sep 16, 2022

Hi there,

It starts, I can see my devices listed when running pm2 logs, but here is what happens next :

0|meross2domoticz | TypeError: Cannot read properties of undefined (reading 'filter')
0|meross2domoticz | at Object.callback (/root/Meross2Domoticz/meross2domoticz.js:552:50)
0|meross2domoticz | at MerossCloudDevice.handleMessage (/root/Meross2Domoticz/node_modules/meross-cloud/index.js:472:62)
0|meross2domoticz | at MqttClient. (/root/Meross2Domoticz/node_modules/meross-cloud/index.js:358:46)
0|meross2domoticz | at MqttClient.emit (node:events:513:28)
0|meross2domoticz | at MqttClient._handlePublish (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/mqtt/lib/client.js:1547:12)
0|meross2domoticz | at MqttClient._handlePacket (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/mqtt/lib/client.js:535:12)
0|meross2domoticz | at work (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/mqtt/lib/client.js:438:12)
0|meross2domoticz | at writable._write (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/mqtt/lib/client.js:452:5)
0|meross2domoticz | at doWrite (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/readable-stream/lib/_stream_writable.js:409:139)
0|meross2domoticz | at writeOrBuffer (/root/Meross2Domoticz/node_modules/meross-cloud/node_modules/readable-stream/lib/_stream_writable.js:398:5)
PM2 | App [meross2domoticz:0] exited with code [1] via signal [SIGINT]

Just to be 100% precise here:

I an see the connection to mqtt is happening, then the script crashes for the above reason, resulting in this :

1663316978: New connection from ::1:48332 on port 1883.
1663316978: New client connected from ::1:48332 as mqttjs_0ed6f13f (p2, c1, k60, u'user').
1663316988: Client mqttjs_0ed6f13f closed its connection.
1663316991: New connection from ::1:48334 on port 1883.
1663316991: New client connected from ::1:48334 as mqttjs_58cf08cb (p2, c1, k60, u'user').
1663316998: Client mqttjs_58cf08cb closed its connection.

it simply keeps connecting and disconnecting due to the fact the script chrashes and restarts in loop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant