Fresh install of 1.31 not working (aiohttp errors)

So I decided to do a fresh install to have the new python version and get tradfri working.
I already had a Hass version running and made a backup of all config files and also an image backup.

I loaded a fresh Hassbian image on the card and booted the pi3.
After a while it keeps looping this error in the log:

2017-10-14 17:05:02 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 278, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 274, in aiohttp._http_parser.HttpParser.feed_data (aiohttp/_http_parser.c:4364)
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2017-10-14 17:06:02 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 278, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 274, in aiohttp._http_parser.HttpParser.feed_data (aiohttp/_http_parser.c:4364)
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

When browsing to the gui I can’t login with any password and this error is shown:
image

If anyone has any idea, please shout.

Hi
same problem i am facing

2017-10-19 07:52:21 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 278, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 274, in aiohttp._http_parser.HttpParser.feed_data (aiohttp/_http_parser.c:4364)
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

also i am not able to connect my dusckdns below is my confi file settting
http:
api_password: mypass
base_url: https://mydns.duckdns.org

HI
got solution just do below it will solve your problem

cd /etc/letsencrypt

sudo groupadd ssl-cert

sudo chown root:ssl-cert live/

sudo chown root:ssl-cert archive/

sudo chmod 750 live/

sudo chmod 750 archive/

sudo usermod -a -G ssl-cert homeassistant

(Reboot)

This can’t be a solution for the issue I had because I had the issue before I copied my old configuration files or changed any of the default configuration files.
So I didn’t have any duckdns things in my config files and still I received those error messages.

I didn’t really solve the issues but what I did was just continue with copying over my own config files and continue with other installations like samba etc.

Now when I start Home Assistant I don’t see the same errors anymore and also my GUI is accessible.

TL;DR:

  • Issue itself was never solved.
  • Workaround (copying old config files and continuing installations) seems to work.