HomeAssistant Auth provider error on one instance

Long story short, I’ve been working to migrate and upgrade my HA ZWave from Open ZWave to Zwave JS, and that’s 100% complete and working well, but I just ran into something new that makes no sense - all three instances that I’ve been working with are currently at 2022.5.5 and all normal functions are working exactly as expected, except one on one instance. On all three, I want to bypass login from trusted networks, so I have the following added to the configuration.yaml:

  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - x.x.a.0/24
        - x.x.b.0/24
        - x.x.c.0/24
      allow_bypass_login: true

Now, on my instance, that’s been set up for a long time and has worked well. On my Mother’s instance, it was more recently set up but hasn’t presented any issues that I’ve seen - but on my sisters instance, it seems fine for a (short) while, then HA sort of blows up and becomes inaccessible, with the following in the log:

homeassistant.auth.InvalidProvider: Auth provider homeassistant, None not available
2022-12-18 20:35:18 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 94, in handle_req
    resp = await func(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/auth/__init__.py", line 266, in post
    return await self._async_handle_refresh_token(hass, data, request.remote)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/auth/__init__.py", line 386, in _async_handle_refresh_token
    access_token = hass.auth.async_create_access_token(
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 502, in async_create_access_token
    self.async_validate_refresh_token(refresh_token, remote_ip)
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 547, in async_validate_refresh_token
    if provider := self._async_resolve_provider(refresh_token):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 534, in _async_resolve_provider
    raise InvalidProvider(
homeassistant.auth.InvalidProvider: Auth provider homeassistant, None not available

When this happens, if I stop HA, comment out the ‘auth_providers’ bits and start HA, it works completely fine and never stops working, so it seems like for some reason, that particular instance gets really sour with the ‘auth_providers’ and goes sideways.

In all three config files, the ‘auth_providers’ is at the same line, same spacing, same everything. What was placed in my sisters instance was copied out of my configuration.yaml and pasted into hers (same was done for my mothers). It really doesn’t make any sense.

Any ideas?

Did you ever figure it out.