[SOLVED] Fritzbox Binding (using TR064 protocol) and FritzBox 7590

Tags: #<Tag:0x00007f2fafbe10a0>

Hi,
I installed the Fritzbox TR064 binding. I create the service config without problems.

## Binding for accessing FritzBoxes using the TR064 protocol. Uses http(s) requests.

# URL. Either use http://<fbox-ip>:49000 or https://<fbox-ip>:49443 (https preferred!)
url=http://172.16.1.10:8089

# Refresh Interval (60000ms default)
refresh=182000

# User Name (only use this value if you configured a user in fbox webui/config!)
# If this parameter is missing, "dslf-config" is used as default username
# It is recommended to to switch to authentication by username in fritzbox config
# and add a separate config user for this binding.
user=openhab

# PW
pass=geheim

I create the items file with the given options from the binding.

Fritzbox is configured and TR064 port is open.


But when I look at the log I see follow errors

 ==> /var/log/openhab2/openhab.log <==

2019-09-10 16:04:13.268 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:8089 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-10 16:04:13.273 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-10 16:04:13.277 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

2019-09-10 16:04:13.285 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:8089 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-10 16:04:13.289 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-10 16:04:13.291 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

2019-09-10 16:04:13.294 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration2

2019-09-10 16:04:13.296 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration3

2019-09-10 16:04:13.299 [INFO ] [b.core.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been started

2019-09-10 16:04:13.306 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1

2019-09-10 16:04:13.431 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - Error constructing request SOAP msg for getting parameter. null

2019-09-10 16:04:13.433 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - Could not determine data to be sent to FritzBox!

2019-09-10 16:04:13.435 [ERROR] [b.core.service.AbstractActiveService] - Error while executing background thread FritzboxTr064 Refresh Service

java.lang.NullPointerException: null

	at org.openhab.binding.fritzboxtr064.internal.FritzboxTr064Binding.execute(FritzboxTr064Binding.java:219) ~[?:?]

	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) ~[210:org.openhab.core.compat1x:2.4.0]

	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [210:org.openhab.core.compat1x:2.4.0]

Using FRITZ!OS 07.12 and Openhab 2.4

Can someone help where I must search for fixing the errors?

best regards,
Lars

Wrong port?

Hi,

I think port is right. See second screenshot in my post. TR064 is open on port 8089 on the fritzbox. I try port 49000 error is same (and 49443 same error too).

==> /var/log/openhab2/openhab.log <==

2019-09-10 21:38:51.883 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:49000 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-10 21:38:51.887 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-10 21:38:51.890 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

2019-09-10 21:38:51.895 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:49000 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-10 21:38:51.897 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-10 21:38:51.900 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

best regards,
Lars

Hi Lars,

Welcome to the openHAB community :+1:.

Can you check the rights for your user. It needs “FRITZ!Box Einstellungen” (mandatory) and “Sprachnachrichten, Faxnachrichten, FRITZ!App Fon und Anrufliste” If you want to use Call Monitor or TAM features.

Hi,

thanks for welcome!
I give all rights without NAS and VPN. I think this is not needed or ?

Which version of the binding are you using?

Hi,
do you also changed the login config in the Fritzbox? I have installed this plugin last week without any problems, but I am using the standart user login. I think on some pages about this topic it was recommended if you want to use a dedicated user to login you have also to change the login in you fritzbox to use user name and password and not the standart login with only password.

Hi,

I use the binding version 1.13.0
@Ingo_Bruland nice tip I changed the login to user/pw but no changes in behaivour of the bindings. It ends with the nullpointer exception.

2019-09-11 09:38:25.246 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:8089 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-11 09:38:25.252 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-11 09:38:25.256 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

2019-09-11 09:38:25.262 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Connect to 172.16.1.10:8089 [/172.16.1.10] failed: Verbindungsaufbau abgelehnt (Connection refused)

2019-09-11 09:38:25.264 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!

2019-09-11 09:38:25.267 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services

2019-09-11 09:38:25.269 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration2

2019-09-11 09:38:25.271 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration3

2019-09-11 09:38:25.274 [INFO ] [b.core.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been started

2019-09-11 09:38:25.276 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1

2019-09-11 09:38:25.280 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - Error constructing request SOAP msg for getting parameter. null

2019-09-11 09:38:25.282 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - Could not determine data to be sent to FritzBox!

2019-09-11 09:38:25.283 [ERROR] [b.core.service.AbstractActiveService] - Error while executing background thread FritzboxTr064 Refresh Service

java.lang.NullPointerException: null

	at org.openhab.binding.fritzboxtr064.internal.FritzboxTr064Binding.execute(FritzboxTr064Binding.java:219) ~[?:?]

	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) ~[210:org.openhab.core.compat1x:2.4.0]

	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [210:org.openhab.core.compat1x:2.4.0]

I checked my FRITZ!Box. Port 8089 is Provider services (TR069) from the Internet! However you are in your Intranet. The port is then either 49000 or 49443. However your FRITZ!Box needs to use login with user/pass when accessing it from the Intranet!

Hi,

I changed to the port but become same result. I build the file new and than it work with port 49000. Change the Fritzbox to use login with user/pass was needed too. So Port 8089 is only for provider services (TR069), think this is need to know.

Thanks a lot for finding this and solve my Problem!