Homegear/Homegear-Gateway verlieren Verbindung

Ab und an verliert Homegear-Gateway die Verbindung zur Basis. Leider stelle ich das erst fest, wenn mal die weit entfernten Geräte nur verzögert oder gar nicht reagieren.

Es wäre schön, wenn man in node-blue auf das nicht erreichbare Gateway reagieren könnte. Im Admin-UI wird das Gateway als disconnected angezeigt, die Information ist also da.

2 Likes

Interessant waere auch rauszufinden wieso die Verbindung verloren geht … also jetzt nicht als Status, sondern so generell … :thinking:

– Micha

Ja, du hast recht. :wink:
Ich schau es mir mal an:

homegear-gateway.err:

11/24/19 08:29:15.409 Error calling packetReceived(): No RPC response received.
11/24/19 08:29:18.026 Warning: Error sending packet in UPnP server: Invalid argument
11/24/19 08:29:18.027 Warning: Error sending packet in UPnP server: Invalid argument
11/24/19 08:29:18.027 Warning: Error sending packet in UPnP server: Invalid argument
11/24/19 08:29:19.165 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:20.169 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:21.173 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:22.181 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:23.127 Error calling packetReceived(): No RPC response received.
11/24/19 08:29:23.188 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:24.192 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:25.200 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:26.208 Error: No more clients can connect to me as the maximum number of allowed connections is reached. Listen IP: 10.10.10.11, bound port: 2017, client IP: 10.10.10.10
11/24/19 08:29:31.464 Error calling packetReceived(): No RPC response received.
11/24/19 14:01:35.572 Error calling packetReceived(): No RPC response received.

In homegear.err steht folgendes (leider geht es nicht so weit zurück zum 24.11.2019)

12/04/19 12:30:47.404 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Connection to client number 13 closed (3).
12/04/19 12:30:47.404 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:30:49.404 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:30:49.404 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:30:52.524 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:30:52.524 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:30:55.644 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:30:55.646 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:30:58.764 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:30:58.764 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:31:01.884 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:31:01.884 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:31:02.804 Module Philips hue: Philips hue bridge "0017884f6873": Error: Command was not send to Hue Bridge: Could not connect to server 10.10.10.6 on port 80. Poll failed with error code: 1.
12/04/19 12:31:05.003 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:31:05.004 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:31:08.124 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:31:08.124 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/04/19 12:31:11.244 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:31:11.244 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/

Das steht in homegear-gateway.err am 4.12.2019

12/04/19 12:29:50.834 Error calling packetReceived(): No RPC response received.
12/04/19 12:29:55.836 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:00.838 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:05.839 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:10.841 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:17.761 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:22.763 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:27.764 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:32.771 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:37.777 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:42.779 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:47.780 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:52.782 Error calling packetReceived(): No RPC response received.
12/04/19 12:30:57.789 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:02.791 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:07.793 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:12.795 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:17.796 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:23.599 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:28.600 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:33.602 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:38.604 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:49.899 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:54.900 Error calling packetReceived(): No RPC response received.
12/04/19 12:31:59.902 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:04.904 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:09.905 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:14.907 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:19.909 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:24.910 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:29.912 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:34.914 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:39.916 Error calling packetReceived(): No RPC response received.
12/04/19 12:32:44.917 Error calling packetReceived(): No RPC response received.
12/04/19 14:17:46.342 Error in file RpcServer.cpp line 166 in function bool RpcServer::start(): Error: Could not start listening on port 2017: Cannot assign requested address
12/04/19 14:17:46.348 Critical: Could not start.
12/04/19 14:17:47.010 Error in file RpcServer.cpp line 166 in function bool RpcServer::start(): Error: Could not start listening on port 2017: Cannot assign requested address
12/04/19 14:17:47.010 Critical: Could not start.
12/04/19 14:17:47.707 Error in file RpcServer.cpp line 166 in function bool RpcServer::start(): Error: Could not start listening on port 2017: Cannot assign requested address

Kann es sein, dass die Verbindung immer wieder zusammenbricht, aus irgendeinem Grund und irgendwann die verfügbaren Verbindungen auslaufen?

Diese Meldungen kommen teilweise sekündlich (über Stunden), und verschwinden dann sang- und klanglos wieder.

12/10/19 19:03:03.194 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:03.194 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:04.196 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:04.196 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:05.198 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:05.198 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:06.199 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:06.201 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:07.203 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:07.204 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:08.205 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:08.205 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:09.207 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:09.207 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:10.209 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:10.209 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:11.211 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:11.211 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:12.213 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:12.213 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
12/10/19 19:03:13.215 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.1
12/10/19 19:03:13.215 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...

Ich weiss, cool wäre es, wenn die Daten besser zusammenpassen würden, tun sie aber nicht. Es gibt aber schon ein paar Zeilennummern und Anhaltspunkte:

  • RpcServer.cpp, Zeile 166
  • PhysicalInterfaces/HomegearGateway.cpp, Zeile 303

Da müsste man mal reinschauen, ob das miteinander zusammenhängt.

OK,

Error in file RpcServer.cpp line 166 in function bool RpcServer::start(): Error: Could not start listening on port 2017: Cannot assign requested address
  • RpcServer.cpp, Zeilke 166:

image

Oha, das schlimmste, was passieren kann. Eine Exception beim Exception-Handling. Da muss @sathya ran.

HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Error in file PhysicalInterfaces/HomegearGateway.cpp line 303 in function void BidCoS::HomegearGateway::listen(): Could not connect to server 10.10.10.11 on port 2017. Poll failed with error code: 1.
12/04/19 12:30:55.646 Module HomeMatic BidCoS: HomeMatic Homegear Gateway "My-Gateway": Warning: Connection to device closed. Trying to reconnect...
  • PhysicalInterfaces/HomegearGateway.cpp, Zeile 303

image

Und noch einmal.

Entweder habe ich etwas falsch verstanden, oder hier tritt das Gleiche auf. Kann natürlich auch sein, dass die angegebene Zeilennummer nicht die Zeile der Exception, sondern nur die Zeile des Outputs ist.

Hallo @job,

Genau, das ist die Zeile, in welcher die Fehlermeldung generiert wird, nicht die Ausnahme selbst. Anletztere Info kommt man in C++ (meines Wissens) leider nicht ran.

Der RPC-Server erlaubt am Gateway nur eine Verbindung zur Zeit. Diese scheint aber inaktiv zu sein. Trotzdem wird sie nicht geschlossen und das Gateway erlaubt keine neue Verbindung. Die Fragen sind also:

  1. Warum reißt die Verbindung initial überhaupt ab (das hat vermutlich nichts mit Homegear oder dem Gateway zu tun).
  2. Warum wird nicht erkannt, dass die Verbindung geschlossen ist.

Ich habe schon einmal kurz geschaut, auf den ersten Blick sieht alles gut aus. Ich muss mir das aber noch einmal genauer ansehen.

Zu deiner initialen Frage:

Du kannst in einer function-Node $hg->listInterfaces(); (https://ref.homegear.eu/rpc.html#listInterfaces) aufrufen. Da siehst du, ob dieses verbunden ist, oder nicht (Schlüssel CONNECTED).

Viele Grüße

Sathya