HACS and various HACS packages all broke overnight

Hello,

I have been running the docker home assistant version for a year or so. Watchtower updated home-assistant last night and now I am having issues with HACS and many(all?) of the integrations that I use from HACS.

I am seeing these types of errors in the logs:

home-assistant   | 2022-01-11 11:38:23 ERROR (MainThread) [homeassistant.config] Package bhyve setup failed. Integration bhyve Integration 'bhyve' not found. (See /config/packages/bhyve.yaml:0). 
home-assistant   | 2022-01-11 11:38:24 ERROR (MainThread) [homeassistant.config] Package noonlight setup failed. Integration noonlight Integration 'noonlight' not found. (See /config/packages/noonlight.yaml:0). 
home-assistant   | 2022-01-11 11:38:24 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.websocket_api. Make sure all dependencies are installed
home-assistant   | Traceback (most recent call last):
home-assistant   |   File "/usr/src/homeassistant/homeassistant/loader.py", line 639, in _load_file
home-assistant   |     module = importlib.import_module(path)
home-assistant   |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
home-assistant   |     return _bootstrap._gcd_import(name[level:], package, level)
home-assistant   |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
home-assistant   |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
home-assistant   |   File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
home-assistant   |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
home-assistant   |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
home-assistant   |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
home-assistant   |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
home-assistant   |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
home-assistant   |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
home-assistant   |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
home-assistant   |   File "/config/custom_components/__init__.py", line 23, in <module>
home-assistant   |     from teslajsonpy import Controller as TeslaAPI
home-assistant   | ModuleNotFoundError: No module named 'teslajsonpy'
home-assistant   | 2022-01-11 11:38:26 ERROR (MainThread) [homeassistant.setup] Setup failed for tesla_custom: Integration not found.
home-assistant   | 2022-01-11 11:38:26 WARNING (MainThread) [homeassistant.components.opengarage.cover] Open Garage YAML configuration is deprecated, it has been imported into the UI automatically and can be safely removed
home-assistant   | 2022-01-11 11:38:26 ERROR (MainThread) [homeassistant.setup] Setup failed for fullykiosk: Integration not found.
home-assistant   | 2022-01-11 11:38:26 ERROR (MainThread) [homeassistant.setup] Setup failed for alarmo: Integration not found.
home-assistant   | 2022-01-11 11:38:26 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa_media: Integration not found.
home-assistant   | 2022-01-11 11:38:26 ERROR (MainThread) [homeassistant.config] Platform error: switch - Integration 'bhyve' not found.
home-assistant   | 2022-01-11 11:38:27 ERROR (MainThread) [homeassistant.config] Platform error: sensor - Integration 'bhyve' not found.

I tried deleting and reinstalling HACS and it seems to go ok:

wget -q -O - https://install.hacs.xyz | bash -
INFO: Trying to find the correct directory...
INFO: Found Home Assistant configuration directory at '/config'
INFO: Changing to the custom_components directory...
INFO: Downloading HACS
Connecting to github.com (140.82.113.3:443)
Connecting to github.com (140.82.113.3:443)
Connecting to objects.githubusercontent.com (185.199.108.133:443)
saving to 'hacs.zip'
hacs.zip             100% |****************************************|  728k  0:00:00 ETA
'hacs.zip' saved
WARN: HACS directory already exist, cleaning up...
INFO: Creating HACS directory...
INFO: Unpacking HACS...
INFO: Removing HACS zip file...
INFO: Installation complete.

INFO: Remember to restart Home Assistant before you configure it

But now HACS isnt’ an option on the integrations page to install. I tried clearing the cache, using a different browser, etc but it just doesn’t show as an option.

I am not really sure what else to try.

I looked over the changes in the latest release, but didn’t notice anything that I thought might break HACS.

Any suggestions on resolving this?

I punted and restored my container storage volume from a backup yesterday and everything is back up and running. I am still not clear what happened but I am back operational.

There was an issue in HACS 1.19.0, installing custom components in the wrong folder, which made the not load these integrations upon a restart. This is solved in HACs 1.19.1 and .2 and has probably caused your issue.

I just upgraded from 1.18.x to 1.19.3 and it’s broken. I tried to reboot after the upgrade, but the RPi didn’t come back. It was running but had no IP. I connected a display but there was no output so I had to power cycle it to get it back. There were error messages in the logs, so I did a graceful shutdown and startup. I’m still getting errors in the logs, and the HACS icon in the sidebar is invisible. I did a full backup before the upgrade, so I’ll restore from there if I can’t un/reinstall HACS properly. Errors:

2022-01-13 12:18:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 170, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/dlna_dmr/config_flow.py", line 222, in async_step_ssdp
    discovery_service_ids = {
  File "/usr/src/homeassistant/homeassistant/components/dlna_dmr/config_flow.py", line 223, in <setcomp>
    service.get("serviceId")
AttributeError: 'str' object has no attribute 'get'
2022-01-13 12:22:01 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /host/shutdown request Server disconnected
2022-01-13 12:22:01 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /host/shutdown -