Home Assistant perpetually says it's "Loading data"

Server: Raspberry Pi with latest Hassbian and Home Assistant installed, installed today, minimal configuration changes made
Client: macOS High Sierra with Safari browser

Have been able to log in just fine earlier, but when trying to access the web interface for Home Assistant now I get a perpetual “Loading data” screen. /var/log/syslog of the Pi shows the following :

Sep  7 16:59:06 navel hass[510]: 2018-09-07 16:59:06 INFO (MainThread) [homeassistant.components.http.view] Serving / to 10.0.1.40 (auth: False)
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 10.0.1.40 (auth: False)
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 10.0.1.40 (auth: False)
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 10.0.1.40
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=create, service_data=message=Login attempt or request with invalid authentication from 10.0.1.40, title=Login attempt failed, notification_id=http-login, domain=persistent_notification>
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state persistent_notification.httplogin=notifying; message=Login attempt or request with invalid authentication from 10.0.1.40, title=Login attempt failed @ 2018-09-07T09:59:07.450876+00:00>, entity_id=persistent_notification.httplogin>
Sep  7 16:59:07 navel hass[510]: 2018-09-07 16:59:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]>

The /home/homeassistant/.homeassistant/home-assistant.log file said

2018-09-07 16:59:07 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 10.0.1.40

What I’ve tried to so far :

  • Restarting the browser: no change
  • Restarting my Mac: no change
  • Restarting the Pi: no change
  • Added a “?jssjhsdfkl” random string in case there was any caching done by the Pi/Hass: no change
  • Used a ‘private browser window’: YES! Can log in when using a private browser window. Successful login here does not change the behavior in the normal browser window though. At this point I figured it would be cookies.
  • Delete cookies: can’t find any cookies
  • Yelled at the screen: no change

Additional notes :

  • I did not change the password for my Hass account
  • Configuration validation passes

I don’t know how to further troubleshoot this, and would appreciate any help you can offer.

damn… that was going to be my suggestion.

HA doesn’t use cookies, but, instead, uses “local storage” from the browser. I use Chrome, primarily, and I know where to go to remove this. I’m not sure where that’s at in Safari or even what it might be called but, if you can find it, I think that might clear up your issue considering it works fine for you in a private browser window.

try going to your config folder and look for a file named ip_bans.yaml and see if there’s an entry there. if so, delete the entry.

go to the config yaml and look under http: and see if ip_ban_enabled is true. if it is set it to false.

try to log in again.

@finity Assuming my config folder is /home/homeassistant/.homeassistant, there was no ip_bans.yaml in there. I also ready through configuration.yaml and found nothing similar to ip_ban_enabled.

Whatever was causing the problem was indeed inside the “local storage” of Safari, thanks for the suggestion @swiftlyfalling! I went to ~/Library/Safari/LocalStorage and deleted all files where the filename contained the hostname of my Pi running HA. That did the trick, and I can now log in to HA using my normal browser window.

1 Like

I bow down to you!!! thank you :slight_smile: