Yes, that is the solution. Good to know it worked for you too.
Thank you for this simple solution. Just had to hard restart my virtual machine running on XCP-ng and this did the trick too. Didn’t delete the DB file.
Also to give a bit of context, this happened to me after updating to from OS 9.5 to 10.5. First I though it was a compatibility issue. So I took my latest full backup and restore from their. Also note that this will not downgrade your OS. So after few mins same issue came. I was ready to start a downgrade process when I finally found this wonderful and easy solution.
I think things are back to normal now.
Here below is a pic of HA OS running on XCP-ng (just in case if someone was wondering how the setup is done).
Many thanks,
In future I will put 2 machines with the same HA and keep one while updating the test one. So if there is an issue I can just ignore and delete the updated machine and create a new test machine.
I reply to my own poste. In my case I have celebrate victory too quickly. During the nigh the add-on stopped working again. So the only solution I found was to roll back to Ha OS version 9.5 (which was the most stable for all my API and put back with the latest restore point (using a Full backup).
For those who are in my situation, please note that I have tried to upgrade first to the latest Os update which is at this point version 11.1. This didn’t solve the problem. So to roll back I had to:
1- Reboot the virtual machine
2- quickly go and start the terminal (very important it has to be: Terminal & SSH).
3- put the follwing command and hit enter: ha os update --version 9.5
4- be patient until rebot after 10 mins at least
5- Put the latest restore point
6- Be patient for at least 45 min (for 400 Mb)
Now I went from this:
Came back to this:
I hope this will help someone else. The Addon which was the most unstable was Zigbee2Mqtt. For now and after 6 hours, things seems back to normal.
After 2 days of operation, things are still working stable with the rollback to Os 9.6. For sure, I will never change again the settings without having a test machine.
I have the same behaviour as described here; i.e. restored an earlier full backup, add-ons are no longer starting.
ha supervisor info
shows the add-ons in different status (from error
to started
) but none of them works.
Have not deleted any database file but have shutdown the VM (KVM) and brought it back up.
ESPHome
When I go to Settings | Add-ons | ESPHome I get the message Error fetching addon info: Unknown error, see supervisor logs
(despite ha supervisor info
reporting state: started
the log file has the following contents
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
answer = await method(api, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/__init__.py", line 456, in addons_addon_info
return await api_addons.info(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/addons.py", line 253, in info
ATTR_INGRESS_PORT: addon.ingress_port,
^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/addons/addon.py", line 399, in ingress_port
raise RuntimeError(f"No port set for add-on {self.slug}")
RuntimeError: No port set for add-on 5c53de3b_esphome
23-12-22 11:09:22 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py", line 139, in sentry_app_handle
reraise(*_capture_exception(hub))
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/_compat.py", line 115, in reraise
raise value
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py", line 129, in sentry_app_handle
response = await old_handle(self, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 186, in block_bad_requests
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 202, in system_validation
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 269, in token_validation
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
answer = await method(api, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/__init__.py", line 456, in addons_addon_info
return await api_addons.info(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/addons.py", line 253, in info
ATTR_INGRESS_PORT: addon.ingress_port,
^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/addons/addon.py", line 399, in ingress_port
raise RuntimeError(f"No port set for add-on {self.slug}")
RuntimeError: No port set for add-on 5c53de3b_esphome
23-12-22 11:09:29 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py", line 139, in sentry_app_handle
reraise(*_capture_exception(hub))
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/_compat.py", line 115, in reraise
raise value
File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/aiohttp.py", line 129, in sentry_app_handle
response = await old_handle(self, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 186, in block_bad_requests
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 202, in system_validation
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 269, in token_validation
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
answer = await method(api, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/__init__.py", line 456, in addons_addon_info
return await api_addons.info(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/addons.py", line 253, in info
ATTR_INGRESS_PORT: addon.ingress_port,
^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/addons/addon.py", line 399, in ingress_port
raise RuntimeError(f"No port set for add-on {self.slug}")
RuntimeError: No port set for add-on 5c53de3b_esphome
In addition to the above the Coder Server
add-on has disappeared altogether from the list of installed add-ons.
Never seen this before. Any idea what’s going on here?
In my case a complete restart of the VM fixed the issue. Not on HA dashboard, but going to the console using ssh and then restart
FYI complete restart (powercycle) worked for me too.
Hello,
For me it does not work
- after an update of HA core, the system was not starting at all.
- I restart from a new install and restore the last full backup
- system was up correctly but with addons not started (as described at the beginning of this topic).
- I tried to reboot, stop completly stopped the PI but it does not work… and even worse, when I reboot, HA does not start and on the console I have the following message:
Waiting for the Home Assistant CLI to be ready…
[WARN] Home Assistant CLI not starting! Jump in emergency console…
I have no idea what I can do
Logs!! Please.
Hello,
I am quite new to HA, and ssh is not working.
so I went in the logs part of the UI (Settings → Systems → Logs) and here is what I found:
Home Assistant Core
Invalid color mode ‘xy’ received for entity light.0x287681fffe64c482
11:48:02 – (WARNING) MQTT - message first occurred at 11:43:36 and shows up 12 times
Updating youfone_be sensor took longer than the scheduled update interval 0:00:30
11:44:30 – (WARNING) Sensor - message first occurred at 11:43:39 and shows up 3 times
Update of sensor.youfone_32473873297_voice_sms is taking over 10 seconds
11:43:40 – (WARNING) helpers/entity.py - message first occurred at 11:43:19 and shows up 2 times
Invalid or incomplete color value ‘{‘brightness’: 46, ‘color_mode’: ‘xy’, ‘linkquality’: 102, ‘power_on_behavior’: None, ‘state’: ‘ON’}’ received for entity light.0xa4c1387d05d2d150
11:43:36 – (WARNING) MQTT - message first occurred at 11:43:35 and shows up 2 times
Login attempt or request with invalid authentication from supervisor (172.30.32.2). Requested URL: ‘/api/core/state’. (HomeAssistantSupervisor/2024.01.1 aiohttp/3.9.3 Python/3.12)
11:43:22 – (WARNING) HTTP - message first occurred at 11:42:05 and shows up 21 times
Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
11:43:10 – (ERROR) Google Assistant
Subscription to 192.168.178.66 failed, attempting to poll directly
11:43:05 – (WARNING) Sonos
Error setting up trigger Alerte Armoire Bureau
11:43:01 – (ERROR) Automation
Error rendering variables: UndefinedError: ‘dict object’ has no attribute ‘entity_id’
11:43:01 – (ERROR) Automation
Uncaught thread exception
11:42:46 – (ERROR) /usr/src/homeassistant/homeassistant/bootstrap.py
error while get mqtt config
11:42:46 – (ERROR) /usr/local/lib/python3.11/site-packages/tuya_iot/openmq.py
Setup of sensor platform youfone_be is taking over 10 seconds.
11:42:20 – (WARNING) Sensor - message first occurred at 11:42:20 and shows up 2 times
YAML file /config/themes/m3-xx-yyyy/m3-xx-yyyy.yaml contains duplicate key “theme-sys-ha-disabled-text-color”. Check lines 271 and 273
11:42:17 – (WARNING) util/yaml/loader.py - message first occurred at 11:42:17 and shows up 15 times
MyBMWAPIError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed
11:42:14 – (ERROR) components/bmw_connected_drive/coordinator.py
Ended unfinished session (id=20 from 2024-02-01 13:51:48.302839)
11:41:57 – (WARNING) Recorder
The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
11:41:57 – (WARNING) Recorder
CLEAR
It’s a phenomenon that I’ve had several times before, where often the only thing that helps is several restarts and waiting or even completely shutting down the system and starting it up again. For me it took 10 times until everything worked again.
Ah, thank you - lifesaver!
YOU WONDERFUL PERSON THANK YOU!
I was confused why none of this was working and did that and boom all works again!
And you needlessly deleted your history database.
Yep, a full hardware reboot on my new Raspberry Pi 5 did the trick for me after I restored a backup (Settings → System → Power button in upper right → Advanced options → Reboot system)
I tried every solution such as restarting, deleting v2.db file (Restored it tho) and nothing is working… Logs says that addons started but when I’m in the Addon’s UI it says they aren’t running…
Deleted cache, tried different browsers etc… and still nothing working.
Power off your machine (not restart) and power it on again.
Sometimes you have to do a system reboot a few times.
Also clear your browser cache.