I’ve encountered a strange issue with home assistant where 1 user can’t login. No issues with other uses logging in.
Configuration doesn’t have ip ban setup, but it looks like a user ban. I just don’t know how to remove it.
Environment:
python venv
Rasp pi 4
Running through nginx reverse proxy
Version: Home Assistant 2020.12.1
Configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies: 127.0.0.1
Error on login:
Logger: aiohttp.server
Source: components/http/ban.py:102
First occurred: 7:26:50 PM (3 occurrences)
Last logged: 7:29:25 PM
Error handling request
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/forwarded.py", line 172, in forwarded_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 83, in handle_req
resp = await func(view, request, *args, **kwargs)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/auth/login_flow.py", line 255, in post
await process_wrong_login(request)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 102, in process_wrong_login
remote_host, _, _ = await hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
OSError: [Errno 97] Address family not supported by protocol