Closed homeiotautomation closed 5 months ago
Hi,
I can't unfortunately help you but I'm experiencing similiar problem by updating from 2023.12.2 to 2023.12.3 and using HA Core Docker. My log:
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/mobile_app/__init__.py", line 5, in <module>
from homeassistant.components import cloud, notify as hass_notify
File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 9, in <module>
from hass_nabucasa import Cloud
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/__init__.py", line 15, in <module>
from .auth import CloudError, CognitoAuth
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/auth.py", line 14, in <module>
import pycognito
File "/usr/local/lib/python3.11/site-packages/pycognito/__init__.py", line 8, in <module>
import requests
File "/usr/local/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
from .exceptions import RequestsDependencyWarning
File "/usr/local/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/usr/local/lib/python3.11/site-packages/requests/compat.py", line 40, in <module>
from simplejson import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
2023-12-15 21:02:07.005 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, homeassistant_alerts, logbook, map, mobile_app, my, usb
2023-12-15 21:02:07.005 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': (DependencyError(...), 'Could not setup dependencies: assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, homeassistant_alerts, logbook, map, mobile_app, my, usb')
2023-12-15 21:02:07.386 ERROR (MainThread) [homeassistant.config] Setup of package 'modbus_sungrow' at integrations/modbus_sungrow.yaml, line 6 failed: Integration template caused error: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
2023-12-15 21:02:07.386 WARNING (MainThread) [homeassistant.components.knx] No `knx:` key found in configuration.yaml. See https://www.home-assistant.io/integrations/knx/ for KNX entity configuration documentation
2023-12-15 21:02:08.313 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating recovery mode
2023-12-15 21:02:08.372 ERROR (MainThread) [homeassistant.setup] Setup failed for 'analytics': Unable to import component: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 814, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/analytics/__init__.py", line 13, in <module>
from .analytics import Analytics
File "/usr/src/homeassistant/homeassistant/components/analytics/analytics.py", line 13, in <module>
from homeassistant.components import hassio
File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 42, in <module>
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 15, in <module>
import requests
File "/usr/local/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
from .exceptions import RequestsDependencyWarning
File "/usr/local/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/usr/local/lib/python3.11/site-packages/requests/compat.py", line 40, in <module>
from simplejson import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
2023-12-15 21:02:08.379 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'onboarding'. Setup failed for dependencies: analytics
2023-12-15 21:02:08.380 ERROR (MainThread) [homeassistant.setup] Setup failed for 'onboarding': (DependencyError(...), 'Could not setup dependencies: analytics')
2023-12-15 21:02:08.380 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'frontend'. Setup failed for dependencies: onboarding
2023-12-15 21:02:08.380 ERROR (MainThread) [homeassistant.setup] Setup failed for 'frontend': (DependencyError(...), 'Could not setup dependencies: onboarding')
2023-12-15 21:02:08.396 ERROR (MainThread) [homeassistant.setup] Setup failed for 'cloud': Unable to import component: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 814, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 9, in <module>
from hass_nabucasa import Cloud
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/__init__.py", line 15, in <module>
from .auth import CloudError, CognitoAuth
File "/usr/local/lib/python3.11/site-packages/hass_nabucasa/auth.py", line 14, in <module>
import pycognito
File "/usr/local/lib/python3.11/site-packages/pycognito/__init__.py", line 8, in <module>
import requests
File "/usr/local/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
from .exceptions import RequestsDependencyWarning
File "/usr/local/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/usr/local/lib/python3.11/site-packages/requests/compat.py", line 40, in <module>
from simplejson import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (/usr/local/lib/python3.11/site-packages/simplejson/__init__.py)
2023-12-15 21:02:08.400 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'recovery_mode'. Setup failed for dependencies: frontend, cloud
2023-12-15 21:02:08.400 ERROR (MainThread) [homeassistant.setup] Setup failed for 'recovery_mode': (DependencyError(...), 'Could not setup dependencies: frontend, cloud')
How do you downgrade?
Edit1: downgraded to 2023.12.2 and HA is running again
Edit2: successfully updated to 2023.12.4.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Home assistant no longer boots.
Upgrade from 2023.10.5 to 2023.11.x or 2023.12.x
What version of Home Assistant Core has the issue?
2023.11.x - 2023.12.x
What was the last working version of Home Assistant Core?
2023.10.5
What type of installation are you running?
Home Assistant CORE - Docker
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Fresh docker image install failing for both 2023.11x -2023.12.x
services: homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" hostname: homeassistant restart: unless-stopped volumes:
lient: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Context: default
Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.26 GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495 runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0
Revert to 2023.10.5 works.
services: homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:2023.10.5"
Version core-2023.10.5 Installation Type Home Assistant Container Development false Supervisor false Docker true User root Virtual Environment false Python Version 3.11.5 Operating System Family Linux Operating System Version 5.15.0-91-generic CPU Architecture x86_64 Timezone America/Toronto Configuration Directory /config Home Assistant Community Store
MANAGE GitHub API ok GitHub Content ok GitHub Web ok GitHub API Calls Remaining 5000 Installed Version 1.33.0 Stage waiting Available Repositories 1348 Downloaded Repositories 5 Home Assistant Cloud
MANAGE Logged In false Reach Certificate Server ok Reach Authentication Server ok Reach Home Assistant Cloud ok Dashboards
MANAGE Dashboards 1 Resources 0 Views 9 Mode storage Recorder
Oldest Run Start Time December 13, 2023, 6:57 PM Current Run Start Time December 15, 2023, 1:53 PM Estimated Database Size (MiB) 3.66 MiB Database Engine mysql Database Version 10.11.6