kein Login per Homebridge auf Pi

  • Danke für die Rückmeldung und Anleitung.

    Hier die entsprechenden Ausgaben.


    [email protected]:~ $ nc -zv localhost 8080

    nc: connect to localhost port 8080 (tcp) failed: Connection refused

    nc: connect to localhost port 8080 (tcp) failed: Connection refused

    [email protected]:~ $ ps aux | grep homebridge

    pi 21965 0.0 0.0 4372 580 pts/0 S+ 12:46 0:00 grep --color=auto homebridge

    homebri+ 27162 0.3 5.4 144088 51440 ? Ssl Nov18 12:53 homebridge

    [email protected]:~ $ sudo netstat -tulpen

    Active Internet connections (only servers)

    Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name

    tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 999 188092 31016/pihole-FTL

    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 13334 537/lighttpd

    tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 999 189264 31016/pihole-FTL

    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 10166 523/sshd

    tcp6 0 0 ::1:4711 :::* LISTEN 999 188094 31016/pihole-FTL

    tcp6 0 0 :::80 :::* LISTEN 0 13335 537/lighttpd

    tcp6 0 0 :::51826 :::* LISTEN 1001 176047 27162/homebridge

    tcp6 0 0 :::53 :::* LISTEN 999 189266 31016/pihole-FTL

    tcp6 0 0 :::22 :::* LISTEN 0 10168 523/sshd

    udp 0 0 0.0.0.0:53 0.0.0.0:* 999 189263 31016/pihole-FTL

    udp 0 0 0.0.0.0:68 0.0.0.0:* 0 11936 370/dhcpcd

    udp 0 0 0.0.0.0:5353 0.0.0.0:* 1001 176048 27162/homebridge

    udp 896 0 0.0.0.0:5353 0.0.0.0:* 108 9961 319/avahi-daemon: r

    udp 0 0 0.0.0.0:42260 0.0.0.0:* 108 9963 319/avahi-daemon: r

    udp6 0 0 :::54262 :::* 108 9964 319/avahi-daemon: r

    udp6 0 0 :::546 :::* 0 11970 370/dhcpcd

    udp6 0 0 :::53 :::* 999 189265 31016/pihole-FTL

    udp6 1498 0 :::5353 :::* 108 9962 319/avahi-daemon: r

    [email protected]:~ $ sudo systemctl restart homebridge; sudo journalctl -fau homebridge

    -- Logs begin at Thu 2016-11-03 17:16:43 GMT. --

    Nov 18 19:57:54 raspberrypi homebridge[27162]: └────────────┘

    Nov 18 19:57:54 raspberrypi homebridge[27162]:

    Nov 18 19:57:54 raspberrypi homebridge[27162]: [11/18/2018, 7:57:54 PM] Homebridge is running on port 51826.

    Nov 21 12:48:39 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...

    Nov 21 12:48:39 raspberrypi homebridge[27162]: [11/21/2018, 12:48:39 PM] Got SIGTERM, shutting down Homebridge...

    Nov 21 12:48:44 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Nov 21 12:48:44 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Nov 21 12:48:44 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Nov 21 12:48:44 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Nov 21 12:48:44 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loaded config.json with 0 accessories and 1 platforms.

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] ---

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loaded plugin: homebridge-config-ui-x

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Registering platform 'homebridge-config-ui-x.config'

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] ---

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loading 1 platforms...

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] [Config] Initializing config platform...

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] [Config] Spawning homebridge-config-ui-x with PID 22012

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loading 0 accessories...

    Nov 21 12:48:46 raspberrypi homebridge[21983]: Setup Payload:

    Nov 21 12:48:46 raspberrypi homebridge[21983]: X-HM://0023ISYWY8KP4

    Nov 21 12:48:46 raspberrypi homebridge[21983]: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]: ┌────────────┐

    Nov 21 12:48:46 raspberrypi homebridge[21983]: │ 031-45-154 │

    Nov 21 12:48:46 raspberrypi homebridge[21983]: └────────────┘

    Nov 21 12:48:46 raspberrypi homebridge[21983]:

    Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Homebridge is running on port 51826.

    Nov 21 12:48:47 raspberrypi homebridge[21983]: [11/21/2018, 12:48:47 PM] [Config] Added new user: admin

    Nov 21 12:48:49 raspberrypi homebridge[21983]: [11/21/2018, 12:48:49 PM] [Config] Using Form Authentication

    Nov 21 12:48:49 raspberrypi homebridge[21983]: [11/21/2018, 12:48:49 PM] [Config] Console v3.9.0 is listening on port 8080.


    :/

  • ...als ich jetzt das aufrufen der Seite nochmals versucht habe, hat es plötzlich funktioniert?!

    Also jetzt erscheint die Login Seite an der ich mich anmelden kann...

    Wie kommt das denn und was haben die Eingaben bewirkt.

  • Die Eingaben haben gar nichts bewirkt. Sie haben nur einen Status angezeigt.


    nc -zv localhost 8080 versucht sich auf Port 8080 zu connecten und scheitert. So wie du es beschrieben hast, als du es mit dem Browser versucht hast.


    ps aux | grep homebridge zeigt genau das gleiche. Der Befehl zeigt die Prozessliste an, wobei er alle Ausgaben, in denen der Begriff homebridge nicht vorkommt, wegfiltert. Zu sehen sein müsste zusätzlich homebridge-config-ui-x.


    sudo netstat -tulpen sagt das auch. Dieser Befehl zeigt alle offenen Port an. Port 8080 fehlt.


    Eindeutig. Der Kram läuft nicht. Aber dann kommt das homebridge-Log. Und das sagt um 12:48:46 klar, das homebridge-config-ui-x geladen wird:

    Code
    1. Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loaded config.json with 0 accessories and 1 platforms.
    2. Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] ---
    3. Nov 21 12:48:46 raspberrypi homebridge[21983]: [11/21/2018, 12:48:46 PM] Loaded plugin: homebridge-config-ui-x

    Und es kommt noch besser - drei Sekunden später sagt das Log, das homebridge-config-ui-x läuft:

    Code
    1. Nov 21 12:48:49 raspberrypi homebridge[21983]: [11/21/2018, 12:48:49 PM] [Config] Console v3.9.0 is listening on port 8080.

    Die obigen drei Befehle müssten nun eine andere Ausgabe ergeben. Ich kann dir nicht sagen, warum das nicht ging und jetzt doch. Ich war's nicht!


    Könnte es sein, dass vielleicht homebridge-config-ui-x nach einer Weile aufhört zu funktionieren? Hoffentlich nicht, denn darauf hätte ich auch keine Antwort. Offenbar musste man nur mal dagegentreten.


    Stefan

  • Hallo, endlich habe ich einen Beitrag mit dem selben Problem gefunden. Einzige Unterschied ist bei mir nur, dass die Info

    [Config] Console v3.9.0 is listening on port 8080.

    im homebridge-Log zu finden ist. Ebenso fehlt bei sudo netstat -tulpen der port 8080 bei mir.

    Was kann ich dagegen tun?

  • Zusätzlich nochmal die Log:


    [email protected]:~ $ nc -zv localhost 8080

    nc: connect to localhost port 8080 (tcp) failed: Connection refused

    nc: connect to localhost port 8080 (tcp) failed: Connection refused

    [email protected]:~ $ ps aux | grep homebridge

    homebri+ 27553 0.0 2.9 85072 27820 ? Rsl 16:52 0:00 homebridge

    pi 27561 0.0 0.0 4372 544 pts/1 R+ 16:52 0:00 grep --color=auto homebridge

    [email protected]:~ $ sudo netstat -tulpen

    Active Internet connections (only servers)

    Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name

    tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1000 129884 16865/Xtightvnc

    tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1000 129882 16865/Xtightvnc

    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 78086 23580/sshd

    tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 1000 131981 18516/node-red

    tcp6 0 0 :::22 :::* LISTEN 0 78088 23580/sshd

    udp 0 0 0.0.0.0:68 0.0.0.0:* 0 12676 341/dhcpcd

    udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 9561 290/avahi-daemon: r

    udp 0 0 0.0.0.0:46882 0.0.0.0:* 108 9563 290/avahi-daemon: r

    udp6 0 0 :::42455 :::* 108 9564 290/avahi-daemon: r

    udp6 0 0 :::546 :::* 0 13392 341/dhcpcd

    udp6 0 0 :::5353 :::* 108 9562 290/avahi-daemon: r

    [email protected]:~ $ sudo systemctl restart homebridge; sudo journalctl -fau homebridge

    -- Logs begin at Mon 2019-02-25 12:54:43 CET. --

    Feb 25 16:52:46 raspberrypi homebridge[27660]: at tryModuleLoad (internal/modules/cjs/loader.js:566:12)

    Feb 25 16:52:46 raspberrypi homebridge[27660]: at Function.Module._load (internal/modules/cjs/loader.js:558:3)

    Feb 25 16:52:46 raspberrypi homebridge[27660]: at Function.Module.runMain (internal/modules/cjs/loader.js:797:12)

    Feb 25 16:52:46 raspberrypi homebridge[27660]: at executeUserCode (internal/bootstrap/node.js:526:15)

    Feb 25 16:52:46 raspberrypi homebridge[27660]: at startMainThreadExecution (internal/bootstrap/node.js:439:3)

    Feb 25 16:52:46 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Feb 25 16:52:46 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Feb 25 16:52:46 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Feb 25 16:52:48 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Feb 25 16:52:48 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded config.json with 2 accessories and 2 platforms.

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded plugin: homebridge-config-ui-x

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Registering platform 'homebridge-config-ui-x.config'

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded plugin: homebridge-homematic

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Registering platform 'homebridge-homematic.HomeMatic'

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded plugin: homebridge-iobroker

    Feb 25 16:52:50 raspberrypi homebridge[27698]: homebridge API version: 2.3

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Registering platform 'homebridge-iobroker.iobroker'

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded plugin: homebridge-magichome

    Feb 25 16:52:50 raspberrypi homebridge[27698]: homebridge API version: 2.3

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Registering accessory 'homebridge-magichome.MagicHome'

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Loaded plugin: homebridge-milight

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] Registering platform 'homebridge-milight.MiLight'

    Feb 25 16:52:50 raspberrypi homebridge[27698]: [2/25/2019, 4:52:50 PM] ---

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] Loaded plugin: homebridge-some-smartshades

    Feb 25 16:52:51 raspberrypi homebridge[27698]: homebridge API version: 2.3

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] Registering accessory 'homebridge-soma-smartshades.SmartShades'

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] ---

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] Loading 2 platforms...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [Config] Initializing config platform...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [Config] Spawning homebridge-config-ui-x with PID 27750

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] Initializing HomeMatic platform...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] Homematic Plugin Version 0.1.1

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] Plugin by thkl https://github.com/thkl

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] running in production mode

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] will connect to your ccu at 192.168.0.213

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] using xmprpc for communication with BidCos-RF

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] init RPC for BidCos-RF.

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] local ip used : 192.168.0.67. you may change that with local_ip parameter in config

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] init RPC for VirtualDevices.

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [HomeMatic CCU] local ip used : 192.168.0.67. you may change that with local_ip parameter in config

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] Loading 2 accessories...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [Spiegel LED] Initializing MagicHome accessory...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [LED] Initializing MagicHome accessory...

    Feb 25 16:52:51 raspberrypi homebridge[27698]: Load homebridge-iobroker.iobroker

    Feb 25 16:52:51 raspberrypi homebridge[27698]: [2/25/2019, 4:52:51 PM] [homebridge-iobroker.iobroker] iobroker Init

    Feb 25 16:52:51 raspberrypi homebridge[27698]: /usr/local/lib/node_modules/homebridge-iobroker/index.js:29

    Feb 25 16:52:51 raspberrypi homebridge[27698]: this.host = config.host;

    Feb 25 16:52:51 raspberrypi homebridge[27698]: ^

    Feb 25 16:52:51 raspberrypi homebridge[27698]: TypeError: Cannot read property 'host' of null

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at new iobroker (/usr/local/lib/node_modules/homebridge-iobroker/index.js:29:22)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Server._loadDynamicPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:347:30)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:88:8)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Module._compile (internal/modules/cjs/loader.js:734:30)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:745:10)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Module.load (internal/modules/cjs/loader.js:626:32)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at tryModuleLoad (internal/modules/cjs/loader.js:566:12)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Function.Module._load (internal/modules/cjs/loader.js:558:3)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at Function.Module.runMain (internal/modules/cjs/loader.js:797:12)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at executeUserCode (internal/bootstrap/node.js:526:15)

    Feb 25 16:52:51 raspberrypi homebridge[27698]: at startMainThreadExecution (internal/bootstrap/node.js:439:3)

  • Und schon erledigt. Homebridge startet nicht. Ich habe keine Ahnung von iobroker, dem zugehörigen Plugin oder was du da treiben willst, aber offenbar fehlt in config.json die Konfiguration von host. Behauptet zumindest die Fehlermeldung.


    Stefan