EzloControler access credentials timeout?
-
I have Multi-System reactor set to with both my Vera Plus and Ezlo Plus - and up to a while ago, both were working. Recently, however, I noticed that it didn't seem to be communicating with my Ezlo Plus correctly. Looking at the logs, I see this:
[latest-22337]2022-12-09T03:44:49.980Z <EzloController:INFO> EzloController#ezlo: connecting to hub "90XXXXXX" [latest-22337]2022-12-09T03:44:49.980Z <EzloController:ERR> EzloController#ezlo: failed to get access credentials: [FetchError] network timeout at: https://vera-us-oem-autha11.mios.com/autha/auth/username/reactor?SHA1Password=<long_string>c&PK_Oem=1&TokenVersion=2 [-] [latest-22337]2022-12-09T03:44:49.980Z <EzloController:INFO> EzloController#ezlo will retry in 75000ms; this was attempt 17
So apparently it is getting a timeout when trying to connect to vera to authorize? How can I fix this, or does it simply not work any more?
-
Is your Ezlo username really
reactor
? That seems a bit odd...Edit: I'm having no trouble connecting with (my own) correct account credentials.
-
Yes, I set up a user specifically for reactor to use, with a username of reactor. Also, as I mentioned, when I originally set this up a while ago, it did work - only recently has it stopped working. Of course, if the user/password WAS wrong, (or something changed so it wouldn't work any more) I would expect a different error than "network timeout"
-
OK. Well, not having any problems with my regular access credentials. EzloController is working.
-
Checking the log again this morning, I now have a different error - apparently whatever was causing the network timeout was resolved, but now I'm getting this (after a restart of reactor):
[latest-22337]2022-12-09T14:29:41.939Z <EzloController:INFO> EzloController#ezlo successful local connection (authenticated) to "90000478" [latest-22337]2022-12-09T14:29:41.940Z <EzloController:INFO> EzloController#ezlo starting hub inventory [latest-22337]2022-12-09T14:29:41.980Z <EzloController:INFO> EzloController#ezlo hub "90000478" is h2.1 (undefined) firmware "2.0.33.2116.2" [latest-22337]2022-12-09T14:29:41.980Z <System:WARN> System#ezlo>system attempt by caller to set attribute value to undefined [latest-22337]2022-12-09T14:29:41.980Z <System:CRIT> Error: traceback [-] Error: traceback at System.setAttribute (/opt/reactor/server/lib/Entity.js:454:152) at EzloController._process_hub_info (/opt/reactor/server/lib/EzloController.js:1516:768) at /opt/reactor/server/lib/EzloController.js:1354:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.138Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_5f5199de12a3b716d5ba2969: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.138Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.139Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_5f5199de12a3b716d5ba296c: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.139Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.141Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_5f5199de12a3b716d5ba296e: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.141Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.142Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_5f5199de12a3b716d5ba2970: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.142Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.143Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_5f63e44712a3b715b80ffcd2: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.143Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.146Z <EzloController:ERR> EzloController#ezlo error creating entity SecuritySensor#ezlo>device_618063af12a3b712364c7dc8: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] [latest-22337]2022-12-09T14:29:42.146Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.148Z <EzloController:ERR> EzloController#ezlo error creating entity ValueSensor#ezlo>device_618063af12a3b712364c7dcf: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] [latest-22337]2022-12-09T14:29:42.149Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.150Z <EzloController:ERR> EzloController#ezlo error creating entity ValueSensor#ezlo>device_618063af12a3b712364c7dd1: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] [latest-22337]2022-12-09T14:29:42.150Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.153Z <EzloController:ERR> EzloController#ezlo error creating entity ValueSensor#ezlo>device_618063af12a3b712364c7dd3: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] [latest-22337]2022-12-09T14:29:42.154Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f8012a3b72072c17b25 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.155Z <EzloController:ERR> EzloController#ezlo error creating entity Light#ezlo>device_6182b52012a3b7121fd6594b: [ReferenceError] Capability sys_group not extended (ezlo>room_5fed146312a3b716fad9f58d [-] [latest-22337]2022-12-09T14:29:42.155Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5fed146312a3b716fad9f58d [-] ReferenceError: Capability sys_group not extended (ezlo>room_5fed146312a3b716fad9f58d at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.157Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_618ff90912a3b7122edeaccd: [ReferenceError] Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] [latest-22337]2022-12-09T14:29:42.157Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 [-] ReferenceError: Capability sys_group not extended (ezlo>room_5f451f7512a3b72072c17b24 at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.158Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_61901ff112a3b71209e73282: [ReferenceError] Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a [-] [latest-22337]2022-12-09T14:29:42.159Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a [-] ReferenceError: Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.160Z <EzloController:ERR> EzloController#ezlo error creating entity Switch#ezlo>device_6190203012a3b71209e73286: [ReferenceError] Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a [-] [latest-22337]2022-12-09T14:29:42.160Z <EzloController:CRIT> ReferenceError: Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a [-] ReferenceError: Capability sys_group not extended (ezlo>room_6190206412a3b71209e7328a at Group.setAttribute (/opt/reactor/server/lib/Entity.js:460:19) at Group.setAttributes (/opt/reactor/server/lib/Entity.js:511:39) at Group._syncAttribute (/opt/reactor/server/lib/entities/Group.js:110:31) at Group.addMember (/opt/reactor/server/lib/entities/Group.js:118:227) at /opt/reactor/server/lib/EzloController.js:1612:61 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.161Z <EzloController:ERR> [TypeError] Cannot read properties of undefined (reading 'switch') [-] failed to process devices: [undefined2] [latest-22337]2022-12-09T14:29:42.161Z <EzloController:CRIT> TypeError: Cannot read properties of undefined (reading 'switch') [-] TypeError: Cannot read properties of undefined (reading 'switch') at EzloController._match_criterion (/opt/reactor/server/lib/EzloController.js:1119:84) at EzloController._map_device (/opt/reactor/server/lib/EzloController.js:1171:48) at /opt/reactor/server/lib/EzloController.js:1592:58 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.162Z <EzloController:ERR> EzloController#ezlo failed to complete inventory: [TypeError] Cannot read properties of undefined (reading 'switch') [-] [latest-22337]2022-12-09T14:29:42.162Z <EzloController:CRIT> TypeError: Cannot read properties of undefined (reading 'switch') [-] TypeError: Cannot read properties of undefined (reading 'switch') at EzloController._match_criterion (/opt/reactor/server/lib/EzloController.js:1119:84) at EzloController._map_device (/opt/reactor/server/lib/EzloController.js:1171:48) at /opt/reactor/server/lib/EzloController.js:1592:58 at Array.forEach (<anonymous>) at EzloController._process_hub_devices (/opt/reactor/server/lib/EzloController.js:1576:226) at /opt/reactor/server/lib/EzloController.js:1413:48 at processTicksAndRejections (node:internal/process/task_queues:96:5) [latest-22337]2022-12-09T14:29:42.172Z <EzloController:NOTICE> EzloController#ezlo connection closed: 1002 [latest-22337]2022-12-09T14:29:42.173Z <EzloController:INFO> EzloController#ezlo will retry in 5000ms; this was attempt 1
-
OK. Your post is, unfortunately, short of the posting guidelines, so please review those. I'd like to know what platform you are running on, and how you install/run (docker, bare-metal, etc.) (and that on every new post you create, please -- see the guidelines in this category).
-
Intel processor?
-
OK. If you update your docker image and container, you should get version 22343. You apparently have an Ezlo device that is mentioning in its inventory an "item" (data element), but the item doesn't exist (it looks like an inconsistency in device data from Ezlos API). This version should complete inventory (unless there are other data consistency problems we haven't seen yet). There will continue to be warnings for setting undefined on an attribute, and possibly device match failing. Don't worry about those. I will be unavailable the rest of the day. I will contact you later to get a data collection from you so I can analyze their API responses in more detail and see if there's anything more I need to do about it.
-
OK. If you update your docker image and container, you should get version 22343. You apparently have an Ezlo device that is mentioning in its inventory an "item" (data element), but the item doesn't exist (it looks like an inconsistency in device data from Ezlos API). This version should complete inventory (unless there are other data consistency problems we haven't seen yet). There will continue to be warnings for setting undefined on an attribute, and possibly device match failing. Don't worry about those. I will be unavailable the rest of the day. I will contact you later to get a data collection from you so I can analyze their API responses in more detail and see if there's anything more I need to do about it.
Reactor version: latest-22343-ef2b8f75
OS: Ubuntu 22.04.1 LTS, AMD EPYC 7262
Reactor installed vis Docker (docker-compose to be exact), version 20.10.12, build 20.10.12-0ubuntu4
Hub involved: Ezlo Plus Firmware 2.0.33.2116.2 Advanced Scenes 1.56Yes, much better - things seem to be working now. I'd attach a log (as you mentioned there were warnings about setting undefined, among other things), but apparently I can't do that yet, so I'll stand by for directions on the data collection.
Thanks for your help.
-
T toggledbits locked this topic on