Freshly installed HAOS ISSSUES!

i just recently had to reinstall HAOS using the rpi imager and as soon as i log in i get a error showing

Login attempt or request with invalid authentication from 192.168.0.69. Requested URL: ‘/auth/login_flow/7355cb66a61540fa5a7e725f52be5d93’. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36)
First occurred: 19:58:39 (17 occurrences)

even though the i put in the correct password the 1st try,

and i need to enable wi-fi which im also not apparently able to do now and get these errors

Error handling request
19:56:38 – (ERROR) /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py - message first occurred at 19:45:07 and shows up 132 times
Failed to to call /network/interface/wlan0/update -
19:55:05 – (ERROR) Home Assistant Supervisor
/network/interface/wlan0/update return code 500
19:55:05 – (ERROR) Home Assistant Supervisor

the rpi imager release is from the 13-10-2023 idk how to fix it and have be sitting in my hallway for the last 2 days with a laptop and the rpi connected to my modem trying to get it to work.

can someone please help :frowning:

Are you able to plug an actual ethernet cable into it? When you say “you can log in” are you saying that you can access the web interface of HA (it’s the only way I can imagine you are seeing the errors you are seeing)?

i have a ethernet cable plugged into it atm to get it setup but i can’t keep it on ethernet as the ports are being used by other devices which is why i need it to be connected via wi-fi. and yes i can login details are correct on 1st attempt but still get the error saying there was a failed attempt

I don’t understand that at all. What other devices are using the ethernet port of your rPi?

sorry i meant all my modem ethernet ports are being used so long term i wont be able to keep the rpi connected to the ethernet. but for now its connected via ethernet as the wi-fi on the pi is not turned on when you 1st install ha, i have connected it via ethernet to get access to the HA so i can turn on the wi-fi, but it wont let me turn it on due to a "unknown error "

after looking at the core logs i get these errors :man_shrugging:

21 occurrences

File “aiohttp/_http_parser.pyx”, line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Bad status line “Invalid method encountered:\n\n b’\x16\x03\x01\x01\t\x01’\n ^”
2023-10-25 20:56:04.242 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)

1 occurrences of

2023-10-25 20:56:09.474 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)

supervisor logs

23-10-25 20:56:06 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 185, in block_bad_requests
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 201, in system_validation
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 268, in token_validation
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 280, in core_proxy
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/utils.py", line 62, in wrap_api
    answer = await method(api, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/api/network.py", line 222, in interface_update
    await asyncio.shield(self.sys_host.network.apply_changes(interface))
  File "/usr/src/supervisor/supervisor/host/network.py", line 220, in apply_changes
    settings = get_connection_from_interface(interface)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/dbus/network/setting/generate.py", line 131, in get_connection_from_interface
    "ssid": Variant("ay", interface.wifi.ssid.encode("UTF-8")),
                          ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'ssid'

update:

i managed to get it connected to the wifi using this command i found on reddit

network update wlan0 --ipv4-method auto --ipv6-method auto --wifi-auth wpa-psk --wifi-mode infrastructure --wifi-ssid <wifi name, in quotes if there’re spaces> --wifi-psk <wifi password>

1 Like