Home Assistant Docker Container giving Dependencies errors

Hi all! I setup HA a while ago with docker compose and it was all running smoothly. Recently, I removed then restarted the container and I got a load of dependencies errors. I tried to use docker compose pull but that eventually quits and closes my ssh connection saying ‘Connection reset’. Below is my docker compose config for HA:

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /opt/homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
    restart: unless-stopped
    privileged: true
    network_mode: host
    depends_on:
      - mosquitto
      - zigbee2mqtt

And here are my logs:

homeassistant  | s6-rc: info: service s6rc-oneshot-runner: starting
homeassistant  | s6-rc: info: service s6rc-oneshot-runner successfully started
homeassistant  | s6-rc: info: service fix-attrs: starting
homeassistant  | s6-rc: info: service fix-attrs successfully started
homeassistant  | s6-rc: info: service legacy-cont-init: starting
homeassistant  | s6-rc: info: service legacy-cont-init successfully started
homeassistant  | s6-rc: info: service legacy-services: starting
homeassistant  | services-up: info: copying legacy longrun home-assistant (no readiness notification)
homeassistant  | s6-rc: info: service legacy-services successfully started
homeassistant  | 2024-04-04 12:04:54.130 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.analytics
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/__init__.py", line 13, in <module>
homeassistant  |     from .analytics import Analytics
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/analytics.py", line 13, in <module>
homeassistant  |     from homeassistant.components import hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  | 2024-04-04 12:04:54.199 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: Exception importing homeassistant.components.analytics
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/__init__.py", line 13, in <module>
homeassistant  |     from .analytics import Analytics
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/analytics.py", line 13, in <module>
homeassistant  |     from homeassistant.components import hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  |
homeassistant  | The above exception was the direct cause of the following exception:
homeassistant  |
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
homeassistant  |     component = integration.get_component()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 826, in get_component
homeassistant  |     raise ImportError(f"Exception importing {self.pkg_path}") from err
homeassistant  | ImportError: Exception importing homeassistant.components.analytics
homeassistant  | 2024-04-04 12:05:02.154 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
homeassistant  | 2024-04-04 12:05:02.155 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
homeassistant  | 2024-04-04 12:05:02.161 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
homeassistant  | 2024-04-04 12:05:02.161 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')
homeassistant  | 2024-04-04 12:05:11.392 ERROR (MainThread) [homeassistant.setup] Setup failed for dhcp: Unable to import component: No module named 'dns.version'
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
homeassistant  |     component = integration.get_component()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/dhcp/__init__.py", line 19, in <module>
homeassistant  |     from aiodiscover import DiscoverHosts
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/aiodiscover/__init__.py", line 9, in <module>
homeassistant  |     from .discovery import DiscoverHosts  # noqa: F401
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/aiodiscover/discovery.py", line 11, in <module>
homeassistant  |     from dns import exception, message, rdatatype
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/dns/__init__.py", line 70, in <module>
homeassistant  |     from dns.version import version as __version__  # noqa
homeassistant  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  | ModuleNotFoundError: No module named 'dns.version'
homeassistant  | 2024-04-04 12:05:11.716 ERROR (MainThread) [homeassistant.setup] Error during setup of component usb
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
homeassistant  |     result = await task
homeassistant  |              ^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/usb/__init__.py", line 153, in async_setup
homeassistant  |     await usb_discovery.async_setup()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/usb/__init__.py", line 208, in async_setup
homeassistant  |     await self._async_start_monitor()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/usb/__init__.py", line 225, in _async_start_monitor
homeassistant  |     info = await system_info.async_get_system_info(self.hass)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/system_info.py", line 33, in async_get_system_info
homeassistant  |     is_hassio = hass.components.hassio.is_hassio()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 1098, in __getattr__
homeassistant  |     component = _load_file(self._hass, comp_name, _lookup_path(self._hass))
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 1026, in _load_file
homeassistant  |     module = importlib.import_module(path)
homeassistant  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  | 2024-04-04 12:05:11.775 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of bluetooth. Setup failed for dependencies: usb
homeassistant  | 2024-04-04 12:05:11.776 ERROR (MainThread) [homeassistant.setup] Setup failed for bluetooth: (DependencyError(...), 'Could not setup dependencies: usb')
homeassistant  | 2024-04-04 12:05:28.856 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.homeassistant_alerts
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/homeassistant_alerts/__init__.py", line 12, in <module>
homeassistant  |     from homeassistant.components.hassio import get_supervisor_info, is_hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  | 2024-04-04 12:05:28.935 ERROR (MainThread) [homeassistant.setup] Setup failed for homeassistant_alerts: Unable to import component: Exception importing homeassistant.components.homeassistant_alerts
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/homeassistant_alerts/__init__.py", line 12, in <module>
homeassistant  |     from homeassistant.components.hassio import get_supervisor_info, is_hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  |
homeassistant  | The above exception was the direct cause of the following exception:
homeassistant  |
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
homeassistant  |     component = integration.get_component()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 826, in get_component
homeassistant  |     raise ImportError(f"Exception importing {self.pkg_path}") from err
homeassistant  | ImportError: Exception importing homeassistant.components.homeassistant_alerts
homeassistant  | 2024-04-04 12:05:30.807 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
homeassistant  | 2024-04-04 12:05:30.808 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: (DependencyError(...), 'Could not setup dependencies: frontend')
homeassistant  | 2024-04-04 12:05:30.809 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
homeassistant  | 2024-04-04 12:05:30.809 ERROR (MainThread) [homeassistant.setup] Setup failed for map: (DependencyError(...), 'Could not setup dependencies: frontend')
homeassistant  | 2024-04-04 12:05:30.830 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of my. Setup failed for dependencies: frontend
homeassistant  | 2024-04-04 12:05:30.830 ERROR (MainThread) [homeassistant.setup] Setup failed for my: (DependencyError(...), 'Could not setup dependencies: frontend')
homeassistant  | 2024-04-04 12:05:40.213 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: bluetooth, dhcp, frontend, homeassistant_alerts, logbook, map, my, usb
homeassistant  | 2024-04-04 12:05:40.214 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: bluetooth, dhcp, frontend, homeassistant_alerts, logbook, map, my, usb')
homeassistant  | 2024-04-04 12:05:40.302 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating safe mode
homeassistant  | 2024-04-04 12:05:40.766 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.analytics
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/__init__.py", line 13, in <module>
homeassistant  |     from .analytics import Analytics
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/analytics.py", line 13, in <module>
homeassistant  |     from homeassistant.components import hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  | 2024-04-04 12:05:40.833 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: Exception importing homeassistant.components.analytics
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 818, in get_component
homeassistant  |     ComponentProtocol, importlib.import_module(self.pkg_path)
homeassistant  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
homeassistant  |     return _bootstrap._gcd_import(name[level:], package, level)
homeassistant  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/__init__.py", line 13, in <module>
homeassistant  |     from .analytics import Analytics
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/analytics/analytics.py", line 13, in <module>
homeassistant  |     from homeassistant.components import hassio
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 55, in <module>
homeassistant  |     from .addon_panel import async_setup_addon_panel
homeassistant  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
homeassistant  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 936, in exec_module
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 1069, in get_code
homeassistant  |   File "<frozen importlib._bootstrap_external>", line 729, in _compile_bytecode
homeassistant  | MemoryError
homeassistant  |
homeassistant  | The above exception was the direct cause of the following exception:
homeassistant  |
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
homeassistant  |     component = integration.get_component()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/loader.py", line 826, in get_component
homeassistant  |     raise ImportError(f"Exception importing {self.pkg_path}") from err
homeassistant  | ImportError: Exception importing homeassistant.components.analytics
homeassistant  | 2024-04-04 12:05:40.882 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
homeassistant  | 2024-04-04 12:05:40.884 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
homeassistant  | 2024-04-04 12:05:40.890 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
homeassistant  | 2024-04-04 12:05:40.891 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')
homeassistant  | 2024-04-04 12:05:41.174 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of safe_mode. Setup failed for dependencies: frontend
homeassistant  | 2024-04-04 12:05:41.175 ERROR (MainThread) [homeassistant.setup] Setup failed for safe_mode: (DependencyError(...), 'Could not setup dependencies: frontend')
homeassistant  | s6-rc: info: service legacy-services: stopping

I also had hacs installed using their instructions for a container install but I removed it (again using their instructions) to try and remedy the error.
This is all running on Raspbian btw.
All help is much appreciated!

What version did you upgrade from?

Did you try after restart host?

I would start container as default (none of my config or extras just like new install) to quickly verify my setup wasn’t issue and no other host side problem exist.

Thanks for your reply! When I pulled HA, I found one of the layers had been corrupted which caused the pull command to be disrupted. I was able to restart the server to get rid of the corrupt files and pull it again and it’s working wonderfully! Thanks for the help!