home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.74k stars 30k forks source link

Freebox failure #67301

Closed AdrianPal closed 2 years ago

AdrianPal commented 2 years ago

The problem

Good evening,

Since the latest hass version, after every reboot, I have a Freebox failure message (after a first successful launch).

What version of Home Assistant Core has the issue?

core-2022.2.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

freebox

Link to integration documentation on our website

No response

Diagnostics information

I first thought that it was the Freebox OS faulty. I disabled then enabled the HTTP control from the Freebox server, but it didn’t work either.

FYI, here is the api_version info from the Freebox:

{"box_model_name":"Freebox Server (r1)","api_base_url":"\/api\/","https_port":56742,"device_name":"Freebox Server","https_available":true,"box_model":"fbxgw-r1\/full","api_domain":"XXXXX.fbxos.fr","uid":"xxxxx","api_version":"8.5","device_type":"FreeboxServer1,1"}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/freebox/router.py:86 
First occurred: 02:01:47 (1 occurrences) 
Last logged: 02:01:47

Error setting up entry XXXXX.fbxos.fr for freebox
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 327, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/freebox/__init__.py", line 46, in async_setup_entry
    await router.setup()
  File "/usr/src/homeassistant/homeassistant/components/freebox/router.py", line 86, in setup
    fbx_config = await self._api.system.get_config()
  File "/usr/local/lib/python3.9/site-packages/freebox_api/api/system.py", line 9, in get_config
    return await self._access.get("system/")
  File "/usr/local/lib/python3.9/site-packages/freebox_api/access.py", line 122, in get
    return await self._perform_request(self.session.get, end_url)
  File "/usr/local/lib/python3.9/site-packages/freebox_api/access.py", line 86, in _perform_request
    await self._refresh_session_token()
  File "/usr/local/lib/python3.9/site-packages/freebox_api/access.py", line 69, in _refresh_session_token
    session_token, session_permissions = await self._get_session_token(
  File "/usr/local/lib/python3.9/site-packages/freebox_api/access.py", line 45, in _get_session_token
    challenge = await self._get_challenge(base_url, timeout)
  File "/usr/local/lib/python3.9/site-packages/freebox_api/access.py", line 28, in _get_challenge
    r = await self.session.get(url, timeout=timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 913, in start
    self._continue = None
  File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

freebox documentation freebox source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @hacf-fr, @quentame, mind taking a look at this issue as it has been labeled with an integration (freebox) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)