Home assistant crashes after a few secs

I have some trouble with my hassio 0.60 installation. The frontend doesn’t respond but ssh works fine and the logs are working. After replacing the config ice with a basic version I got the frontend started, but it crashed after a short while leaving this error message in the log:

2018-01-11 19:24:48 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 271, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 295, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2018-01-11 19:24:49 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 271, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 295, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2018-01-11 19:24:53 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 271, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 295, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2018-01-11 19:24:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_stop[L]>
2018-01-11 19:24:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_close[L]>
Config directory: /config

Any clues?

Regards,
Stefan

Need your help, people…

Since no-one helped out I had to solve it on my own… :wink:
Turns out the python error was related to the frontend, switching to es5 helped.
After that I could get things going by switching to a barebone config file and turning on item by item.
Not sure what caused the issue in the end, I left out a few things I don’t use (like tts by google).

what do you mean es5? i cant get ha to run for more than a few sec either

I am also having the same issue (crashing every few seconds) and have the same error. Can you elaborate on your fix?

I was having a similar issue and mine was caused by using the Caddy Proxy add on and the Homebridge add on where Homebridge was trying to connect to the https address. After changing it to http it started working as expected.

Hope that helps someone.

I was also having a tone of timer out of sync issues, and after browsing the forums I saw a link to a post here (known issue) : https://github.com/home-assistant/home-assistant/issues/7133#issuecomment-354006633

It seems my error has gone away after I changed the frontend config:

frontend:
javascript_version: es5