Homegear failed to start

Moin,

habe gestern angefangen und openHab auf einen rpi3 installiert. Jetzt wollte ich einen nanoCUL in Betrieb nehmen und bin über diesen Blog gestolpert >> CUL an Homematic über Homegear auf dem Raspberry Pi unter Debian – Jessie.

Soweit so gut, flashen musste ich ja nicht mehr (V1.66) und die Installation von HG war soweit unauffällig. Dann kam hier aber die Konfiguration der Datei "physicalinterfaces.conf " welche bei mir nicht vorhanden war. Ich habe dann in der “homematicbidcos.conf” konfiguriert:

centralAddress = 0xFD99AB
rfKey = 1b61906f87434c6a0ebc63b0c84a73d8
currentRfKeyIndex = 1
processBroadcastWithAesEnabled = false

[CUL]
id = nanoCUL
default = true
deviceType = cul
device = /dev/ttyUSB0
responseDelay = 95

Mit “service homegear start” lässt sich HG auch starten und ein “service homegear status” zeigt zunächst:

  • homegear.service - Homegear
    Loaded: loaded (/lib/systemd/system/homegear.service; enabled)
    Active: active (running) since Do 2016-10-13 11:26:36 CEST; 1s ago
    Process: 29299 ExecStartPre=/usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid -pre (code=exited, status=0/SUCCESS)
    Main PID: 29304 (homegear)
    CGroup: /system.slice/homegear.service
    |-29304 /usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid
    |-29306 sh -c /usr/bin/homegear -tc
    `-29307 /usr/bin/homegear -tc

Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: port of server RPCServer3 set to 2003
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: xmlrpcServer of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: jsonrpcServer of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: webServer of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: contentPath of RPC server RPCServer3 set to /var/lib/homegear/www/rpc/
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: webSocket of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: ssl of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: authType of server RPCServer3 set to 1
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: websocketauthtype of server RPCServer3 set to 2
Okt 13 11:26:36 raspberrypi homegear[29299]: 10/13/16 11:26:36.810 Debug: diffieHellmanKeySize of server RPCServer3 set to 1024

alles jut? - nö, ein weiteres status zeigt:

  • homegear.service - Homegear
    Loaded: loaded (/lib/systemd/system/homegear.service; enabled)
    Active: failed (Result: start-limit) since Do 2016-10-13 11:26:43 CEST; 18s ago
    Process: 30088 ExecStart=/usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid (code=killed, signal=ABRT)
    Process: 30084 ExecStartPre=/usr/bin/homegear -u homegear -g homegear -p /var/run/homegear/homegear.pid -pre (code=exited, status=0/SUCCESS)
    Main PID: 30088 (code=killed, signal=ABRT)

Okt 13 11:26:43 raspberrypi systemd[1]: Unit homegear.service entered failed state.
Okt 13 11:26:43 raspberrypi systemd[1]: homegear.service holdoff time over, scheduling restart.
Okt 13 11:26:43 raspberrypi systemd[1]: Stopping Homegear…
Okt 13 11:26:43 raspberrypi systemd[1]: Starting Homegear…
Okt 13 11:26:43 raspberrypi systemd[1]: homegear.service start request repeated too quickly, refusing to start.
Okt 13 11:26:43 raspberrypi systemd[1]: Failed to start Homegear.
Okt 13 11:26:43 raspberrypi systemd[1]: Unit homegear.service entered failed state.

Im errorlog wiederholen sich diese Meldungen:

Stack trace:
[__GI_raise] (2641)
nptl/sysdeps/unix/sysv/linux/raise.c:56 (2641)
^@pure virtual method called
terminate called without an active exception
Aborted (thread 1971647392, pid 2902)
Stack trace:
[__GI_raise] (2902)
nptl/sysdeps/unix/sysv/linux/raise.c:56 (2902)
^@pure virtual method called

Im log kommt dies:

10/13/16 11:26:36.274 Starting Homegear…
10/13/16 11:26:36.274 Homegear version 0.6.7-1480
10/13/16 11:26:36.274 Git commit SHA of libhomegear-base: -
10/13/16 11:26:36.274 Git branch of libhomegear-base: -
10/13/16 11:26:36.274 Git commit SHA of Homegear: -
10/13/16 11:26:36.274 Git branch of Homegear: -
10/13/16 11:26:36.275 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:36.275 Info: Core file size now is “4294967295”.
10/13/16 11:26:36.275 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:36.276 Info: Maximum thread priority now is “4294967295”.
10/13/16 11:26:38.098 Starting Homegear…
10/13/16 11:26:38.098 Homegear version 0.6.7-1480
10/13/16 11:26:38.098 Git commit SHA of libhomegear-base: -
10/13/16 11:26:38.098 Git branch of libhomegear-base: -
10/13/16 11:26:38.098 Git commit SHA of Homegear: -
10/13/16 11:26:38.099 Git branch of Homegear: -
10/13/16 11:26:38.100 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:38.100 Info: Core file size now is “4294967295”.
10/13/16 11:26:38.100 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:38.100 Info: Maximum thread priority now is “4294967295”.
10/13/16 11:26:38.322 Info: Backing up database…
10/13/16 11:26:38.323 Info: Process with id 29560 ended.
10/13/16 11:26:39.976 Starting Homegear…
10/13/16 11:26:39.976 Homegear version 0.6.7-1480
10/13/16 11:26:39.976 Git commit SHA of libhomegear-base: -
10/13/16 11:26:39.976 Git branch of libhomegear-base: -
10/13/16 11:26:39.976 Git commit SHA of Homegear: -
10/13/16 11:26:39.976 Git branch of Homegear: -
10/13/16 11:26:39.977 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:39.977 Info: Core file size now is “4294967295”.
10/13/16 11:26:39.977 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:39.978 Info: Maximum thread priority now is “4294967295”.
10/13/16 11:26:41.837 Starting Homegear…
10/13/16 11:26:41.837 Homegear version 0.6.7-1480
10/13/16 11:26:41.837 Git commit SHA of libhomegear-base: -
10/13/16 11:26:41.837 Git branch of libhomegear-base: -
10/13/16 11:26:41.837 Git commit SHA of Homegear: -
10/13/16 11:26:41.837 Git branch of Homegear: -
10/13/16 11:26:41.838 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:41.838 Info: Core file size now is “4294967295”.
10/13/16 11:26:41.839 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:41.839 Info: Maximum thread priority now is “4294967295”.
10/13/16 11:26:42.051 Info: Backing up database…
10/13/16 11:26:43.486 Starting Homegear…
10/13/16 11:26:43.486 Homegear version 0.6.7-1480
10/13/16 11:26:43.486 Git commit SHA of libhomegear-base: -
10/13/16 11:26:43.486 Git branch of libhomegear-base: -
10/13/16 11:26:43.486 Git commit SHA of Homegear: -
10/13/16 11:26:43.486 Git branch of Homegear: -
10/13/16 11:26:43.488 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:43.488 Info: Core file size now is “4294967295”.
10/13/16 11:26:43.488 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
10/13/16 11:26:43.488 Info: Maximum thread priority now is “4294967295”.

Kann mich mal jemand orientieren … was mache ich falsch?

Hier noch ein Homegear -r:

10/13/16 15:13:36.839 Debug: debugLevel set to 5
10/13/16 15:13:36.840 Debug: memoryDebugging set to 1
10/13/16 15:13:36.840 Debug: devLog set to 0
10/13/16 15:13:36.840 Debug: enableCoreDumps set to 1
10/13/16 15:13:36.840 Debug: workingDirectory set to /var/lib/homegear/
10/13/16 15:13:36.840 Debug: socketPath set to /var/run/homegear/
10/13/16 15:13:36.840 Debug: dataPath set to /var/lib/homegear/
10/13/16 15:13:36.841 Debug: databaseMemoryJournal set to 0
10/13/16 15:13:36.841 Debug: databaseWALJournal set to 1
10/13/16 15:13:36.841 Debug: databaseSynchronous set to 1
10/13/16 15:13:36.841 Debug: databaseMaxBackups set to 10
10/13/16 15:13:36.841 Debug: logfilePath set to /var/log/homegear/
10/13/16 15:13:36.841 Debug: enableUPnP set to 1
10/13/16 15:13:36.841 Debug: certPath set to /etc/homegear/homegear.crt
10/13/16 15:13:36.841 Debug: keyPath set to /etc/homegear/homegear.key
10/13/16 15:13:36.841 Debug: loadDHParamsFromFile set to 1
10/13/16 15:13:36.842 Debug: dhParamPath set to /etc/homegear/dh1024.pem
10/13/16 15:13:36.842 Debug: deviceDescriptionPath set to /etc/homegear/devices/
10/13/16 15:13:36.842 Debug: clientSettingsPath set to /etc/homegear/rpcclients.conf
10/13/16 15:13:36.842 Debug: serverSettingsPath set to /etc/homegear/rpcservers.conf
10/13/16 15:13:36.842 Debug: mqttSettingsPath set to /etc/homegear/mqtt.conf
10/13/16 15:13:36.842 Debug: familyConfigPath set to /etc/homegear/families/
10/13/16 15:13:36.842 Debug: phpIniPath set to /etc/homegear/php.ini
10/13/16 15:13:36.842 Debug: gpioPath set to /sys/class/gpio/
10/13/16 15:13:36.843 Debug: scriptPath set to /var/lib/homegear/scripts/
10/13/16 15:13:36.843 Debug: libraryPath set to /var/lib/homegear/modules/
10/13/16 15:13:36.843 Debug: firmwarePath set to /usr/share/homegear/firmware/
10/13/16 15:13:36.843 Debug: tempPath set to /var/lib/homegear/tmp/
10/13/16 15:13:36.843 Debug: Added replaceClientServerAddress xmlrpc_bin://127.0.0.1:1999 xmlrpc_bin://$remoteip:1999
10/13/16 15:13:36.844 Debug: Added replaceClientServerAddress http://127.0.0.1:9292/bidcos http://:9292$remoteip/bidcos
10/13/16 15:13:36.844 Debug: prioritizeThreads set to 1
10/13/16 15:13:36.844 Debug: workerThreadWindow set to 3000
10/13/16 15:13:36.844 Debug: scriptEngineMaxThreadsPerScript set to 4
10/13/16 15:13:36.844 Debug: scriptEngineMaxScriptsPerProcess set to 50
10/13/16 15:13:36.844 Debug: scriptEngineThreadCount set to 10
10/13/16 15:13:36.844 Debug: scriptEngineServerMaxConnections set to 10
10/13/16 15:13:36.844 Debug: cliServerMaxConnections set to 50
10/13/16 15:13:36.844 Debug: rpcServerMaxConnections set to 50
10/13/16 15:13:36.845 Debug: rpcServerThreadPriority set to 0
10/13/16 15:13:36.845 Debug: rpcServerThreadPolicy set to 0
10/13/16 15:13:36.845 Debug: rpcClientMaxThreads set to 50
10/13/16 15:13:36.845 Debug: rpcClientThreadPriority set to 0
10/13/16 15:13:36.845 Debug: rpcClientThreadPolicy set to 0
10/13/16 15:13:36.845 Debug: workerThreadPriority set to 0
10/13/16 15:13:36.845 Debug: workerThreadPolicy set to 0
10/13/16 15:13:36.845 Debug: physicalInterfaceThreadPriority set to 45
10/13/16 15:13:36.846 Debug: physicalInterfaceThreadPolicy set to 1
10/13/16 15:13:36.846 Debug: packetReceivedThreadPriority set to 0
10/13/16 15:13:36.846 Debug: packetReceivedThreadPolicy set to 0
10/13/16 15:13:36.846 Debug: eventThreadCount set to 5
10/13/16 15:13:36.846 Debug: eventThreadPriority set to 0
10/13/16 15:13:36.846 Debug: eventThreadPolicy set to 0
Debug: Trying to connect…
10/13/16 15:13:36.847 Debug: Socket closed. Trying again…
10/13/16 15:13:38.848 Could not connect to socket. Error: No such file or directory
10/13/16 15:13:38.848 Could not connect to socket. Error: No such file or directory

… jemand 'ne Idee?

Hallo @gerrit,

hast du möglicherweise versehentlich die Version für Debian Jessie installiert? Im Blogpost wird nämlich fälschlicherweise das Debian-Jessie-Repository hinzugefügt. Damit kann es nicht funktionieren. Überprüf noch einmal, ob du wirklich die Raspbian-Jessie-Pakete installiert hast. Am besten folgst du der Anleitung auf doc.homegear.eu.

Viele Grüße

Sathya

1 Like

shame on me… debian. Ich habe es glatt überlesen.
LG
Gerrit