ioBroker / ioBroker.sonos

Control and monitor SONOS player from ioBroker
MIT License
37 stars 20 forks source link

State has no existing object, this might lead to an error in future versions #156

Closed tmycgn closed 2 years ago

tmycgn commented 2 years ago

Neuerdings erhalte ich eine neue Warnung bei mindestens dem Start des Adapters:

image

Modell ARMv7 Processor rev 3 (v7l)
Node.js v14.19.3
NPM 6.14.14
ioBroker 5.4.9
Sonos Adapter 2.1.7
Apollon77 commented 2 years ago

Pleease send a debug log from adapter start till such an info

tmycgn commented 2 years ago

Sure, thanks!

2022-06-03 22:18:23.979 - debug: sonos.0 (18768) Redis Objects: Use Redis connection: 127.0.0.1:9001
2022-06-03 22:18:24.077 - debug: sonos.0 (18768) Objects client ready ... initialize now
2022-06-03 22:18:24.110 - debug: sonos.0 (18768) Objects create System PubSub Client
2022-06-03 22:18:24.111 - debug: sonos.0 (18768) Objects create User PubSub Client
2022-06-03 22:18:24.241 - debug: sonos.0 (18768) Objects client initialize lua scripts
2022-06-03 22:18:24.250 - debug: sonos.0 (18768) Objects connected to redis: 127.0.0.1:9001
2022-06-03 22:18:24.254 - silly: sonos.0 (18768) redis psubscribe cfg.o.system.user.*
2022-06-03 22:18:24.306 - silly: sonos.0 (18768) redis psubscribe cfg.o.enum.*
2022-06-03 22:18:24.316 - silly: sonos.0 (18768) objectDB connected
2022-06-03 22:18:24.321 - debug: sonos.0 (18768) Redis States: Use Redis connection: 127.0.0.1:9000
2022-06-03 22:18:24.379 - debug: sonos.0 (18768) States create System PubSub Client
2022-06-03 22:18:24.380 - debug: sonos.0 (18768) States create User PubSub Client
2022-06-03 22:18:24.460 - debug: sonos.0 (18768) States connected to redis: 127.0.0.1:9000
2022-06-03 22:18:24.461 - silly: sonos.0 (18768) statesDB connected
2022-06-03 22:18:25.169 - info: sonos.0 (18768) starting. Version 2.1.7 in /opt/iobroker/node_modules/iobroker.sonos, node: v14.19.3, js-controller: 4.0.23
2022-06-03 22:18:25.233 - silly: sonos.0 (18768) States system redis pmessage system.adapter.sonos.0.logLevel/system.adapter.sonos.0.logLevel:{"val":"silly","ack":true,"ts":1654287505217,"q":0,"from":"system.adapter.sonos.0","lc":1654287505217}
2022-06-03 22:18:25.766 - warn: sonos.0 (18768) State "sonos.0.root.192_168_20_131.members" has no existing object, this might lead to an error in future versions
2022-06-03 22:18:25.767 - warn: sonos.0 (18768) State "sonos.0.root.192_168_20_130.members" has no existing object, this might lead to an error in future versions
2022-06-03 22:18:26.048 - silly: sonos.0 (18768) States user redis pmessage sonos.0.*/sonos.0.root.192_168_20_131.members:{"val":"Wohnen","ack":true,"ts":1654287505838,"q":0,"from":"system.adapter.sonos.0","user":"system.user.admin","lc":1653235960724}
2022-06-03 22:18:26.049 - silly: sonos.0 (18768) States user redis pmessage sonos.0.*/sonos.0.root.192_168_20_130.members:{"val":"Treppe","ack":true,"ts":1654287505838,"q":0,"from":"system.adapter.sonos.0","user":"system.user.admin","lc":1653798695691}
Apollon77 commented 2 years ago

Please install version from GitHub and post new debug log (Github install can take up to t10+mins when done with npm6 ... just wait). Thank you

tmycgn commented 2 years ago

