Homegear Service lässt sich nicht richtig neustarten

Hallo Zusammen,
der Homegear Service startet bei mir nach dem Start des Raspi’s ordentlich hoch und ich sehe im Log die Events von den gekoppelten Homematic Geräten. Wenn ich den Dienst jedoch mit “sudo service homegear stop” stoppe und anschließend mit “sudo service homegear start” erneut starten möchte, kann er angeblich das COC auf dem device /dev/ttyAMA0 nicht öffnen.

Habt Ihr eine Idee was die Ursache dafür ist?

VG
Heiko

07/11/17 12:04:31.842 Starting Homegear...
07/11/17 12:04:31.842 Homegear version 0.7.5-1247
07/11/17 12:04:31.843 Git commit SHA of libhomegear-base: -
07/11/17 12:04:31.843 Git branch of libhomegear-base:     -
07/11/17 12:04:31.843 Git commit SHA of Homegear:         -
07/11/17 12:04:31.843 Git branch of Homegear:             -
07/11/17 12:04:31.847 Info: Setting allowed core file size to "4294967295" for user with id 0 and group with id 0.
07/11/17 12:04:31.847 Info: Core file size now is "4294967295".
07/11/17 12:04:31.848 Info: Setting maximum thread priority to "4294967295" for user with id 0 and group with id 0.
07/11/17 12:04:31.848 Info: Maximum thread priority now is "4294967295".
07/11/17 12:04:32.161 Info: Backing up database...
07/11/17 12:04:33.130 Initializing database...
07/11/17 12:04:33.152 Info: Loading family module mod_homematicbidcos.so
07/11/17 12:04:33.239 /etc/homegear/families/homematicbidcos.conf
07/11/17 12:04:33.244 Info: Loading family module mod_miscellaneous.so
07/11/17 12:04:33.261 /etc/homegear/families/miscellaneous.conf
07/11/17 12:04:33.263 Info: Loading family module mod_homematicwired.so
07/11/17 12:04:33.298 /etc/homegear/families/homematicwired.conf
07/11/17 12:04:33.300 Info: Setting up physical interfaces and GPIOs...
07/11/17 12:04:33.323 Info: Dropping privileges to user homegear (110) and group homegear (116)
07/11/17 12:04:33.333 Info: Homegear is (now) running as user with id 110 and group with id 116.
07/11/17 12:04:33.345 Starting script engine server...
07/11/17 12:04:33.360 Initializing licensing controller...
07/11/17 12:04:33.360 Loading licensing controller data...
07/11/17 12:04:33.360 Loading devices...
07/11/17 12:04:33.361 Loading XML RPC devices...
07/11/17 12:04:39.686 Loading device 2
07/11/17 12:04:39.687 Module HomeMatic BidCoS: Info: Central address set to 0xFDFFA1.
07/11/17 12:04:39.694 Module HomeMatic BidCoS: Loading peer 1
07/11/17 12:04:39.732 Module HomeMatic BidCoS: Loading peer 2
07/11/17 12:04:39.760 Module HomeMatic BidCoS: Loading peer 3
07/11/17 12:04:39.929 Module HomeMatic BidCoS: Loading peer 4
07/11/17 12:04:40.085 Module HomeMatic BidCoS: Loading peer 5
07/11/17 12:04:40.206 Module HomeMatic BidCoS: Loading peer 6
07/11/17 12:04:40.366 Module HomeMatic BidCoS: Loading peer 8
07/11/17 12:04:40.424 Module HomeMatic BidCoS: Loading peer 9
07/11/17 12:04:40.482 Module HomeMatic BidCoS: Loading peer 10
07/11/17 12:04:40.646 Module HomeMatic BidCoS: Loading peer 11
07/11/17 12:04:40.718 Module HomeMatic BidCoS: Loading peer 12
07/11/17 12:04:40.881 Module HomeMatic BidCoS: Loading peer 13
07/11/17 12:04:41.060 Module HomeMatic BidCoS: Loading peer 14
07/11/17 12:04:41.241 Module HomeMatic BidCoS: Loading peer 15
07/11/17 12:04:41.361 Module HomeMatic BidCoS: Loading peer 16
07/11/17 12:04:41.410 Module HomeMatic BidCoS: Loading peer 17
07/11/17 12:04:41.578 Module HomeMatic BidCoS: Loading peer 19
07/11/17 12:04:41.641 Module HomeMatic BidCoS: Loading peer 20
07/11/17 12:04:41.704 Module HomeMatic BidCoS: Loading peer 21
07/11/17 12:04:41.734 Module HomeMatic BidCoS: Loading peer 22
07/11/17 12:04:41.800 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
07/11/17 12:04:41.802 Info: Disposing family module mod_homematicwired.so
07/11/17 12:04:41.805 Loading XML RPC devices...
07/11/17 12:04:41.817 Loading device 1
07/11/17 12:04:41.820 Initializing RPC client...
07/11/17 12:04:41.821 Starting XML RPC server RPCServer1 listening on :::2001...
07/11/17 12:04:41.837 Starting XML RPC server RPCServer2 listening on :::2002, SSL enabled...
07/11/17 12:04:41.847 RPC Server (Port 2001): Info: RPC Server started listening on address :: and port 2001
07/11/17 12:04:41.944 Starting XML RPC server RPCServer3 listening on :::2003, SSL enabled, authentication enabled...
07/11/17 12:04:41.952 RPC Server (Port 2002): Info: RPC Server started listening on address :: and port 2002
07/11/17 12:04:42.043 Starting CLI server...
07/11/17 12:04:42.045 Initializing event handler...
07/11/17 12:04:42.048 Loading events...
07/11/17 12:04:42.051 Starting flows server...
07/11/17 12:04:42.054 RPC Server (Port 2003): Info: RPC Server started listening on address :: and port 2003
07/11/17 12:04:42.065 Starting IPC server...
07/11/17 12:04:42.082 Start listening for packets...
07/11/17 12:04:42.429 Module HomeMatic BidCoS: COC "My-COC": Error in file PhysicalInterfaces/COC.cpp line 225 in function virtual void BidCoS::COC::startListening(): Couldn't open device "/dev/ttyAMA0": Connection timed out
07/11/17 12:04:42.431 Critical: At least one of the physical devices could not be opened... Exiting...
07/11/17 12:04:44.047 Closing database...
07/11/17 12:04:44.242 Info: Disposing family module mod_miscellaneous.so
07/11/17 12:04:44.244 Info: Disposing family module mod_homematicbidcos.so
07/11/17 12:04:45.101 RPC Server (Port 2003): Info: Waiting for threads to finish.
07/11/17 12:04:45.202 RPC Server (Port 2002): Info: Waiting for threads to finish.
07/11/17 12:04:45.302 RPC Server (Port 2001): Info: Waiting for threads to finish.
07/11/17 12:04:47.943 Starting Homegear...
07/11/17 12:04:47.944 Homegear version 0.7.5-1247
07/11/17 12:04:47.946 Git commit SHA of libhomegear-base: -
07/11/17 12:04:47.947 Git branch of libhomegear-base:     -
07/11/17 12:04:47.948 Git commit SHA of Homegear:         -
07/11/17 12:04:47.949 Git branch of Homegear:             -
07/11/17 12:04:47.953 Info: Setting allowed core file size to "4294967295" for user with id 0 and group with id 0.
07/11/17 12:04:47.955 Info: Core file size now is "4294967295".
07/11/17 12:04:47.956 Info: Setting maximum thread priority to "4294967295" for user with id 0 and group with id 0.
07/11/17 12:04:47.957 Info: Maximum thread priority now is "4294967295".
07/11/17 12:04:48.251 Info: Backing up database...
07/11/17 12:04:49.233 Initializing database...
07/11/17 12:04:49.256 Info: Loading family module mod_homematicbidcos.so
07/11/17 12:04:49.335 /etc/homegear/families/homematicbidcos.conf
07/11/17 12:04:49.341 Info: Loading family module mod_miscellaneous.so
07/11/17 12:04:49.358 /etc/homegear/families/miscellaneous.conf
07/11/17 12:04:49.361 Info: Loading family module mod_homematicwired.so
07/11/17 12:04:49.396 /etc/homegear/families/homematicwired.conf
07/11/17 12:04:49.399 Info: Setting up physical interfaces and GPIOs...
07/11/17 12:04:49.410 Info: Dropping privileges to user homegear (110) and group homegear (116)
07/11/17 12:04:49.433 Info: Homegear is (now) running as user with id 110 and group with id 116.
07/11/17 12:04:49.447 Starting script engine server...
07/11/17 12:04:49.462 Initializing licensing controller...
07/11/17 12:04:49.464 Loading licensing controller data...
07/11/17 12:04:49.465 Loading devices...
07/11/17 12:04:49.466 Loading XML RPC devices...
07/11/17 12:04:55.916 Loading device 2
07/11/17 12:04:55.918 Module HomeMatic BidCoS: Info: Central address set to 0xFDFFA1.
07/11/17 12:04:55.925 Module HomeMatic BidCoS: Loading peer 1
07/11/17 12:04:55.962 Module HomeMatic BidCoS: Loading peer 2
07/11/17 12:04:55.990 Module HomeMatic BidCoS: Loading peer 3
07/11/17 12:04:56.159 Module HomeMatic BidCoS: Loading peer 4
07/11/17 12:04:56.309 Module HomeMatic BidCoS: Loading peer 5
07/11/17 12:04:56.410 Module HomeMatic BidCoS: Loading peer 6
07/11/17 12:04:56.569 Module HomeMatic BidCoS: Loading peer 8
07/11/17 12:04:56.628 Module HomeMatic BidCoS: Loading peer 9
07/11/17 12:04:56.689 Module HomeMatic BidCoS: Loading peer 10
07/11/17 12:04:56.851 Module HomeMatic BidCoS: Loading peer 11
07/11/17 12:04:56.911 Module HomeMatic BidCoS: Loading peer 12
07/11/17 12:04:57.078 Module HomeMatic BidCoS: Loading peer 13
07/11/17 12:04:57.241 Module HomeMatic BidCoS: Loading peer 14
07/11/17 12:04:57.405 Module HomeMatic BidCoS: Loading peer 15
07/11/17 12:04:57.516 Module HomeMatic BidCoS: Loading peer 16
07/11/17 12:04:57.565 Module HomeMatic BidCoS: Loading peer 17
07/11/17 12:04:57.736 Module HomeMatic BidCoS: Loading peer 19
07/11/17 12:04:57.803 Module HomeMatic BidCoS: Loading peer 20
07/11/17 12:04:57.866 Module HomeMatic BidCoS: Loading peer 21
07/11/17 12:04:57.897 Module HomeMatic BidCoS: Loading peer 22
07/11/17 12:04:57.960 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
07/11/17 12:04:57.963 Info: Disposing family module mod_homematicwired.so
07/11/17 12:04:57.966 Loading XML RPC devices...
07/11/17 12:04:57.978 Loading device 1
07/11/17 12:04:57.981 Initializing RPC client...
07/11/17 12:04:57.982 Starting XML RPC server RPCServer1 listening on :::2001...
07/11/17 12:04:57.998 Starting XML RPC server RPCServer2 listening on :::2002, SSL enabled...
07/11/17 12:04:58.007 RPC Server (Port 2001): Info: RPC Server started listening on address :: and port 2001
07/11/17 12:04:58.124 Starting XML RPC server RPCServer3 listening on :::2003, SSL enabled, authentication enabled...
07/11/17 12:04:58.130 RPC Server (Port 2002): Info: RPC Server started listening on address :: and port 2002
07/11/17 12:04:58.222 Starting CLI server...
07/11/17 12:04:58.224 Initializing event handler...
07/11/17 12:04:58.227 Loading events...
07/11/17 12:04:58.231 Starting flows server...
07/11/17 12:04:58.233 RPC Server (Port 2003): Info: RPC Server started listening on address :: and port 2003
07/11/17 12:04:58.245 Starting IPC server...
07/11/17 12:04:58.262 Start listening for packets...
07/11/17 12:04:58.665 Module HomeMatic BidCoS: COC "My-COC": Error in file PhysicalInterfaces/COC.cpp line 225 in function virtual void BidCoS::COC::startListening(): Couldn't open device "/dev/ttyAMA0": Connection timed out
07/11/17 12:04:58.667 Critical: At least one of the physical devices could not be opened... Exiting...
07/11/17 12:05:00.279 Closing database...
07/11/17 12:05:00.455 Info: Disposing family module mod_miscellaneous.so
07/11/17 12:05:00.457 Info: Disposing family module mod_homematicbidcos.so
07/11/17 12:05:01.238 RPC Server (Port 2003): Info: Waiting for threads to finish.
07/11/17 12:05:01.338 RPC Server (Port 2002): Info: Waiting for threads to finish.
07/11/17 12:05:01.438 RPC Server (Port 2001): Info: Waiting for threads to finish.

Hallo @heiko,

ganz merkwürdig. Da schlägt der Befehl “open” fehl (https://linux.die.net/man/2/open). Wir bekommen keinen Deskriptor für das Gerät mit dem Fehler “ETIMEDOUT”. Nur dürfte “open” diesen Fehler nach Dokumentation gar nicht produzieren… Das Problem liegt vermutlich nicht in Homegear. Hast du den Fehler mal gegoogled?

Viele Grüße

Sathya