HA stuck on 'Loading Data'

Interesting,

Yes it is.

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.

hmmm, that doesn’t look like the errors I referred to, seems safe to rule that out unfortunately, they’re always quite easy to solve…

web socket errors are among the more mysterious errors considering they never offer anything to go on.

you could disable anything using the websocket integration and see what happens, I hope you can still samba into your files?

really sorry I can’t be of assistance, your network setup is unfamiliar to me, I’m using the duckdns route.

you could for a test disable all http settings and simply use an unsecured instance? Should be not that dangerous if you’re only using it locally.

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…

I was stuck on loading screen awhile back. Had port forwarding on my router set up. Deleting and recreating these settings on my router did the trick…

Well…
I don’t know what to think about this.

The reply by @jackw.27 got me thinking it is all a network a problem; I had some UniFi firmware upgrades recently and an update to the Controller. But that didn’t make sense to me as it was only affecting HA and @NickRP7 described a gradual ‘degradation’ which I think I also experienced with my wall tablet going first.

So for some reason I decided to just try one more time before some taking some radical action. I used Incognito mode on Chrome on my tablet and Lo! it worked. Then I went back to Fully Kiosk, tried that and yes, it works now too!

I can categorically say nothing has changed since posting yesterday except for a few restarts of HA.
I know you won’t believe me :stuck_out_tongue_winking_eye:

So I’m happy it appears to be all working now but not happy that I don’t know why it is, or why it stopped working in the first place.

I’ll be keeping a nervous eye on things.


I do wonder if there is some underlying issue because I have discovered this is not the only current thread regarding being stuck on ‘Loading Data’.

I’ve found a way to solve it…
Open “auth” file in /config/.storage/ and under “refresh_tokens” remove all token with access_token_expiration: 1800.0 (everything exept the long term tokens)
After a reboot “loading data” disappeared permitting me to login in with username and password.
It seems that the token expiration has something to do with this…

Ah… this might make some kind of sense.
I never log out. Maybe that has something to do with it?

Maybe they are expiring while still logged on?
And on my FK tablet I sometimes tell it to reload the start URL which maybe requires a login?
I might be clutching at straws here because I know that doesn’t sound like that is the way it should be but………

Me also “NEVER” log out… it must be this

Hmm… on the one hand I’d like to think we were closing in on the cause but on the other hand it does sound unlikely to be something this ‘simple’.

We really need the thoughts of someone who has a deep understanding of the authorisation system.

Sure… Btw it works not on all of my devices. Android Phone ok, Desktop OK, but not on my Tablet with any browser. Damn

What tablet do you have and what OS is it running?

it’s not the tablet… this morning I’m once again stucked on all devices
This is so frustrating

Could it be browser_mod: ?
I tried disabling it and after a reboot it works again…

damn it is browser_mod: !!!
watch this:
https://github.com/thomasloven/hass-browser_mod/issues/39

just update it to v.15

I don’t believe it!!!

No wonder mine automagically started working again!
I had upgraded browser_mod.

@NickRP7 Brilliant find! How on earth did you spot that?

I started thinking about what we have in common… KF… then Browser_mod…
Inspector showed it hanging… the rest is history! For god’s sake

I’m running into this as well but I can’t see browser_mod in the webconsole to block it.

I downgraded HA from latest (docker) to 0.102.0 and it’s working again.

1 Like

I am facing the same issue.
I downgraded my Home Assistant which is running on VM to 0.101.3.

At the risk of committing necromancy, I have this issue aswell.

Frontend seemingl randomly stops responsing (Loading Data…)
Existing logged in browsers seem to be able to keep interacting with HA, but they eventually run across some reason to refresh and then the spinning wheel of doom hits them too.

Several hours later, it seems to sort itself out. Both occurrence and fix happen without restart or intervention that i’m aware of, and I’ve not been able to find a common trigger yet.

Already tried:
Deleting the .storage directory
Deleting auth file
Deleting tokens in auth file
Reverting to a previous snapshot

Any new ideas from anyone?