Ankündigung

Einklappen
Keine Ankündigung bisher.

Homebridge kann nicht beendet werden

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Homebridge kann nicht beendet werden

    Ich bin jetzt seit zwei Tagen damit beschäftigt mit die Homebridge auf ner Linux VM zu installieren, um meine Geräte per Siri steuern zu können.
    Dabei komme ich eigentlich auch Schritt für Schritt voran. Einen Punkt verstehe ich allerdings nicht.
    die Homebridge läuft anscheinend irgendwie immer.
    Ich versuche sie mit diesem Befehl zu beenden:

    sudo systemctl stop homebridge

    Sieht dann eigentlich auch beendet aus:
    Code:
    root@debian:/# sudo systemctl status homebridge
    ● homebridge.service - Node.js HomeKit Server
       Loaded: loaded (/etc/systemd/system/homebridge.service; disabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Fri 2019-12-27 15:56:07 CET; 3s ago
      Process: 1230 ExecStart=/usr/lib/node_modules/homebridge/bin/homebridge $HOMEBRIDGE_OPTS (code=exited, status=143)
     Main PID: 1230 (code=exited, status=143)
    
    Dez 27 15:51:07 debian homebridge[1230]: [27.12.2019, 15:51:07] [homebridge-knx.KNX] Done with [Wohnzimmer Lampe] accessory
    Dez 27 15:51:07 debian homebridge[1230]: [27.12.2019, 15:51:07] [homebridge-knx.KNX] We have read 1 devices from file.
    Dez 27 15:51:07 debian homebridge[1230]: [27.12.2019, 15:51:07] [homebridge-knx.KNX] Saving config file!
    Dez 27 15:51:07 debian homebridge[1230]: ---
    Dez 27 15:51:07 debian homebridge[1230]: [27.12.2019, 15:51:07] Homebridge is running on port 51826.
    Dez 27 15:56:02 debian systemd[1]: Stopping Node.js HomeKit Server...
    Dez 27 15:56:02 debian homebridge[1230]: [27.12.2019, 15:56:02] Got SIGTERM, shutting down Homebridge...
    Dez 27 15:56:07 debian systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a
    Dez 27 15:56:07 debian systemd[1]: homebridge.service: Failed with result 'exit-code'.
    Dez 27 15:56:07 debian systemd[1]: Stopped Node.js HomeKit Server.
    root@debian:/#
    Der Befehl
    root@debian:/# DEBUG=* homebridge -D
    sagt mir dann aber, dass die Homebridge läuft:
    Code:
    root@debian:/# DEBUG=* homebridge -D
    ....
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] homebridge event didFinishLaunching
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Configuration starts
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] We think homebridge has restored 1 accessories.
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Reading from config: Device/Accessory 1 of 1
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Match device [Wohnzimmer Lampe]
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] --compare----------------
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Comparing f5a22efc-6ac6-4bf4-acd9-60526ffc3051 === f5a22efc-6ac6-4bf4-acd9-60526ffc3051 ==>true
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] ---------------done---
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Matched an accessory: Wohnzimmer Lampe === Wohnzimmer Lampe
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Reused platformAccessory instance: Wohnzimmer Lampe
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Preparing Services: 1
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Preparing Service: #0 with name [Wohnzimmerlampe] of ServiceType [Lightbulb]
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Service constructor called
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] ServiceType defined
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] ServiceType known as function
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Found restored service: Wohnzimmerlampe
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Preparing Characteristics: 1
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] On
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Adding characteristic...
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] CharacteristicKNX.Constructor
    ---iterating--------------------
    Type: On
    Set.0: 1/1/90
    Listen.0: 1/4/90
    ================================
    INFO registerSingleGA 1/4/90
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] KNX Service created
      Accessory Reachability update is no longer being supported. +0ms
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Done with [Wohnzimmer Lampe] accessory
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] We have read 1 devices from file.
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] Saving config file!
    ---
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] BEFORE http.createServer
    [27.12.2019, 15:57:18] [homebridge-knx.KNX] BEFORE requestServer.listen
      EventedHTTPServer Server listening on port 51826 +4ms
    [27.12.2019, 15:57:18] Homebridge is running on port 51826.
    Wenn ich dann einen start oder restart der Homebridge mache, läuft sie anscheinend zweimal und ich sehe das:
    Code:
    root@debian:/# sudo systemctl status homebridge
    ● homebridge.service - Node.js HomeKit Server
       Loaded: loaded (/etc/systemd/system/homebridge.service; disabled; vendor preset: enabled)
       Active: active (running) since Fri 2019-12-27 16:00:18 CET; 9s ago
     Main PID: 1320 (homebridge)
        Tasks: 11 (limit: 4689)
       Memory: 18.9M
       CGroup: /system.slice/homebridge.service
               └─1320 homebridge
    
    Dez 27 16:00:18 debian homebridge[1320]: Type: On
    Dez 27 16:00:18 debian homebridge[1320]: Set.0: 1/1/90
    Dez 27 16:00:18 debian homebridge[1320]: Listen.0: 1/4/90
    Dez 27 16:00:18 debian homebridge[1320]: ================================
    Dez 27 16:00:18 debian homebridge[1320]: INFO registerSingleGA 1/4/90
    Dez 27 16:00:18 debian homebridge[1320]: [27.12.2019, 16:00:18] [homebridge-knx.KNX] Done with [Wohnzimmer Lampe] accessory
    Dez 27 16:00:18 debian homebridge[1320]: [27.12.2019, 16:00:18] [homebridge-knx.KNX] We have read 1 devices from file.
    Dez 27 16:00:18 debian homebridge[1320]: [27.12.2019, 16:00:18] [homebridge-knx.KNX] Saving config file!
    Dez 27 16:00:18 debian homebridge[1320]: ---
    Dez 27 16:00:18 debian homebridge[1320]: [27.12.2019, 16:00:18] Homebridge is running on port 51826.
    root@debian:/#
    Code:
    root@debian:/# DEBUG=* homebridge -D
    ...
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] homebridge event didFinishLaunching
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Configuration starts
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] We think homebridge has restored 1 accessories.
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Reading from config: Device/Accessory 1 of 1
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Match device [Wohnzimmer Lampe]
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] --compare----------------
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Comparing f5a22efc-6ac6-4bf4-acd9-60526ffc3051 === f5a22efc-6ac6-4bf4-acd9-60526ffc3051 ==>true
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] ---------------done---
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Matched an accessory: Wohnzimmer Lampe === Wohnzimmer Lampe
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Reused platformAccessory instance: Wohnzimmer Lampe
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Preparing Services: 1
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Preparing Service: #0 with name [Wohnzimmerlampe] of ServiceType [Lightbulb]
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Service constructor called
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] ServiceType defined
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] ServiceType known as function
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Found restored service: Wohnzimmerlampe
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Preparing Characteristics: 1
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] On
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Adding characteristic...
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] CharacteristicKNX.Constructor
    ---iterating--------------------
    Type: On
    Set.0: 1/1/90
    Listen.0: 1/4/90
    ================================
    INFO registerSingleGA 1/4/90
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] KNX Service created
      Accessory Reachability update is no longer being supported. +0ms
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Done with [Wohnzimmer Lampe] accessory
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] We have read 1 devices from file.
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] Saving config file!
    ---
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] BEFORE http.createServer
    [27.12.2019, 16:01:01] [homebridge-knx.KNX] BEFORE requestServer.listen
    [27.12.2019, 16:01:01] Error: listen EADDRINUSE: address already in use :::51826
        at Server.setupListenHandle [as _listen2] (net.js:1308:16)
        at listenInCluster (net.js:1356:12)
        at Server.listen (net.js:1444:7)
        at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
        at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
        at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:616:16)
        at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:132:16)
        at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:101:10)
        at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
        at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    Hat jemand nen Tipp, was da nicht stimmt? Komme einfach nicht dahinter und mich schon durch Google gewühlt.

    Interessanterweise ist nach dem Stop kein Prozess mehr zu finden:
    Code:
    root@debian:/# sudo systemctl stop homebridge
    root@debian:/# ps -ef | grep homebridge
    root      1377   766  0 16:02 pts/0    00:00:00 grep homebridge
    root@debian:/#
    Mit DEBUG.... zeigt das System aber an, dass die Homebridge läuft.


    Installiert ist die Homebridge und das KNX Plugin.
    Zuletzt geändert von McEgg; 27.12.2019, 16:51.
    Ciao Jochen

    #2
    Hm ok. Gerade festgestellt, dass auch mit dem ERROR funktioniert die Homebridge und die erste Lampe geht an und aus.
    Dann macht der Fehler wohl nichts...
    Ciao Jochen

    Kommentar

    Lädt...
    X