home-assistant/supervised-installer

Supervised installer installing dev version of Supervisor

smarthousetips opened this issue · 5 comments

Describe the issue you are experiencing

Hey there, starting after the most recent update, I am consistently seeing my Home Assistant restart. I think this has to do with the Watchdog issue I see in the logs prior to the forced reboot. How do I resolve this?

23-11-02 13:19:27 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 13:19:27 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
/usr/src/supervisor/supervisor/misc/tasks.py:155: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:19:27 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-02 13:19:27 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant
23-11-02 13:19:50 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-11-02 13:19:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-11-02 13:19:58 ERROR (MainThread) [supervisor.resolution.evaluations.container] Found image in unhealthy image list 'portainer/portainer-ce' on the host
23-11-02 13:19:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-02 13:20:00 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:01 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/api/proxy.py:194: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:03 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 13:20:03 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
/usr/src/supervisor/supervisor/api/proxy.py:109: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
if not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:29 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 13:20:29 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

Nothing reproduce. It just keeps rebooting every 5 minutes or so.

Anything in the Supervisor logs that might be useful for us?

23-11-02 13:19:27 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 13:19:27 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
/usr/src/supervisor/supervisor/misc/tasks.py:155: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:19:27 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-02 13:19:27 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant
23-11-02 13:19:50 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-11-02 13:19:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-11-02 13:19:58 ERROR (MainThread) [supervisor.resolution.evaluations.container] Found image in unhealthy image list 'portainer/portainer-ce' on the host
23-11-02 13:19:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-02 13:20:00 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-11-02 13:20:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:01 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/api/proxy.py:194: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:03 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 13:20:03 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
/usr/src/supervisor/supervisor/api/proxy.py:109: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 13:20:29 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 13:20:29 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance

System Health information

No popups

Supervisor diagnostics

config_entry-hassio-cd26d0944100319eab9e597292c40e49.json.txt

Additional information

No response

Have the same issue on current clean installation
Debian 12
Docker latest
homeassistant 2023.11.0
supervisor latest

/usr/src/supervisor/supervisor/misc/tasks.py:155: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:28:52 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant
23-11-02 21:30:52 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-02 21:30:52 INFO (SyncWorker_1) [supervisor.docker.manager] Restarting homeassistant
23-11-02 21:31:01 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-11-02 21:31:06 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-11-02 21:31:06 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-02 21:31:08 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-11-02 21:31:08 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-11-02 21:31:08 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-11-02 21:31:08 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:31:10 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 21:31:10 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 21:31:12 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
23-11-02 21:31:19 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 21:31:19 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
/usr/src/supervisor/supervisor/misc/tasks.py:155: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:33:19 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant

23-11-02 21:35:19 ERROR (MainThread) [supervisor.misc.tasks] Watchdog found a problem with Home Assistant API!
23-11-02 21:35:19 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting homeassistant
23-11-02 21:35:25 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-11-02 21:35:31 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-11-02 21:35:31 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-02 21:35:33 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-11-02 21:35:33 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-11-02 21:35:33 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:35:33 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/src/supervisor/supervisor/homeassistant/websocket.py:219: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if not connected and not await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:35:35 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 21:35:35 INFO (MainThread) [supervisor.store] Loading add-ons from store: 72 all - 0 new - 0 remove
23-11-02 21:35:37 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
23-11-02 21:35:43 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
23-11-02 21:35:43 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
/usr/src/supervisor/supervisor/misc/tasks.py:155: RuntimeWarning: coroutine 'HomeAssistantAPI.get_api_state' was never awaited
  if await self.sys_homeassistant.api.check_api_state():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
23-11-02 21:37:43 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant

it takes around every 5 min. to next restart.

agners commented

@smarthousetips @jhoralek this shoulud be addressed by home-assistant/supervisor#4663. Supervisor will update eventually, if not just use ha supervisor reload then ha supervisor update.

I tried that but still restarting non stop. I Don't know if the issue has to do with my version being 2023.11.0.dev0103. Not sure how I'm on a dev version anyways. Any ideas how to get on the most recent stable version?

agners commented

The current dev version should be 2023.11.0.dev0203.

Did you use the factory reset function of Yellow by chance? There used to be a bug in older OS versions. Or did you use ha supervisor options --channel=dev to switch to the dev channel? 🤔

agners commented

Uh I see, the Supervised installer references the latest image, which installs the dev version on a fresh install 😰

This is essentially a Supervised installer issue.