core icon indicating copy to clipboard operation
core copied to clipboard

AVM FRITZ!Box Tools issue in HA core 2022.4.7

Open pierpippo opened this issue 2 years ago • 21 comments

The problem

Hi, I upgrade to home Assistant Core 2022.4.7 but AVM FRITZ!Box Tools doesnt work. If I try to reinstall it I insert correct IP, User name and password but It says Unkown error and I can't install it. How can i solve the issue? Thx

Pierpippo

What version of Home Assistant Core has the issue?

core 2022.4.7

What was the last working version of Home Assistant Core?

core 2022.2.9

What type of installation are you running?

Home Assistant OS

Integration causing the issue

AVM FRITZ!Box Tools

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

pierpippo avatar Apr 27 '22 14:04 pierpippo

I'm on the same HA version and everything works as normal. Does it happend that you have a custom component integration?

Chreece avatar Apr 27 '22 16:04 Chreece

I have't fritzbox custom component integration.

pierpippo avatar Apr 27 '22 16:04 pierpippo

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)

fritz documentation fritz 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)

Hi @pierpippo

please enable debug logging, restart HA and provide the homeassistant.log. To do so add the following to your configuration.yaml:

logger:
  default: info
  logs:
    homeassistant.components.fritz: debug
    fritzconnection: debug

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

mib1185 avatar Apr 27 '22 20:04 mib1185

Hi @mib1185 I add in configuration.yaml what you wrote. But now where can I find log file and what is his name please? Thank you very very much for your help.

pierpippo avatar Apr 28 '22 11:04 pierpippo

please can u help me? :)

pierpippo avatar Apr 29 '22 09:04 pierpippo

you will find the log file in config/home-assistant.log Information on how to gather/access the log, you will find at the end of the logger documentation

mib1185 avatar May 02 '22 12:05 mib1185

Ok here log file is :) Thank you for your help home-assistant.log

pierpippo avatar May 06 '22 08:05 pierpippo

I closed by mistake :)

pierpippo avatar May 06 '22 17:05 pierpippo

please check the UPNP settings of your Fritz!Box (see here in the docs)

mib1185 avatar May 08 '22 17:05 mib1185

Unfurtanetely the UPnP is enabled :(

pierpippo avatar May 08 '22 18:05 pierpippo

from the logs i can see it is a Fritz!Box 7530 on 7.29 ? Is it a device from your provider so with a branded firmware? Further did you already reboot the Fritz!Box and try again? I ask since the issue seems to be an internal one:

2022-05-06 10:43:15 DEBUG (SyncWorker_8) [fritzconnection] 
http://192.168.1.1:49000/upnp/control/x_upnp
2022-05-06 10:43:15 DEBUG (SyncWorker_8) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetInfo xmlns:u="urn:dslforum-org:service:X_AVM-DE_UPnP:1"></u:GetInfo></s:Body></s:Envelope>'
2022-05-06 10:43:15 DEBUG (SyncWorker_8) [fritzconnection] response status: 500
2022-05-06 10:43:15 DEBUG (SyncWorker_8) [fritzconnection] <?xml version="1.0"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>820</errorCode>
<errorDescription>Internal Error</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

mib1185 avatar May 09 '22 07:05 mib1185

@chemelli74 do you think we should catch exception here to give a proper return https://github.com/home-assistant/core/blob/1be2438ef67c7f523654bdb849cbed5f4c865365/homeassistant/components/fritz/config_flow.py#L82-L86

mib1185 avatar May 09 '22 07:05 mib1185

from the logs i can see it is a Fritz!Box 7530 on 7.29 ? Is it a device from your provider so with a branded firmware? Further did you already reboot the Fritz!Box and try again? I ask since the issue seems to be an internal one:

Hi. Ii is a provider's router but it has the standard fismware (no branded). I have another 7530 as extender and it has the same 7.29 firmware. I also reboot many time router but the issue persists.

pierpippo avatar May 09 '22 07:05 pierpippo

maybe a bit radical, but could you try to reset the Fritz!Box and restore the configuration (which you need to backup first)?

mib1185 avatar May 09 '22 08:05 mib1185

Unfurtanetely the UPnP is enabled :(

I already saw such issue on another box after switching connection type; seems that the API somehow switch from the old service to the new one only after some time and a few reboots. At least this is the report of the other guy affected.

Please try again with a reboot; if not fixed, wait at least for 30 minute and do another one.

Looking forward for your feedback,

Simone

chemelli74 avatar May 09 '22 19:05 chemelli74

Nothing to do. I reboot router many time but I have the same issue "unkown error occurred". Thank for your help :)

pierpippo avatar May 11 '22 12:05 pierpippo

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.

github-actions[bot] avatar Aug 09 '22 13:08 github-actions[bot]

I tre to upgrade hotel assistant ma issue is always here :(

Inviato da Yahoo Mail su Android

Il Mar, 9 Ago, 2022 alle 15:19, @.***> ha scritto:

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

pierpippo avatar Aug 12 '22 05:08 pierpippo

I update to last hotel assistant but the issue is always here :(

pierpippo avatar Aug 12 '22 05:08 pierpippo

hi @pierpippo did you already tried my suggestion from https://github.com/home-assistant/core/issues/70917#issuecomment-1120797473 ?

mib1185 avatar Aug 20 '22 12:08 mib1185

hi @pierpippo did you already tried my suggestion from #70917 (comment) ?

not yet. I'm afraid of losing all the settings of the dozens of open ports. next week when i get home i try.

pierpippo avatar Aug 21 '22 07:08 pierpippo

same error here! fritz 7530 7.29

Montaraz1 avatar Aug 22 '22 15:08 Montaraz1

hi @pierpippo did you already tried my suggestion from #70917 (comment) ?

not yet. I'm afraid of losing all the settings of the dozens of open ports. next week when i get home i try.

please keep in mind, that i've noted to do a backup first ... so no worries about losing any configurations 😉

mib1185 avatar Sep 03 '22 13:09 mib1185

hi @pierpippo did you already tried my suggestion from #70917 (comment) ?

not yet. I'm afraid of losing all the settings of the dozens of open ports. next week when i get home i try.

please keep in mind, that i've noted to do a backup first ... so no worries about losing any configurations 😉

Hi, i have restored to factory conditions my 7530. After that the 7530 was recognized. Then I restored the backup file and another time home assistant tells me that the integration has problems. If I delete it and reinstall it it gives me the same error again and doesn't let me connect to 7530.

pierpippo avatar Sep 30 '22 11:09 pierpippo

Hi @pierpippo just to have "fresh" data to analyse, please enable debug logging, restart HA and provide the home-assistant.log To do so add the following to your configuration.yaml:

logger:
  default: info
  logs:
    homeassistant.components.fritz: debug
    fritzconnection: debug

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

mib1185 avatar Sep 30 '22 13:09 mib1185

home-assistant.log This is HA file log. In the config directory of HA there is also another log file this has .log.1 but i cant attach this type of file. THX very much for your help

pierpippo avatar Sep 30 '22 16:09 pierpippo