Closed fft1010 closed 6 months ago
Hey there @mib1185, @flabbamann, mind taking a look at this issue as it has been labeled with an integration (fritzbox
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
fritzbox documentation fritzbox source (message by IssueLinks)
Hey there @mammuth, @aarondavidschneider, @chemelli74, mind taking a look at this issue as it has been labeled with an integration (fritz
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
fritz documentation fritz source (message by IssueLinks)
The last events of your log indicates a general connection issue of your HA, as there are also other integrations complaining about connection issues.
Hi @mib1185, … which means what? I physically always turn off some shelly plugs (about 3), but this never showed up before in the logfile as an error, and never was an issue before. The problems came with the last update. And fritzbox is always connected with LAN cable.
Did the fritzbox do a internet reconnect at the time the error occurred?
Hi, No I just checked. The fritzbox was online since 24.4 It seems with the update to 2024.5.3 I get warnings from the HA, that those systems are not reachable, which is what I espect. thanks a lot for this fix. One question. To save power I use a shelly plug to disable e.g. 3 systems. If those are disabled, I get the anove warnings that the 3 systems are not reachable, which is obvious, without power. Is there a way to tell HA to ignore thoses systems in the checks, if the shelly plug disabled them? If so, how can I do this?
thank you Juergen
I mean, there are also connection issues to resources within your local network (eq. the fetching of rest
integration) at the same time, as the connection issue with the fritzbox happens - not only from the fritz
integration, but also by the upnp
integration. Yes it is just a guess, that there must be something on your network or the fritzbox itself had some struggles or maybe with your HA instance (maybe a generell short network outage on it?) - anyway this is not an issue of the fritz
integration
One question. To save power I use a shelly plug to disable e.g. 3 systems. If those are disabled, I get the anove warnings that the 3 systems are not reachable, which is obvious, without power. Is there a way to tell HA to ignore thoses systems in the checks, if the shelly plug disabled them? If so, how can I do this?
You should try our Community Forum or join our Discord chat server to get an answer on this (there are ways to "suppress" it or workaround it)
Hi @mib1185 , I personally did not push it over to Fritzbox Problem, I again checked the logfile, and now I get much less errors- (Did not change anything on the network.) All I saw once is
2024-05-18 08:34:36.054 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.fritz_box_6591_cable_lgi_wi_fi_fritz_box_gastzugang fails
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 462, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 1423, in getresponse
response.begin()
File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 462, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 1423, in getresponse
response.begin()
File "/usr/local/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/http/client.py", line 300, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 950, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1293, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/fritz/switch.py", line 366, in async_update
await self._update()
File "/usr/src/homeassistant/homeassistant/components/fritz/switch.py", line 586, in _async_fetch_update
wifi_info = await self._avm_wrapper.async_get_wlan_configuration(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 881, in async_get_wlan_configuration
return await self._async_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 793, in _async_service_call
result: dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/fritzconnection.py", line 456, in call_action
return self.soaper.execute(service, action_name, arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fritzconnection/core/soaper.py", line 283, in execute
with self.session.post(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
The other errors went away with the last Updates. I am now on 2024.5.4 so I personally think it is somewhere else.
I donno how to proceed. All I know is, that with 2024.4.4 everything was fine, and the errors popped in with 2024.5.3 (I avoided 5.2, 5.1 and 5.0 as I similar problems with 4.0, 4.1, ... which ended with 4.4
thanks Juergen
Hi @fft1010
the provided log message is incomplete, but it already says http.client.RemoteDisconnected: Remote end closed connection without response
which means the fritzbox has dropped the connection (or some network component in between).
Based on the provided diagnostics data on the initial post, i assume your are using some additional network components (i guess at least one switch and one wifi access point).
Overall i'm still on the point, that it is not an issue with HA itself - but to be absolute sure, you should downgrade to 2024.4.4 (DON'T FORGET TO BACKUP FIRST) and check if the issue still occur. Maybe you also want first to check all your network components and also try to restart HA in safe mode (which will disable all custom components). Further check if there are any other obstacles at the time the issue occur.
Hi, I will try to downgrade, and see what happens. I just added the full log concerning this error (above). Sure there is a switch in between. But as in my initial log, the errors where much more and dropped with each new version, I really think the problem is somewhere else.
I cannot swear that there is no network problem, but I do not notice any.
thanks Juergen
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Hi, Sorry. The logs now look cleaner. This issue is gone. Many thanks Juergen
@fft1010 can you then please close the issue ?
The problem
I get this logfile error in the mid of the night after updating to 2024.5.2 and the latest OS
What version of Home Assistant Core has the issue?
core-2024.5.2
What was the last working version of Home Assistant Core?
core-2024.5.2 2024.4.4 I left out 5.0 and 5.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
I assume fritzbox integration
Link to integration documentation on our website
No response
Diagnostics information
config_entry-fritz-1e0211fa64f488dffea4d842469096f5.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response