Can't login into WebUI of homeassistant since version 0.82.1

Hi,

Since upgrading from homassistant 0.81 to 0.82.1 I can’t get into the WebUI anymore.
WebUI gives “Unable to connect to Home Assistant”

homeassistant.log gives:

2018-11-15 15:12:21 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_protocol.py", line 390, in start resp = await self._request_handler(request) File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_app.py", line 366, in _handle resp = await handler(request) File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_middlewares.py", line 106, in impl return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/auth.py", line 97, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/auth.py", line 97, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/view.py", line 113, in handle result = await result File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/ban.py", line 76, in handle_req resp = await func(view, request, *args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/auth/__init__.py", line 258, in post hass, data, str(request[KEY_REAL_IP])) File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/auth/__init__.py", line 346, in _async_handle_refresh_token refresh_token = await hass.auth.async_get_refresh_token_by_token(token) File "/usr/local/lib/python3.6/dist-packages/homeassistant/auth/__init__.py", line 330, in async_get_refresh_token_by_token return await self._store.async_get_refresh_token_by_token(token) File "/usr/local/lib/python3.6/dist-packages/homeassistant/auth/auth_store.py", line 204, in async_get_refresh_token_by_token await self._async_load() File "/usr/local/lib/python3.6/dist-packages/homeassistant/auth/auth_store.py", line 247, in _async_load name=group_dict['name'], KeyError: 'name'

Versions of OS pip3 python and packages:

root@ubuntu-server:/etc/homeassistant# pip3 --version
pip 18.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
root@ubuntu-server:/etc/homeassistant# python3 --version
Python 3.6.6
root@ubuntu-server:/etc/homeassistant# uname -a
Linux ubuntu-server 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu-server:/etc/homeassistant#
root@ubuntu-server:/etc/homeassistant# pip3 list
Package              Version
-------------------- ----------
aiohttp              3.4.4
aiohttp-cors         0.7.0
asn1crypto           0.24.0
asterisk             0.0.8
asterisk-ami         0.1.5
astral               1.7.1
async-timeout        3.0.1
attrs                18.2.0
Automat              0.7.0
Babel                2.6.0
bcrypt               3.1.4
blinker              1.4
certifi              2018.10.15
cffi                 1.11.5
chardet              3.0.4
Click                7.0
colorama             0.4.0
command-not-found    0.3
configobj            5.0.6
constantly           15.1.0
cryptography         2.3.1
Cython               0.29
cytoolz              0.9.0.1
distro-info          0.18
docutils             0.14
entrypoints          0.2.3
evohomeclient        0.2.7
feedparser           5.2.1
Flask                1.0.2
geographiclib        1.49
geopy                1.17.0
gevent               1.3.7
greenlet             0.4.15
homeassistant        0.82.1
httplib2             0.12.0
hyperlink            18.0.0
idna                 2.7
idna-ssl             1.1.0
incremental          17.5.0
itsdangerous         1.1.0
jeepney              0.4
Jinja2               2.10
jsonpatch            1.23
jsonpointer          2.0
jsonschema           2.6.0
keyring              16.0.2
keyrings.alt         3.1
language-selector    0.1
Mako                 1.0.7
MarkupSafe           1.1.0
multidict            4.4.2
mysqlclient          1.3.13
ndg-httpsclient      0.5.1
netifaces            0.10.7
oauthlib             2.1.0
PAM                  0.4.2
pip                  18.1
PlexAPI              3.1.0
py-Asterisk          0.5.17
pyasn1               0.4.4
pyasn1-modules       0.2.2
pycairo              1.18.0
pycparser            2.19
pycrypto             2.6.1
pycryptodome         3.7.0
PyDispatcher         2.0.5
pygobject            3.26.1
PyHamcrest           1.9.0
PyJWT                1.6.4
pyOpenSSL            18.0.0
pyserial             3.4
pyst2                0.5.0
python-apt           1.6.3
python-debian        0.1.33
python-openzwave     0.4.11
pytz                 2018.7
pyxdg                0.26
PyYAML               3.13
requests             2.20.0
requests-unixsocket  0.1.5
ruamel.yaml          0.15.72
SecretStorage        3.1.0
service-identity     17.0.0
setuptools           40.2.0
six                  1.11.0
ssh-import-id        5.7
systemd-python       234
toolz                0.9.0
tqdm                 4.28.1
Twisted              18.9.0
ufw                  0.35
unattended-upgrades  0.1
urllib3              1.24.1
voluptuous           0.11.5
voluptuous-serialize 2.0.0
websocket-client     0.54.0
Werkzeug             0.14.1
wheel                0.31.1
Wikidata             0.6.1
yarl                 1.2.6
zope.interface       4.6.0
root@ubuntu-server:/etc/homeassistant#

Relevant snippet of configuration.yaml

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  api_password: !secret webui_password
  server_port: 8124
  ssl_certificate: /etc/certs/ubuntu-server.crt
  ssl_key: /etc/certs/ubuntu-server.key
  base_url: ubuntu-server.flissinger.local:8124
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.1
    - 10.0.0.2
  trusted_networks:
    - 10.0.0.0/24
    - 10.0.1.0/24
    - 10.0.2.0/24
  ip_ban_enabled: true
  login_attempts_threshold: 5

Tried to uninstall and reinstall relevant pip packages and homeassistant itself.
Tried different browsers on different devices, cleared cookies and browser cache.
Still can’t get into homeassistant webui.

Who can help me out?

Best Regards,
Donald.

Check ip_bans.yaml. It might contain your IP address.

I got that exact message when I upgraded to 0.82.0 last week and somehow I was banned (because of the ip_ban_enabled setting). Still not sure how and why that happened.

Thanks for your reply.

There is no ip_bans.yaml in my case…