shbatm Posted June 3, 2021 Posted June 3, 2021 @asbril or @MrBill -- Can one of you please use a web browser to go to http://your-isy-ip/rest/subscriptions and post/PM me the result? Thanks
MrBill Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 5:22 PM, shbatm said: @asbril or @MrBill -- Can one of you please use a web browser to go to http://your-isy-ip/rest/subscriptions and post/PM me the result? Thanks Expand my HA instance is currently hosed, I tried to restore last nights full snapshot and it apparently has failed... I'll be back at some point... lol
asbril Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 5:27 PM, MrBill said: my HA instance is currently hosed, I tried to restore last nights full snapshot and it apparently has failed... I'll be back at some point... lol Expand On 6/3/2021 at 5:22 PM, shbatm said: @asbril or @MrBill -- Can one of you please use a web browser to go to http://your-isy-ip/rest/subscriptions and post/PM me the result? Thanks Expand <Subscriptions> <Sub isExpired="no" isPortal="yes" sid="0" sock="42" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> </Subscripti
isyrocks! Posted June 3, 2021 Posted June 3, 2021 @shbatm let me know if you need any more test cases or data. I haven't upgraded to 6.0 and am still running 5.5 w/ HACS. My setup is running on Hyper-V so I can easily snapshot test and restore back if needed. I too have several nodeservers setup along w/ a connection to the ISY portal. In the past I ran into the the too many connections bug and my ISY would hang but that hasn't happened for for 1.5 years now with my latest HASS install.
shbatm Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 5:38 PM, isyrocks! said: My setup is running on Hyper-V so I can easily snapshot test and restore back if needed. Expand If you can try it it'll let me know if there's a more widespread issue or not. The new version uses async to communicate and tries to open more connections to the ISY than the old version. You can also try the version in HACS if that's easier--it uses the same method.
asbril Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 5:30 PM, asbril said: <Subscriptions> <Sub isExpired="no" isPortal="yes" sid="0" sock="42" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> </Subscripti Expand The downgrade to 2021.5.5 was successful and almost all devices came back as before. There are a few that don't seem to work, but it will be easy to delete and re-add these. Thanks
MrBill Posted June 3, 2021 Posted June 3, 2021 @shbatm I restored to 2021.5.4 and then reinstalled the update to 2021.6.0 Same issue: 2021-06-03 13:17:44 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry ISY (192.168.1.99) for isy994 Traceback (most recent call last): File "/config/custom_components/isy994/__init__.py", line 175, in async_setup_entry await isy.initialize() File "/usr/local/lib/python3.8/site-packages/pyisy/isy.py", line 135, in initialize isy_setup_results = await asyncio.gather(*isy_setup_tasks) asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/isy994/__init__.py", line 175, in async_setup_entry await isy.initialize() File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 45, in __exit__ self._do_exit(exc_type) File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 92, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError No apparent open subscriptions from HA: <Subscriptions> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="yes" isPortal="no" sid="-1" sock="-1" isReusingSocket="no" isConnecting="no"/> <Sub isExpired="no" isPortal="yes" sid="0" sock="42" isReusingSocket="no" isConnecting="no"/> </Subscriptions> I have not yet removed the HACS package... Holding for your instruction without trying random ideas....?
shbatm Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 6:23 PM, MrBill said: File "/config/custom_components/isy994/__init__.py", line 175, in async_setup_entry Expand @MrBill Yours is still using the HACS version (custom_components is in the path). Try removing that and see if the core loads correctly.
Mecheng70 Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 4:54 PM, asbril said: I am sorry to be so ignorant, but I was not able to find this in Configuration. Expand To be able to edit the configuration,yaml file, there is an add-on (Supervisor-> add-ons) called File Editor. It will let you update the config and make changes. There is also a Breaking Changes Integration that you should also have just to make sure that what ever changes you make do not break the system. 1
MrBill Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 6:44 PM, shbatm said: @MrBill Yours is still using the HACS version (custom_components is in the path). Try removing that and see if the core loads correctly. Expand removed HACS custom component. restarted HA. 2021-06-03 13:49:19 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry ISY (192.168.1.99) for isy994 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/isy994/__init__.py", line 175, in async_setup_entry await isy.initialize() File "/usr/local/lib/python3.8/site-packages/pyisy/isy.py", line 135, in initialize isy_setup_results = await asyncio.gather(*isy_setup_tasks) asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/usr/src/homeassistant/homeassistant/components/isy994/__init__.py", line 175, in async_setup_entry await isy.initialize() File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 45, in __exit__ self._do_exit(exc_type) File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 92, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError
asbril Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 6:52 PM, Mecheng70 said: To be able to edit the configuration,yaml file, there is an add-on (Supervisor-> add-ons) called File Editor. It will let you update the config and make changes. There is also a Breaking Changes Integration that you should also have just to make sure that what ever changes you make do not break the system. Expand I successfully downgraded to 2021.5.5 and now I want to see if @shbatm can come with a more permanent solution.
asbril Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 6:52 PM, Mecheng70 said: To be able to edit the configuration,yaml file, there is an add-on (Supervisor-> add-ons) called File Editor. It will let you update the config and make changes. There is also a Breaking Changes Integration that you should also have just to make sure that what ever changes you make do not break the system. Expand I successfully downgraded to 2021.5.5 and now I want to see if @shbatm can come with a more permanent solution.
MrBill Posted June 3, 2021 Posted June 3, 2021 (edited) @asbril I've been chatting with @shbatm on another platform.... Question... Do you have a second ISY plugged into your network? (I have a second ISY.. not used with HA, just for testing etc.... When I unplugged it the ISY integration started right up.) Edited June 3, 2021 by MrBill
shbatm Posted June 3, 2021 Posted June 3, 2021 @asbril-- For lack of a better option at the moment, I would try your upgrade again tomorrow and see if you still get the same error. @MrBill was able to get his up and working through several restarts and attempted troubleshooting, but we didn't find a smoking gun. This is a sporadic issue that we saw back in July 2020 when first testing this update, but even then we were never able to recreate, it just started working eventually. My best guess is something with the connection is getting hung open when HA restarts and tries to reconnect to the ISY and it's timing out. I'll continue trying to recreate on my end, but would be worth giving another shot after waiting awhile and attempting a full restart of both the HA machine and ISY again. (I know, cliche to say turn it off and back on, but hey, sometimes it does work...) 1
asbril Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 8:46 PM, MrBill said: @asbril I've been chatting with @shbatm on another platform.... Question... Do you have a second ISY plugged into your network? (I have a second ISY.. not used with HA, just for testing etc.... When I unplugged it the ISY integration started right up.) Expand No, I do not have another ISY. Tomorrow I will try the upgrade again as @shbatm suggests. In the worst case, I downgrade again to 5.5
MrBill Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 9:37 PM, asbril said: No, I do not have another ISY. Tomorrow I will try the upgrade again as @shbatm suggests. In the worst case, I downgrade again to 5.5 Expand Well that shoots a hole in my theory..... I'm curious to see if it works for you tomorrow.... 1
isyrocks! Posted June 3, 2021 Posted June 3, 2021 (edited) Just upgraded to 6.0 and the ISY integration via HACS works great. No issue and no tweaking needed after updating. Edited June 3, 2021 by isyrocks!
shbatm Posted June 3, 2021 Posted June 3, 2021 On 6/3/2021 at 11:02 PM, isyrocks! said: Just upgraded to 6.0 and the ISY integration via HACS works great. No issue and no tweaking needed after updating. Expand Good to hear. If you're on 2021.06.0 you should be able to un-install the HACS version now; everything has been merged over to the Core integration. I'm about to mark it depreciated.
asbril Posted June 4, 2021 Posted June 4, 2021 On 6/3/2021 at 9:34 PM, shbatm said: @asbril-- For lack of a better option at the moment, I would try your upgrade again tomorrow and see if you still get the same error. @MrBill was able to get his up and working through several restarts and attempted troubleshooting, but we didn't find a smoking gun. This is a sporadic issue that we saw back in July 2020 when first testing this update, but even then we were never able to recreate, it just started working eventually. My best guess is something with the connection is getting hung open when HA restarts and tries to reconnect to the ISY and it's timing out. I'll continue trying to recreate on my end, but would be worth giving another shot after waiting awhile and attempting a full restart of both the HA machine and ISY again. (I know, cliche to say turn it off and back on, but hey, sometimes it does work...) Expand @shbatm I did the 6.1 upgrade again, but unfortunately no success and I am downgrading again.
MrBill Posted June 5, 2021 Posted June 5, 2021 @asbril 2021.6.2 might contain a fix... Quote Retry isy994 setup later if isy.initialize times out (@bdraco - #51453) (isy994 docs) Expand
asbril Posted June 5, 2021 Posted June 5, 2021 On 6/5/2021 at 12:35 PM, MrBill said: Retry isy994 setup later Expand You suggest, if 6.2 does not resolve the issue, that I re-install the ISY setup in HA ?
MrBill Posted June 5, 2021 Posted June 5, 2021 On 6/5/2021 at 1:05 PM, asbril said: You suggest, if 6.2 does not resolve the issue, that I re-install the ISY setup in HA ? Expand No, that is the quote from the 2021.6.2 release notes. When you follow the links though the notes about HA issue #51453 the notes about the fix specifically lead back to this thread: Essentially 6.2 contains an attempt to fix by retrying the startup of the ISY integration if it fails on the first try. 1
asbril Posted June 5, 2021 Posted June 5, 2021 On 6/5/2021 at 1:15 PM, MrBill said: No, that is the quote from the 2021.6.2 release notes. When you follow the links though the notes about HA issue #51453 the notes about the fix specifically lead back to this thread: Essentially 6.2 contains an attempt to fix by retrying the startup of the ISY integration if it fails on the first try. Expand ?No luck, I am going back to 5.5 again
asbril Posted June 5, 2021 Posted June 5, 2021 On 6/5/2021 at 1:33 PM, asbril said: ?No luck, I am going back to 5.5 again Expand @MrBill @shbatm It seems that you (@mrbill) found a way of making it work and I would like to understand how. This being said, I am a low-level amateur techie (though passionate), and hopefully a solution can be found for people like me.
MrBill Posted June 5, 2021 Posted June 5, 2021 On 6/5/2021 at 1:39 PM, asbril said: It seems that you (@mrbill) found a way of making it work and I would like to understand how. This being said, I am a low-level amateur techie (though passionate), and hopefully a solution can be found for people like me. Expand I'm only a mid-grade amateur myself. What I thought fixed my setup was only a red-herring, my action apparently had nothing to do with it. I unplugged my second ISY and boom, the 2021.6.0 update worked for me. However, after HA re-detected the second ISY again, I tried to recreate the problem by restarting HA with both ISY's plugged in... and it still works.... In short, I really have no idea what the problem is.... I just know I'm not having the problem at the moment.
Recommended Posts