t4qjXH8N / ioBroker.wiffi-wz

An ioBroker adapter for the Wiffi-wz
MIT License
7 stars 5 forks source link

v1.1.0 crashes with Weatherman #1

Closed Sineos closed 6 years ago

Sineos commented 6 years ago

When trying the latest master tarball with the Weatherman, the adapter crashes:

2018-07-29 18:28:11.995  - debug: wiffi-wz.0 objectDB connected
2018-07-29 18:28:12.097  - debug: wiffi-wz.0 statesDB connected
2018-07-29 18:28:12.116  - info: wiffi-wz.0 States connected to redis: 127.0.0.1:6379
2018-07-29 18:28:12.321  - info: wiffi-wz.0 starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.wiffi-wz, node: v6.14.3
2018-07-29 18:28:12.377  - info: wiffi-wz.0 Opening socket ...
2018-07-29 18:28:12.380  - info: wiffi-wz.0 Opening local server on 0.0.0.0:8181
2018-07-29 18:28:12.407  - info: wiffi-wz.0 Server listening on 0.0.0.0:8181
2018-07-29 18:28:12.425  - info: mqtt.0 send2Server wiffi-wz.0.info.connection[undefined]
2018-07-29 18:28:12.435  - warn: mqtt.0 Cannot resolve topic name for ID: wiffi-wz.0.info.connection (object not found)
2018-07-29 18:28:12.445  - debug: wiffi-wz.0 got ip 192.168.178.82
2018-07-29 18:28:12.494  - error: wiffi-wz.0 uncaught exception: Cannot read property 'length' of undefined
2018-07-29 18:28:12.496  - error: wiffi-wz.0 TypeError: Cannot read property 'length' of undefined
at /opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:307:28
at getid (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:270:3)
at createStates (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:276:3)
at Socket. (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:331:7)
at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:316:9)
at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:241:12)
at Manager. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20)
at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8)
at Decoder. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
2018-07-29 18:28:12.500  - info: wiffi-wz.0 cleaned everything up...
2018-07-29 18:28:12.516  - info: wiffi-wz.0 terminating
2018-07-29 18:28:12.519  - info: mqtt.0 send2Server wiffi-wz.0.info.connection[undefined]
2018-07-29 18:28:12.544  - warn: mqtt.0 Cannot resolve topic name for ID: wiffi-wz.0.info.connection (object not found)
2018-07-29 18:28:12.567  - error: Caught by controller[0]: TypeError: Cannot read property 'length' of undefined
2018-07-29 18:28:12.567  - error: Caught by controller[0]:     at /opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:307:28
2018-07-29 18:28:12.568  - error: Caught by controller[0]:     at getid (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:270:3)
2018-07-29 18:28:12.568  - error: Caught by controller[0]:     at createStates (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:276:3)
2018-07-29 18:28:12.569  - error: Caught by controller[0]:     at Socket. (/opt/iobroker/node_modules/iobroker.wiffi-wz/main.js:331:7)
2018-07-29 18:28:12.569  - error:  Caught by controller[0]:     at Socket.onack  (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:316:9)
2018-07-29 18:28:12.569  - error:  Caught by controller[0]:     at Socket.onpacket  (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:241:12)
2018-07-29 18:28:12.570  - error: Caught by controller[0]:     at Manager. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
2018-07-29 18:28:12.571  - error:  Caught by controller[0]:     at Manager.Emitter.emit  (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/component-emitter/index.js:133:20)
2018-07-29 18:28:12.572  - error:  Caught by controller[0]:     at Manager.ondecoded  (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:345:8)
2018-07-29 18:28:12.572  - error: Caught by controller[0]:     at Decoder. (/opt/iobroker/node_modules/component-bind/index.js:21:15)
2018-07-29 18:28:12.573  - error: host.piheizung instance system.adapter.wiffi-wz.0 terminated with code 0 (OK)
2018-07-29 18:28:12.573  - info: host.piheizung Restart adapter system.adapter.wiffi-wz.0 because enabled
Sineos commented 6 years ago

Solved the issue: Completely remove the adapter and reinstall it. Apparently it was not able to update cleanly from a previous installation.

Anyway, many thanks for the adapter