Hi,
I got HAOS working on my Pi the last week and have been running it without issue with a the File Editor, SSH and NGINX Proxy Manager addons installed, and a handful of integrations.
This morning I woke up to it being inaccessible via the web interface both locally and externally, it simply just refuses to connect. However the observer URL works fine and I am able to connect to the PI using SSH.
When observing the HA core logs I see this in a loop every couple minutes -
[07:51:23] INFO: Home Assistant Core finish process exit code 1
[07:51:23] INFO: Home Assistant Core service shutdown
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module>
sys.exit(main())
~~~~^^
File "/usr/src/homeassistant/homeassistant/__main__.py", line 174, in main
args = get_arguments()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 84, in get_arguments
from . import config as config_util
File "/usr/src/homeassistant/homeassistant/config.py", line 28, in <module>
from .core_config import _PACKAGE_DEFINITION_SCHEMA, _PACKAGES_CONFIG_SCHEMA
File "/usr/src/homeassistant/homeassistant/core_config.py", line 19, in <module>
from . import auth
File "/usr/src/homeassistant/homeassistant/auth/__init__.py", line 30, in <module>
from .providers import AuthProvider, LoginFlow, auth_provider_from_config
ImportError: cannot import name 'AuthProvider' from 'homeassistant.auth.providers' (unknown location)
This hasn’t come up before, my config doesn’t include and auth providers block but I did try including one with trusted proxies and homeassistant added but this has no effect
Like this -
homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
- 172.30.22.0/24
My existing config is this -
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.0/24
- 172.30.22.0/24
login_attempts_threshold: 500
ip_ban_enabled: false
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
Any ideas as to how to fix this?
Many Thanks!