Login Home Assistant

Hello,
after installing and creating the first user, I get the following error message when logging in:

Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.206 DEBUG (MainThread) [homeassistant.bootstrap] Waiting for startup to wrap up
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.207 DEBUG (MainThread) [homeassistant.bootstrap] Integration setup times: {'websocket_api': 0.000424, 'system_log': 0.000852, 'webhook': 0.000857, 'safe_mode': 0.001021, 'file_upload': 0.001259, 'lovelace': 0.001472, 'homeassistant': 0.001745, 'device_automation': 0.002178, 'onboarding': 0.002217, 'persistent_notification': 0.002769, 'frontend': 0.004099, 'image': 0.005549, 'person': 0.005728, 'auth': 0.012696, 'api': 0.015951, 'analytics': 0.016149, 'repairs': 0.021166, 'cloud': 0.021579, 'search': 0.023938, 'http': 0.024108, 'diagnostics': 0.029298, 'config': 0.032234}
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.207 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 0.62s
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.207 INFO (MainThread) [homeassistant.core] Starting Home Assistant
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.207 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event core_config_updated[L]>
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.208 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.208 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=person.stefan_harbich, old_state=<state person.stefan_harbich=unknown; editable=True, id=stefan_harbich, source=person.stefan_harbich, user_id=442ea39b89a34032bdc0136b277296f0, friendly_name=Stefan Harbich @ 2022-12-15T12:31:05.788404+00:00>, new_state=<state person.stefan_harbich=unknown; editable=True, id=stefan_harbich, user_id=442ea39b89a34032bdc0136b277296f0, friendly_name=Stefan Harbich @ 2022-12-15T12:31:05.788404+00:00>>
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.209 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event core_config_updated[L]>
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.209 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_started[L]>
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.211 DEBUG (MainThread) [homeassistant.helpers.restore_state] Dumping states
Dez 15 13:31:06 dsme01 hass[2331]: 2022-12-15 13:31:06.213 DEBUG (SyncWorker_5) [homeassistant.helpers.storage] Writing data for core.restore_state to /home/homeassistant/.homeassistant/.storage/core.restore_state
Dez 15 13:31:11 dsme01 hass[2331]: 2022-12-15 13:31:11.173 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/onboarding to 192.168.30.67 (auth: False)
Dez 15 13:31:11 dsme01 hass[2331]: 2022-12-15 13:31:11.201 DEBUG (MainThread) [homeassistant.components.http.view] Serving /manifest.json to 192.168.30.67 (auth: False)
Dez 15 13:31:12 dsme01 hass[2331]: 2022-12-15 13:31:12.007 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/providers to 192.168.30.67 (auth: False)
Dez 15 13:31:12 dsme01 hass[2331]: 2022-12-15 13:31:12.042 DEBUG (MainThread) [homeassistant.components.http.view] Serving /manifest.json to 192.168.30.67 (auth: False)
Dez 15 13:31:12 dsme01 hass[2331]: 2022-12-15 13:31:12.231 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow to 192.168.30.67 (auth: False)
Dez 15 13:31:22 dsme01 hass[2331]: 2022-12-15 13:31:22.480 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow/60c471ae617cd4bc249fee27d2d0b087 to 192.168.30.67 (auth: False)
Dez 15 13:31:22 dsme01 hass[2331]: 2022-12-15 13:31:22.821 DEBUG (SyncWorker_5) [homeassistant.util.json] JSON file not found: /home/homeassistant/.homeassistant/.storage/auth_module.totp
Dez 15 13:31:23 dsme01 hass[2331]: 2022-12-15 13:31:23.293 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/onboarding to 192.168.30.67 (auth: False)
Dez 15 13:31:23 dsme01 hass[2331]: 2022-12-15 13:31:23.309 DEBUG (MainThread) [homeassistant.components.http.view] Serving /manifest.json to 192.168.30.67 (auth: False)
Dez 15 13:31:23 dsme01 hass[2331]: 2022-12-15 13:31:23.715 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.30.67 (auth: False)
Dez 15 13:31:24 dsme01 hass[2331]: 2022-12-15 13:31:24.721 DEBUG (SyncWorker_1) [homeassistant.helpers.storage] Writing data for auth to /home/homeassistant/.homeassistant/.storage/auth

The file

auth_module.totp

is not in the directory. Why? Can I disable that in the configuration.yaml?

root@dsme01:/home/homeassistant/.homeassistant# cat configuration.yaml 
# Loads default set of integrations. Do not remove.
default_config:
http:
  server_host: 192.168.130.20
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.20.20
    - 192.168.130.20
    - 192.168.130.1
# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
# Text to speech
tts:
  - platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Logging
logger:
  default: debug

Greetings from Stefan Harbich

Are you actually experiencing an issue? The logs you shared don’t contain any errors; they only have info and debug messages.

The problem is simply my faulty Apache2 reverse proxy settings.
Why doesn’t this work on Apache2? Surely I don’t have to convert my entire web server to NGINX?

Dez 16 00:14:44 dsme01 hass[26425]: 2022-12-16 00:14:44.127 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.30.62 (192.168.30.62). Requested URL: '/auth/token'. (Mozilla/5.0 (Linux; Android 11; Nokia 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36)
Dez 16 00:14:53 dsme01 hass[26425]: 2022-12-16 00:14:53.003 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.30.62 (192.168.30.62). Requested URL: '/auth/token'. (Mozilla/5.0 (Linux; Android 11; Nokia 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36)
Dez 16 00:14:56 dsme01 hass[26425]: 2022-12-16 00:14:56.028 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.30.62 (192.168.30.62). Requested URL: '/auth/token'. (Mozilla/5.0 (Linux; Android 11; Nokia 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36)

I have change to Nginx. Now is running.