Stops the HA start if there is no internet connection
phbasler opened this issue · 7 comments
If HA is booting and you don't have an internet connection, this integration causes the whole booting process to be blocked.
The errors in my log are
2023-04-27 23:50:48.582 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package aioairctrl==0.2.4: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb45121a0>: Failed to establish a new connection: [Errno -3] Try again')': /musllinux/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4513010>: Failed to establish a new connection: [Errno -3] Try again')': /musllinux/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4510fa0>: Failed to establish a new connection: [Errno -3] Try again')': /musllinux/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4511a50>: Failed to establish a new connection: [Errno -3] Try again')': /musllinux/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4511c90>: Failed to establish a new connection: [Errno -3] Try again')': /musllinux/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4510040>: Failed to establish a new connection: [Errno -3] Try again')': /simple/aioairctrl/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4512410>: Failed to establish a new connection: [Errno -3] Try again')': /simple/aioairctrl/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4511d80>: Failed to establish a new connection: [Errno -3] Try again')': /simple/aioairctrl/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4513bb0>: Failed to establish a new connection: [Errno -3] Try again')': /simple/aioairctrl/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb4513fd0>: Failed to establish a new connection: [Errno -3] Try again')': /simple/aioairctrl/
ERROR: Could not find a version that satisfies the requirement aioairctrl==0.2.4 (from versions: none)
ERROR: No matching distribution found for aioairctrl==0.2.4
This should have some limit so that it does not block the rest of HA to start.
Is that every single boot without internet, or only the first time and once it had internet during boot, the error disappears?
This looks not like an error from the integration itself, but from HA trying to resolve dependencies during first startup.
I had the integration working fine for a while and had to restart yesterday while our Internet connection was out.
While I use the container setup this was only a normal HA restart through the developer options menu.
And if you restart once more, is this still a problem?
Yes, it only went away until I reloaded the integration after my Internet connection came back
Ok, but now that it is gone, does it come back?
The integration in its manifest asks for a library to be loaded. HA then attempts to find the correct version if it is missing. Maybe this was missing from your setup for whatever reason, but now that it is there, the start might be smooth even without internet?
If that is the case then it should not have appeared in the first case.
My setup was running with the integration working. Then my connection dropped and I restarted HA and the errors started showing up.
But I can test it over the weekend if I can reproduce the error.
Okay so I started with a working instance, unplugged my router, rebooted HA and then rebooting the pi hosting HA and everything works.
I guess something wiped the pip package the last time, though I do not know why. But it now worked.