Hass.io config check API error

After recent update my home assistant started to have some issues with restarting hassio. When I launch Restart in Configuration>Server Management>Restart some errors occur in dev-info:

Timeout on /homeassistant/check request
Hass.io config check API error
Timer got out of sync. Resetting

Fristly I thought that my recent change in configuration.yaml may be the case but then I tried plain config used from: I accidentally deleted my configuration.yaml file and still same config error.

logs from config/home-assistant.log

2018-10-09 23:06:25 WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: None
2018-10-09 23:06:41 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2018-10-09 23:06:41 WARNING (MainThread) [homeassistant.setup] Setup of frontend is taking over 10 seconds.
2018-10-09 23:09:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-09 23:10:44 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.199
2018-10-09 23:25:42 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 410, in start
await resp.prepare(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 300, in prepare
return await self._start(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 608, in _start
return await super()._start(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 36core-ssh:/config# cat home-assistant.log
2018-10-09 23:06:25 WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: None
2018-10-09 23:06:41 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2018-10-09 23:06:41 WARNING (MainThread) [homeassistant.setup] Setup of frontend is taking over 10 seconds.
2018-10-09 23:09:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-09 23:10:44 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.199
2018-10-09 23:25:42 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 410, in start
await resp.prepare(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 300, in prepare
return await self._start(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 608, in _start
return await super()._start(request)
File “/usr/local/lib/python3.6/site-packages/aiohttp/web_response.py”, line 367, in _start
await writer.write_headers(status_line, headers)
File “/usr/local/lib/python3.6/site-packages/aiohttp/http_writer.py”, line 110, in write_headers
self._write(buf)
File “/usr/local/lib/python3.6/site-packages/aiohttp/http_writer.py”, line 67, in _write
raise ConnectionResetError(‘Cannot write to closing transport’)
ConnectionResetError: Cannot write to closing transport
2018-10-09 23:28:03 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2018-10-09 23:28:03 ERROR (MainThread) [homeassistant.components.hassio] Hass.io config check API error
2018-10-10 00:06:50 ERROR (MainThread) [homeassistant.components.updater] Got unexpected response: None
2018-10-10 00:07:03 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 01:07:09 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 02:07:17 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 03:07:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 04:07:29 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 05:07:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 06:07:41 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-10 06:16:58 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.150
2018-10-10 06:23:01 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/check return code 500.
2018-10-10 06:23:02 ERROR (MainThread) [homeassistant.components.hassio] Hass.io config check API error
2018-10-10 06:23:51 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2018-10-10 06:23:52 ERROR (MainThread) [homeassistant.components.hassio] Hass.io config check API error
2018-10-10 06:25:19 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/check return code 500.
2018-10-10 06:25:19 ERROR (MainThread) [homeassistant.components.hassio] Hass.io config check API error
2018-10-10 06:29:29 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/check request
2018-10-10 06:29:29 ERROR (MainThread) [homeassistant.components.hassio] Hass.io config check API error
2018-10-10 06:31:02 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

Every time when I had wrong configuration I was told which line casues the problem, now I have no clue whats going on

I’m using Raspberry B+ with Hassos.

I think deleting the database will fix those errors. You’ll lose your history of course but it will fix the errors (most of them)

A recent is update needed to re-format the database and you maybe interrupted that process and the database got corrupted. Just delete it and restart.

I stopped home assistant service, deleted db and then used ssh connection to reboot, that worked.

Thanks :slight_smile:

Hello,

I have exact the same problem.
After migration from resinOS to hassOS my log shows this error:

WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: None

I stopped home assistant service, deleted db and then used ssh connection to reboot. Unfortunately, that did not worked for me.

I would be very thankful for any ideas.

Hi,

Same for me, delete db and reboot didn’t fix. I guess the real pb is :
“Schema version: None”.
Logbook and history are empty, but database looks ok:

root@virtualubuntu:/usr/share/hassio/homeassistant# sqlite3 home-assistant_v2.db “PRAGMA integrity_check”
ok

sqlite> SELECT * FROM schema_changes;
1|6|2018-10-19 06:29:02.801060

sqlite> SELECT count(*) from states;
48

But somehow HA can write but not read the db.

Thanks in advance for your help

L.

Got the same error, anyone found an answer?
tried delete the DB but didnt work