It looks like my logs don’t go back far enough to see what occurred before the GUI stopped responding at ~1AM. Is there a way to pull logs farther back or do i loose them after ~6 hours?
~ $ ha core logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 220, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/myq/__init__.py", line 36, in async_setup_entry
myq = await pymyq.login(conf[CONF_USERNAME], conf[CONF_PASSWORD], websession)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 176, in login
await api.authenticate(username, password)
File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 125, in authenticate
self._security_token = auth_resp["SecurityToken"]
TypeError: 'NoneType' object is not subscriptable
2020-07-21 02:01:42 INFO (MainThread) [backoff] Backing off call_api(...) for 0.5s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:01:48 INFO (MainThread) [backoff] Backing off call_api(...) for 1.7s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:01:54 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:01:59 INFO (MainThread) [backoff] Backing off call_api(...) for 0.1s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:02:04 INFO (MainThread) [backoff] Backing off call_api(...) for 0.5s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:02:10 INFO (MainThread) [backoff] Backing off call_api(...) for 1.2s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:02:16 INFO (MainThread) [backoff] Backing off call_api(...) for 0.0s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:02:21 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-21 02:02:21 CRITICAL (MainThread) [hacs] [Cannot connect to host api.github.com:443 ssl:None [Try again]] - Could not load HACS!
2020-07-21 02:02:21 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 5 seconds.
2020-07-21 02:02:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blink
2020-07-21 02:02:25 ERROR (MainThread) [homeassistant.components.switch] Setup of platform tplink is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2020-07-21 02:03:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blink
2020-07-21 02:04:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blink
2020-07-21 02:05:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blink
2020-07-21 02:06:23 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blink
2020-07-21 02:07:04 ERROR (Thread-12) [pychromecast.socket_client] [Speakers(192.168.1.6):42611] Error reading from socket.
2020-07-21 02:07:04 WARNING (Thread-12) [pychromecast.socket_client] [Speakers(192.168.1.6):42611] Error communicating with socket, resetting connection
2020-07-21 02:07:04 ERROR (Thread-12) [pychromecast.socket_client] [Speakers(192.168.1.7):32231] Failed to connect to service Google-Cast-Group-c63ddd7d9efa4ad8a5d38a320dd36f62-1._googlecast._tcp.local., retrying in 5.0s
2020-07-21 02:07:04 ERROR (Thread-13) [pychromecast.socket_client] [Bedroom speaker(192.168.1.7):8009] Failed to connect to service Google-Home-Mini-170da8b6c43170857cded4d9b2ec132d._googlecast._tcp.local., retrying in 5.0s
Exception in thread zeroconf-ServiceBrowser__daap._tcp.local.-_googlecast._tcp.local.-_wled._tcp.local.-_elg._tcp.local.-_api._udp.local.-_esphomelib._tcp.local.-_axis-video._tcp.local.-_hap._tcp.local.-_nut._tcp.local.-_ipps._tcp.local.-_miio._udp.local.-_printer._tcp.local.-_ipp._tcp.local.-_spotify-connect._tcp.local.-_dkapi._tcp.local.-_viziocast._tcp.local._2926604728:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1679, in run
state_change=service_type_state_change[1],
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1433, in fire
h(**kwargs)
File "/usr/src/homeassistant/homeassistant/components/zeroconf/__init__.py", line 227, in service_update
domain, context={"source": DOMAIN}, data=info
File "/usr/src/homeassistant/homeassistant/core.py", line 308, in add_job
self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 736, in call_soon_threadsafe
self._check_closed()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
/usr/local/lib/python3.7/threading.py:960: RuntimeWarning: coroutine 'FlowManager.async_init' was never awaited
del exc_type, exc_value, exc_tb
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Exception in thread Sonoff_LAN:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1679, in run
state_change=service_type_state_change[1],
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1433, in fire
h(**kwargs)
File "/config/custom_components/sonoff/sonoff_local.py", line 208, in _zeroconf_handler
handler(deviceid, state, seq)
File "/config/custom_components/sonoff/__init__.py", line 173, in add_device
hass, device_class, DOMAIN, info, hass_config))
File "/usr/src/homeassistant/homeassistant/core.py", line 353, in async_create_task
task: asyncio.tasks.Task = self.loop.create_task(target)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 402, in create_task
self._check_closed()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
/usr/local/lib/python3.7/threading.py:960: RuntimeWarning: coroutine 'async_load_platform' was never awaited
del exc_type, exc_value, exc_tb
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Exception in thread zeroconf-ServiceBrowser__googlecast._tcp.local._2875744152:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1679, in run
state_change=service_type_state_change[1],
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1433, in fire
h(**kwargs)
File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1531, in on_change
listener.add_service(*args)
File "/usr/local/lib/python3.7/site-packages/pychromecast/discovery.py", line 54, in add_service
self._add_update_service(zconf, typ, name, self.add_callback)
File "/usr/local/lib/python3.7/site-packages/pychromecast/discovery.py", line 94, in _add_update_service
callback(name)
File "/usr/src/homeassistant/homeassistant/components/cast/discovery.py", line 68, in internal_add_callback
friendly_name=mdns[4],
File "/usr/src/homeassistant/homeassistant/components/cast/discovery.py", line 38, in discover_chromecast
dispatcher_send(hass, SIGNAL_CAST_DISCOVERED, info)
File "/usr/src/homeassistant/homeassistant/helpers/dispatcher.py", line 75, in dispatcher_send
hass.loop.call_soon_threadsafe(async_dispatcher_send, hass, signal, *args)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 736, in call_soon_threadsafe
self._check_closed()
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 479, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
~ $ ha supervisor logs
20-07-21 05:15:21 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-07-21 05:15:21 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-07-21 05:32:21 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-07-21 05:46:37 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 06:00:08 INFO (SyncWorker_3) [supervisor.docker.interface] Restart homeassistant/raspberrypi4-homeassistant
20-07-21 06:02:26 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-07-21 06:07:38 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:07:55 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:08:14 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:08:40 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-07-21 06:08:50 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:09:26 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:10:02 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:10:38 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:11:14 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:11:14 WARNING (MainThread) [supervisor.homeassistant] Don't wait anymore of Home Assistant startup!
20-07-21 06:11:14 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-53533' coro=<process_lock.<locals>.wrap_api() done, defined at /usr/src/supervisor/supervisor/utils/__init__.py:22> exception=HomeAssistantError()>
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/utils/__init__.py", line 31, in wrap_api
return await method(api, *args, **kwargs)
File "/usr/src/supervisor/supervisor/homeassistant.py", line 421, in restart
await self._block_till_run()
File "/usr/src/supervisor/supervisor/homeassistant.py", line 638, in _block_till_run
raise HomeAssistantError()
supervisor.exceptions.HomeAssistantError
20-07-21 06:13:31 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:19:07 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:24:43 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:30:19 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:36:26 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:42:33 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:46:38 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 06:48:40 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 06:54:47 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 07:00:54 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 07:07:01 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 07:13:08 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 07:19:15 ERROR (MainThread) [supervisor.homeassistant] Error on call http://xxx.xx.xx.x:xxxx/api/config:
20-07-21 07:22:00 INFO (MainThread) [supervisor.host.info] Update local host information
20-07-21 07:22:00 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-07-21 07:22:00 INFO (MainThread) [supervisor.host.services] Update service information
20-07-21 07:22:00 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-07-21 07:22:01 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-07-21 07:22:01 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-07-21 07:22:01 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-07-21 07:46:39 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 08:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/hassio repository
20-07-21 08:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup.git repository
20-07-21 08:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-07-21 08:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-07-21 08:08:40 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-07-21 08:08:41 INFO (MainThread) [supervisor.store] Load add-ons from store: 69 all - 0 new - 0 remove
20-07-21 08:46:40 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 09:28:40 INFO (MainThread) [supervisor.host.info] Update local host information
20-07-21 09:28:40 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-07-21 09:28:41 INFO (MainThread) [supervisor.host.services] Update service information
20-07-21 09:28:41 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-07-21 09:28:41 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-07-21 09:28:41 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-07-21 09:28:41 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-07-21 09:46:41 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 10:08:40 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-07-21 10:46:42 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 11:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-07-21 11:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup.git repository
20-07-21 11:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/hassio repository
20-07-21 11:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-07-21 11:08:41 INFO (MainThread) [supervisor.store] Load add-ons from store: 69 all - 0 new - 0 remove
20-07-21 11:35:20 INFO (MainThread) [supervisor.host.info] Update local host information
20-07-21 11:35:20 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-07-21 11:35:20 INFO (MainThread) [supervisor.host.services] Update service information
20-07-21 11:35:20 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-07-21 11:35:21 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-07-21 11:35:21 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-07-21 11:35:21 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-07-21 11:46:44 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 12:08:40 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-07-21 12:46:45 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 13:42:00 INFO (MainThread) [supervisor.host.info] Update local host information
20-07-21 13:42:00 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-07-21 13:42:00 INFO (MainThread) [supervisor.host.services] Update service information
20-07-21 13:42:00 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-07-21 13:42:01 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-07-21 13:42:01 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-07-21 13:42:01 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-07-21 13:46:46 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 14:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-07-21 14:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup.git repository
20-07-21 14:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-07-21 14:08:40 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/hassio repository
20-07-21 14:08:40 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-07-21 14:08:41 INFO (MainThread) [supervisor.store] Load add-ons from store: 69 all - 0 new - 0 remove
20-07-21 14:46:48 INFO (MainThread) [supervisor.api.security] /snapshots access from f0e7e328_hassio_google_drive_backup
20-07-21 14:51:22 INFO (MainThread) [supervisor.api.security] /core/logs access from core_ssh
20-07-21 14:52:11 INFO (MainThread) [supervisor.api.security] /core/stats access from core_ssh
20-07-21 14:53:02 INFO (MainThread) [supervisor.api.security] /core/check access from core_ssh
20-07-21 14:53:02 INFO (SyncWorker_7) [supervisor.docker] Run command 'python3 -m homeassistant -c /config --script check_config' on homeassistant/raspberrypi4-homeassistant
20-07-21 14:53:17 INFO (MainThread) [supervisor.homeassistant] Home Assistant config is valid
20-07-21 14:53:24 INFO (MainThread) [supervisor.api.security] /supervisor/logs access from core_ssh