Unfortunately I am not able to select an adapter via the pulldown. Seems to have something to do with the newly installed ioBroker version 6. :( Can I install it otherwise?

Update: Installed via URL

Process exited with code 0
$ iobroker url https://github.com/ioBroker/ioBroker.sonos --host raspberrypi --debug
install ioBroker/ioBroker.sonos#c16fc7705be209cc62d96d69cd6b01ace17bbf38
NPM version: 6.14.14
Installing ioBroker/ioBroker.sonos#c16fc7705be209cc62d96d69cd6b01ace17bbf38... (System call)
npm WARN @zwave-js/log-transport-json@2.0.1 requires a peer of winston@^3.7.2 but none is installed. You must install peer dependencies yourself.
removed 15 packages and updated 3 packages in 316.439s
upload [13] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/de/translations.json i18n/de/translations.json application/json
upload [12] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/en/translations.json i18n/en/translations.json application/json
upload [11] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/es/translations.json i18n/es/translations.json application/json
upload [10] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
upload [9] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/it/translations.json i18n/it/translations.json application/json
upload [8] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
upload [7] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
upload [5] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
upload [3] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/index.html index.html text/html
upload [1] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/sonos.png sonos.png image/png
upload [0] sonos.admin /opt/iobroker/node_modules/iobroker.sonos/admin/words.js words.js application/javascript
Update "system.adapter.sonos.0"
Process exited with code 0

Restarting Adapter Debug Log

sonos.0 | 2022-06-05 10:43:43.610 | silly | States user redis pmessage sonos.0.*/sonos.0.root.192_168_20_131.members:{"val":"Wohnen","ack":true,"ts":1654418623591,"q":0,"from":"system.adapter.sonos.0","user":"system.user.admin","lc":1653235960724}
-- | -- | -- | --
sonos.0 | 2022-06-05 10:43:43.601 | silly | States user redis pmessage sonos.0.*/sonos.0.root.192_168_20_130.members:{"val":"Treppe","ack":true,"ts":1654418623591,"q":0,"from":"system.adapter.sonos.0","user":"system.user.admin","lc":1653798695691}
sonos.0 | 2022-06-05 10:43:43.586 | warn | State "sonos.0.root.192_168_20_131.members" has no existing object, this might lead to an error in future versions
sonos.0 | 2022-06-05 10:43:43.584 | warn | State "sonos.0.root.192_168_20_130.members" has no existing object, this might lead to an error in future versions
sonos.0 | 2022-06-05 10:43:43.119 | debug | Process channel: sonos.0.root.192_168_20_156
sonos.0 | 2022-06-05 10:43:43.052 | debug | Process channel: sonos.0.root.192_168_20_252
sonos.0 | 2022-06-05 10:43:43.051 | debug | Channels of root: [{"type":"channel","common":{"role":"media.music","name":"Wohnzimmer"},"native":{"ip":"192.168.20.252"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1652767779295,"_id":"sonos.0.root.192_168_20_252","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}},{"type":"channel","common":{"role":"media.music","name":"Flur"},"native":{"ip":"192.168.20.156"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1652767780208,"_id":"sonos.0.root.192_168_20_156","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}}]
sonos.0 | 2022-06-05 10:43:43.008 | debug | Initialize known devices: [{"type":"device","common":{"name":"root"},"native":{},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1652767710637,"_id":"sonos.0.root","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}}]
sonos.0 | 2022-06-05 10:43:42.949 | silly | States system redis pmessage system.adapter.sonos.0.logLevel/system.adapter.sonos.0.logLevel:{"val":"silly","ack":true,"ts":1654418622928,"q":0,"from":"system.adapter.sonos.0","lc":1654418622928}
sonos.0 | 2022-06-05 10:43:42.872 | info | starting. Version 2.1.7 (non-npm: ioBroker/ioBroker.sonos#c16fc7705be209cc62d96d69cd6b01ace17bbf38) in /opt/iobroker/node_modules/iobroker.sonos, node: v14.19.3, js-controller: 4.0.23
sonos.0 | 2022-06-05 10:43:42.194 | silly | statesDB connected
sonos.0 | 2022-06-05 10:43:42.193 | debug | States connected to redis: 127.0.0.1:9000
sonos.0 | 2022-06-05 10:43:42.116 | debug | States create User PubSub Client
sonos.0 | 2022-06-05 10:43:42.114 | debug | States create System PubSub Client
sonos.0 | 2022-06-05 10:43:42.036 | debug | Redis States: Use Redis connection: 127.0.0.1:9000
sonos.0 | 2022-06-05 10:43:42.032 | silly | objectDB connected
sonos.0 | 2022-06-05 10:43:42.024 | silly | redis psubscribe cfg.o.enum.*
sonos.0 | 2022-06-05 10:43:41.981 | silly | redis psubscribe cfg.o.system.user.*
sonos.0 | 2022-06-05 10:43:41.977 | debug | Objects connected to redis: 127.0.0.1:9001
sonos.0 | 2022-06-05 10:43:41.970 | debug | Objects client initialize lua scripts
sonos.0 | 2022-06-05 10:43:41.860 | debug | Objects create User PubSub Client
sonos.0 | 2022-06-05 10:43:41.857 | debug | Objects create System PubSub Client
sonos.0 | 2022-06-05 10:43:41.833 | debug | Objects client ready ... initialize now

However, restarting apparently results in the same issue. or do i have to reinstall the adapter after GitHub Install again? Never did that before...

Thanks Thomas

Apollon77 commented 2 years ago

Can you please show me a screenshot of the object structure from e.g.sonos.0.root.192_168_20_252 and the below objects ... especially "members" ... I want to see how the "objects" tab looks for these states ...

Apollon77 commented 2 years ago

Especially: Are the devices with IP .130/.131 at the end also set in adapter configuration?

tmycgn commented 2 years ago

Oh!... no, seem to be the wrong IP's... :o Will search for devices again, delete the old ones incl. object tree an restart the adapter, ok?

image

image

Apollon77 commented 2 years ago

But ok that proofs my assumption... I add a fix

Apollon77 commented 2 years ago

Ok, GitHub Adapter at least now checks if ip is configured before trying to set "members" state ... so GitHub version should generate no logs with your old config