I can’t get past the ‘Loading data’ screen.
I have loads of these errors in the log.
It looks like something in the authorisation system might be messed up.
2019-12-09 10:07:54 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp\_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
I have tried Chrome mobile, Fully Kiosk and Edge. I have tried deleting a user and recreating it.
This isnewbehaviour and the only thing I have done that I can think might be relevant is to install the Android app and then later on remove it. But I don’t really see how that could make a difference.
I have refresh tokens for my phone from today Including one I presume for the app which I reinstalled thinking it might help - the app can’t connect either.
I also have tons of other refresh tokens, some dated over a year ago.
e.g.
I’d be grateful for ANY suggestions.
I still have access through my Desktop (Chrome) but I am guessing I’ll lose that if I logout!
Yes it did until yesterday.
I can’t even create a new user and logon with that user. It just stops on ‘Loading Data’
Which I presume means it has kind of authenticated ok???
When trying to logon with the new user (that has never been in HA) I get these errors (two, I explain why later)
2019-12-09 15:05:50 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140372919309136] Disconnected: Did not receive auth message within 10 seconds
2019-12-09 15:19:49 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140372945186512] Disconnected: Did not receive auth message within 10 seconds
and looking at the log from the ‘authenticated’ Custom component by @ludeeus it shows the wrong user name logging in. This shows that I tried twice at the same time as from the two log entries.
do you have an old snapshot? Because you can save the .storage folder, restore a snapshot and compare the current .storage folder to the one you restored.
That was a genius idea but didn’t yield anything useful (so far).
I have snapshots going back a few weeks and I didn’t need to restore it I just used 7-Zip to look inside.
Both of the .storage/auth files are the same except for the user I deleted and recreated to try and fix this and for the extra test user I created, also to try and fix this.
So unless I am looking in the wrong place, no clues.
Did those error messages mean anything to you?
Might extra logging help? If so do you know what to turn on?
Yes… that thought has crossed my mind
Do you mean corruption in HA itself? Meaning a clean install of HA followed by a restore from before the problem might be worth a try?
whenever I encounter that loading data issue, I right click and turn on the inspector. 9 out to 10 it is the same customization template failing. Editing(killing) that customization for the time being reloads the system.
Might be worth a check?
I’m only able to look at my desktop PC at the moment (which is working) and I see these errors which look suspicious… But I have no idea what they mean.
Yeah thanks.
I can still get to my config via Samba. My desktop (ethernet connected) is working perfectly well but I am concerned it might be a bit fragile if I don’t get to the bottom of this.
Just before I pressed on ‘Reply’ to post this I decided to close Chrome and reopen it. All those errors have gone so I don’t know what that was all about…
I’m seriously thinking I might have to reinstall HA and start from the beginning.
Hey… got the same error. Without any reason and any changes made since yesterday I’m stuck on “loading data”. It started with my tablet, then my desktop and this morning even my android phone.
Now I was trying to enable debug logger but after a reboot I can’t access through ssh.
Very strange…