det Ich würde doch nicht fragen wenn ich nicht einiges schon ausprobiert hätte. Homebridge lief gestern ja nach meiner Umstellung. Dann wollte ich Tado einrichten, da ich wieder nur eine Zone hatte. Danach lief Homebridge nicht mehr. Und mir ist unklar warum das so ist. Dann habe ich Tado komplett gelöscht, Plugin und Config aber Homebridge läuft trotzdem nicht. Damals konnte ich Homebridge manuell starten und habe sofort gesehen was das Problem war. Sorry das ich gefragt habe, es gab mal Zeiten da hat man hier Hilfe bekommen und wurde nicht gleich angemacht nur weil man nicht so ein Plan wie andere hat. Sorry das ich gefragt habe.
homebridge von init.d auf systemd umstellen
-
-
sudo journalctl -f -u homebridge
Zeigt das Log der Homebridge an, jedenfalls bei meiner Konfiguration.
es gab mal Zeiten da hat man hier Hilfe bekommen
Die wird es weiterhin geben und hast du auch bekommen.
Hier immer nur die Befehle zu wieder holen ist für keinen eine Hilfe, aber etwas selber nachlesen und nach zu machen, das festigt auch das gelesene.
Ich will hier keinen "anmozen", (auch ich war einmal ein nichtwissender) Du hast einen Link erhalten wo alles nachzu lesen ist.
Du hast nicht geschrieben das einer dieser Befehle nicht funktioniert oder das Du bei diesem Link etwas nicht verstehst.
Ich verstehe jetzt gar nichts mehr. Habe alles hier nach Anleitung durchgeführt. Als ich Homebridge nicht als Dienst laufen hatte, konnte ich Homebridge starten und sehen ob alle Plugins ohne Fehler gestartet werden konnten. Mir ist schon klar das wenn Homebridge als Dienst läuft die Homebridge automatisch startet, aber ich dachte ich kann sie mit den Befehlen stoppen und dann manuell starten und schauen ob alles Plugins Fehlerfrei geladen werden? Habe jetzt nämlich das Problem das Homebridge in HomeKit nicht läuft und ich kann nicht so wirklich sehen warum das so ist.
Ich habe es doch geschrieben.Wenn ich mich nicht richtig ausgedrückt habe, dann wäre eine Info für mich hilfreich damit ich es besser beschreiben kann.
Das ist doch auch verstanden wurden.
Die Antwort darauf ist vor und nach Deinem zitierten Post.
det Ich komm hier in dem Beitrag mal um die Ecke.
Deiner Anleitung oben bin ich gefolgt und das hat auch ohne irgend eine Fehlermeldung alles geklappt.
Allerdings bekomme ich jetzt Fehler im log und kann leider aufgrund meines noch sehr raren Wissens nichts damit anfangen. Die Eve/Home App zeigt, dass die Geräte nicht erreichbar sind.
Homebridge ist aber lt. Status running. Läuft wohl allerdings nicht durch aufgrund der Fehler die wohl im Log zu sehen sind
mit sudo journalctl -f -u homebridge Nur keine Ahnung was da noch nicht stimmt. Danke nochmal für die Hilfe.
Codepi@raspberrypi:~ $ sudo systemctl start homebridge pi@raspberrypi:~ $ sudo /etc/init.d/homebridge status Homebridge is running PID 5617
Code
Alles anzeigenpi@raspberrypi:~ $ sudo journalctl -f -u homebridge -- Logs begin at So 2017-05-28 12:27:44 CEST. -- Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] --- Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Loaded plugin: homebridge-broadlink-rm Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Registering platform 'homebridge-broadlink-rm.BroadlinkRM' Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] --- Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Loaded plugin: homebridge-cmdswitch2 Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Registering platform 'homebridge-cmdswitch2.cmdSwitch2' Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] --- Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Loaded plugin: homebridge-delay-switch Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] Registering accessory 'homebridge-delay-switch.DelaySwitch' Mai 28 12:33:35 raspberrypi homebridge[3137]: [2017-5-28 12:33:35] --- Mai 28 12:33:37 raspberrypi homebridge[3137]: [2017-5-28 12:33:37] Loaded plugin: homebridge-fritz Mai 28 12:33:37 raspberrypi homebridge[3137]: [2017-5-28 12:33:37] Registering platform 'homebridge-fritz.Fritz!Box' Mai 28 12:33:37 raspberrypi homebridge[3137]: [2017-5-28 12:33:37] --- Mai 28 12:33:39 raspberrypi homebridge[3137]: [2017-5-28 12:33:39] Loaded plugin: homebridge-harmonyhub Mai 28 12:33:39 raspberrypi homebridge[3137]: [2017-5-28 12:33:39] Registering platform 'homebridge-harmonyhub.HarmonyHub' Mai 28 12:33:39 raspberrypi homebridge[3137]: [2017-5-28 12:33:39] --- Mai 28 12:33:40 raspberrypi homebridge[3137]: [2017-5-28 12:33:40] Loaded plugin: homebridge-http Mai 28 12:33:40 raspberrypi homebridge[3137]: [2017-5-28 12:33:40] Registering accessory 'homebridge-http.Http' Mai 28 12:33:40 raspberrypi homebridge[3137]: [2017-5-28 12:33:40] --- Mai 28 12:33:41 raspberrypi homebridge[3137]: [2017-5-28 12:33:41] Loaded plugin: homebridge-hue Mai 28 12:33:41 raspberrypi homebridge[3137]: [2017-5-28 12:33:41] Registering platform 'homebridge-hue.Hue' Mai 28 12:33:41 raspberrypi homebridge[3137]: [2017-5-28 12:33:41] --- Mai 28 12:33:42 raspberrypi homebridge[3137]: [2017-5-28 12:33:42] Loaded plugin: homebridge-ifttt Mai 28 12:33:42 raspberrypi homebridge[3137]: [2017-5-28 12:33:42] Registering platform 'homebridge-ifttt.IFTTT' Mai 28 12:33:42 raspberrypi homebridge[3137]: [2017-5-28 12:33:42] --- Mai 28 12:33:43 raspberrypi homebridge[3137]: [2017-5-28 12:33:43] Loaded plugin: homebridge-nest Mai 28 12:33:43 raspberrypi homebridge[3137]: [2017-5-28 12:33:43] Registering platform 'homebridge-nest.Nest' Mai 28 12:33:43 raspberrypi homebridge[3137]: [2017-5-28 12:33:43] --- Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] Loaded plugin: homebridge-netatmo Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] Registering platform 'homebridge-netatmo.netatmo' Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] --- Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] Loaded plugin: homebridge-notification Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] Registering accessory 'homebridge-notifications.Notification' Mai 28 12:33:44 raspberrypi homebridge[3137]: [2017-5-28 12:33:44] --- Mai 28 12:33:45 raspberrypi homebridge[3137]: [2017-5-28 12:33:45] Loaded plugin: homebridge-people Mai 28 12:33:45 raspberrypi homebridge[3137]: [2017-5-28 12:33:45] Registering platform 'homebridge-people.People' Mai 28 12:33:45 raspberrypi homebridge[3137]: [2017-5-28 12:33:45] Registering accessory 'homebridge-people.PeopleAccessory' Mai 28 12:33:45 raspberrypi homebridge[3137]: [2017-5-28 12:33:45] Registering accessory 'homebridge-people.PeopleAllAccessory' Mai 28 12:33:45 raspberrypi homebridge[3137]: [2017-5-28 12:33:45] --- Mai 28 12:33:46 raspberrypi homebridge[3137]: [2017-5-28 12:33:46] Loaded plugin: homebridge-ssh Mai 28 12:33:46 raspberrypi homebridge[3137]: [2017-5-28 12:33:46] Registering accessory 'homebridge-ssh.SSH' Mai 28 12:33:46 raspberrypi homebridge[3137]: [2017-5-28 12:33:46] --- Mai 28 12:33:47 raspberrypi homebridge[3137]: [2017-5-28 12:33:47] Loaded plugin: homebridge-wemo Mai 28 12:33:47 raspberrypi homebridge[3137]: [2017-5-28 12:33:47] Registering accessory 'homebridge-wemo.WeMo' Mai 28 12:33:47 raspberrypi homebridge[3137]: [2017-5-28 12:33:47] --- Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Loaded plugin: homebridge-zway Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Registering accessory 'homebridge-zway.ZWayServer' Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Registering platform 'homebridge-zway.ZWayServer' Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] --- Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Loaded config.json with 16 accessories and 10 platforms. Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] --- Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Loading 10 platforms... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing People platform... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing platform accessory 'Daniels iPhone'... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing platform accessory 'Daniels Apple Watch'... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing platform accessory 'Davids MacBook'... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing platform accessory 'Davids iPhone'... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing platform accessory 'Anyone'... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] WebHook: Started server on port '51828'. Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] Initializing ZWayServer platform... Mai 28 12:33:48 raspberrypi homebridge[3137]: [2017-5-28 12:33:48] [Broadlink RM] Initializing BroadlinkRM platform... Mai 28 12:33:48 raspberrypi homebridge[3137]: /usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:90 Mai 28 12:33:48 raspberrypi homebridge[3137]: throw err0; Mai 28 12:33:48 raspberrypi homebridge[3137]: ^ Mai 28 12:33:48 raspberrypi homebridge[3137]: Error: EACCES: permission denied, mkdir '/home/homebridge' Mai 28 12:33:48 raspberrypi homebridge[3137]: at Object.fs.mkdirSync (fs.js:895:18) Mai 28 12:33:48 raspberrypi homebridge[3137]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:71:13) Mai 28 12:33:48 raspberrypi homebridge[3137]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:33:48 raspberrypi homebridge[3137]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Function.sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:33:48 raspberrypi homebridge[3137]: at LocalStorage.parseStorageDirSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:600:20) Mai 28 12:33:48 raspberrypi homebridge[3137]: at LocalStorage.initSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:141:14) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Object.nodePersist.initSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/node-persist.js:37:32) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Object.init (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/helpers/persistentState.js:10:15) Mai 28 12:33:48 raspberrypi homebridge[3137]: at BroadlinkRMPlatform.HomebridgePlatform (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/platform.js:14:21) Mai 28 12:33:48 raspberrypi homebridge[3137]: at BroadlinkRMPlatform (/usr/local/lib/node_modules/homebridge-broadlink-rm/index.js:11:1) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:294:32) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:36) Mai 28 12:33:48 raspberrypi homebridge[3137]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Module._compile (module.js:571:32) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Object.Module._extensions..js (module.js:580:10) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Module.load (module.js:488:32) Mai 28 12:33:48 raspberrypi homebridge[3137]: at tryModuleLoad (module.js:447:12) Mai 28 12:33:48 raspberrypi homebridge[3137]: at Function.Module._load (module.js:439:3) Mai 28 12:33:48 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE Mai 28 12:33:48 raspberrypi systemd[1]: Unit homebridge.service entered failed state. Mai 28 12:33:48 raspberrypi homebridge[3137]: at Module.runMain (module.js:605:10) Mai 28 12:33:48 raspberrypi homebridge[3137]: at run (bootstrap_node.js:427:7) Mai 28 12:33:48 raspberrypi homebridge[3137]: at startup (bootstrap_node.js:151:9) Mai 28 12:33:48 raspberrypi homebridge[3137]: at bootstrap_node.js:542:3 Mai 28 12:33:58 raspberrypi systemd[1]: homebridge.service holdoff time over, scheduling restart. Mai 28 12:33:59 raspberrypi systemd[1]: Stopping Node.js HomeKit Server... Mai 28 12:33:59 raspberrypi systemd[1]: Starting Node.js HomeKit Server... Mai 28 12:33:59 raspberrypi systemd[1]: Started Node.js HomeKit Server. Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node> Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:33:59 raspberrypi node[3269]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister> Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node> Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:33:59 raspberrypi homebridge[3269]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister> Mai 28 12:34:02 raspberrypi homebridge[3269]: ???????????????????????????????????????????????????????????????? Mai 28 12:34:02 raspberrypi homebridge[3269]: ? npm update check failed ? Mai 28 12:34:02 raspberrypi homebridge[3269]: ? Try running with sudo or get access ? Mai 28 12:34:02 raspberrypi homebridge[3269]: ? to the local update config store via ? Mai 28 12:34:02 raspberrypi homebridge[3269]: ? sudo chown -R $USER:$(id -gn $USER) /home/homebridge/.config ? Mai 28 12:34:02 raspberrypi homebridge[3269]: ???????????????????????????????????????????????????????????????? Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Loaded plugin: homebridge-beam Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Registering accessory 'homebridge-beam.Beam' Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] --- Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Loaded plugin: homebridge-broadlink-rm Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Registering platform 'homebridge-broadlink-rm.BroadlinkRM' Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] --- Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Loaded plugin: homebridge-cmdswitch2 Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Registering platform 'homebridge-cmdswitch2.cmdSwitch2' Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] --- Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Loaded plugin: homebridge-delay-switch Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] Registering accessory 'homebridge-delay-switch.DelaySwitch' Mai 28 12:34:02 raspberrypi homebridge[3269]: [2017-5-28 12:34:02] --- Mai 28 12:34:05 raspberrypi homebridge[3269]: [2017-5-28 12:34:05] Loaded plugin: homebridge-fritz Mai 28 12:34:05 raspberrypi homebridge[3269]: [2017-5-28 12:34:05] Registering platform 'homebridge-fritz.Fritz!Box' Mai 28 12:34:05 raspberrypi homebridge[3269]: [2017-5-28 12:34:05] --- Mai 28 12:34:06 raspberrypi homebridge[3269]: [2017-5-28 12:34:06] Loaded plugin: homebridge-harmonyhub Mai 28 12:34:06 raspberrypi homebridge[3269]: [2017-5-28 12:34:06] Registering platform 'homebridge-harmonyhub.HarmonyHub'
Irgendetwas mit...
Code
Alles anzeigenMai 28 12:44:41 raspberrypi homebridge[4412]: [2017-5-28 12:44:41] [Broadlink RM] Initializing BroadlinkRM platform... Mai 28 12:44:41 raspberrypi homebridge[4412]: /usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:90 Mai 28 12:44:41 raspberrypi homebridge[4412]: throw err0; Mai 28 12:44:41 raspberrypi homebridge[4412]: ^ Mai 28 12:44:41 raspberrypi homebridge[4412]: Error: EACCES: permission denied, mkdir '/home/homebridge' Mai 28 12:44:41 raspberrypi homebridge[4412]: at Object.fs.mkdirSync (fs.js:895:18) Mai 28 12:44:41 raspberrypi homebridge[4412]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:71:13) Mai 28 12:44:41 raspberrypi homebridge[4412]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:44:41 raspberrypi homebridge[4412]: at sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Function.sync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/mkdirp/index.js:77:24) Mai 28 12:44:42 raspberrypi homebridge[4412]: at LocalStorage.parseStorageDirSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:600:20) Mai 28 12:44:42 raspberrypi homebridge[4412]: at LocalStorage.initSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/local-storage.js:141:14) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Object.nodePersist.initSync (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/node-persist/src/node-persist.js:37:32) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Object.init (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/helpers/persistentState.js:10:15) Mai 28 12:44:42 raspberrypi homebridge[4412]: at BroadlinkRMPlatform.HomebridgePlatform (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/platform.js:14:21) Mai 28 12:44:42 raspberrypi homebridge[4412]: at BroadlinkRMPlatform (/usr/local/lib/node_modules/homebridge-broadlink-rm/index.js:11:1) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:294:32) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:36) Mai 28 12:44:42 raspberrypi homebridge[4412]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Module._compile (module.js:571:32) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Object.Module._extensions..js (module.js:580:10) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Module.load (module.js:488:32) Mai 28 12:44:42 raspberrypi homebridge[4412]: at tryModuleLoad (module.js:447:12) Mai 28 12:44:42 raspberrypi homebridge[4412]: at Function.Module._load (module.js:439:3) Mai 28 12:44:42 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE Mai 28 12:44:42 raspberrypi systemd[1]: Unit homebridge.service entered failed state. Mai 28 12:44:42 raspberrypi homebridge[4412]: at Module.runMain (module.js:605:10) Mai 28 12:44:42 raspberrypi homebridge[4412]: at run (bootstrap_node.js:427:7) Mai 28 12:44:42 raspberrypi homebridge[4412]: at startup (bootstrap_node.js:151:9) Mai 28 12:44:42 raspberrypi homebridge[4412]: at bootstrap_node.js:542:3 Mai 28 12:44:52 raspberrypi systemd[1]: homebridge.service holdoff time over, scheduling restart. Mai 28 12:44:52 raspberrypi systemd[1]: Stopping Node.js HomeKit Server... Mai 28 12:44:52 raspberrypi systemd[1]: Starting Node.js HomeKit Server... Mai 28 12:44:52 raspberrypi systemd[1]: Started Node.js HomeKit Server. Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node> Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:44:53 raspberrypi node[4520]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister> Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node> Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** Please fix your application to use the native API of Avahi! Mai 28 12:44:53 raspberrypi homebridge[4520]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Und werfe ic BroadLink erstmal raus aus der config kommt die nächste Fehlermeldung zu iBrew.
Code
Alles anzeigenMai 28 13:14:45 raspberrypi homebridge[7613]: OSError: [Errno 13] Permission denied: '/home/homebridge' Mai 28 13:14:46 raspberrypi homebridge[7613]: [2017-5-28 13:14:46] Failed to determine Wasserkocher state. Mai 28 13:14:46 raspberrypi homebridge[7613]: [2017-5-28 13:14:46] Traceback (most recent call last): Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/usr/local/bin/ibrew", line 22, in <module> Mai 28 13:14:46 raspberrypi homebridge[7613]: iBrewConsole().run(sys.argv[1:]) Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/home/pi/iBrew/source/iBrewConsole.py", line 1273, in run Mai 28 13:14:46 raspberrypi homebridge[7613]: AppFolders.makeFolders() Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/home/pi/iBrew/source/iBrewFolders.py", line 27, in makeFolders Mai 28 13:14:46 raspberrypi homebridge[7613]: make(AppFolders.logs()) Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/home/pi/iBrew/source/iBrewFolders.py", line 26, in make Mai 28 13:14:46 raspberrypi homebridge[7613]: os.makedirs(folder) Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/usr/lib/python2.7/os.py", line 150, in makedirs Mai 28 13:14:46 raspberrypi homebridge[7613]: makedirs(head, mode) Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/usr/lib/python2.7/os.py", line 150, in makedirs Mai 28 13:14:46 raspberrypi homebridge[7613]: makedirs(head, mode) Mai 28 13:14:46 raspberrypi homebridge[7613]: File "/usr/lib/python2.7/os.py", line 157, in makedirs Mai 28 13:14:46 raspberrypi homebridge[7613]: mkdir(name, mode)
Ich glaube ich habe mit mit der Umstellung keinen Gefallen getan. Aber hab noch ein Backup und sollte somit im Zweifel wieder in die Ausgangsposition kommen. Schade, auch wenn die 10 sec. Handhabung super klingt. Aber alles in allem kenne ich mich dann doch derzeit noch zu wenig aus.
raspberrypi homebridge[7613]: OSError: [Errno 13] Permission denied: '/home/homebridge'
Ist der Fehler
Läuft als user homebridge, aber anscheinend nicht sauber als dienst.
Zeig mal Ergebnisse von:
sudo ls -al /etc/systemd/system/
sudo ls -al /etc/default/
Ich bin jetzt erstmal nochmal ganz zurück mit meinem Backup, also Stand vor der Einrichtung des Dienstes wie oben beschrieben.
Code
Alles anzeigenpi@raspberrypi:~ $ sudo ls -al /etc/systemd/system/ insgesamt 56 drwxr-xr-x 13 root root 4096 Mai 15 15:59 . drwxr-xr-x 6 root root 4096 Mai 15 15:48 .. -rw-r--r-- 1 root root 1551 Sep 18 2015 [email protected] drwxr-xr-x 2 root root 4096 Jan 1 1970 bluetooth.target.wants lrwxrwxrwx 1 root root 37 Jan 1 1970 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service lrwxrwxrwx 1 root root 40 Jan 1 1970 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service lrwxrwxrwx 1 root root 34 Jan 1 1970 dhcpcd5 -> /lib/systemd/system/dhcpcd.service drwxr-xr-x 2 root root 4096 Mai 27 2016 dhcpcd.service.d lrwxrwxrwx 1 root root 35 Jan 14 10:58 display-manager.service -> /lib/systemd/system/lightdm.service drwxr-xr-x 2 root root 4096 Jan 1 1970 getty.target.wants drwxr-xr-x 2 root root 4096 Jan 1 1970 [email protected] drwxr-xr-x 2 root root 4096 Jan 1 1970 halt.target.wants drwxr-xr-x 2 root root 4096 Sep 18 2016 multi-user.target.wants drwxr-xr-x 2 root root 4096 Jan 1 1970 poweroff.target.wants drwxr-xr-x 2 root root 4096 Jan 1 1970 rc-local.service.d drwxr-xr-x 2 root root 4096 Jan 1 1970 reboot.target.wants drwxr-xr-x 2 root root 4096 Jan 1 1970 sockets.target.wants lrwxrwxrwx 1 root root 31 Mai 27 2016 sshd.service -> /lib/systemd/system/ssh.service drwxr-xr-x 2 root root 4096 Jan 1 1970 sysinit.target.wants lrwxrwxrwx 1 root root 35 Jan 1 1970 syslog.service -> /lib/systemd/system/rsyslog.service pi@raspberrypi:~ $ sudo ls -al /etc/default/ insgesamt 124 drwxr-xr-x 3 root root 4096 Mai 15 15:59 . drwxr-xr-x 115 pi pi 4096 Jul 17 2013 .. -rw-r--r-- 1 root root 219 Apr 13 2015 avahi-daemon -rw-r--r-- 1 root root 845 Jul 28 2014 bluetooth -rw-r--r-- 1 root root 222 Apr 27 2014 bsdmainutils -rw-r--r-- 1 root root 276 Mai 27 2016 console-setup -rw-r--r-- 1 root root 549 Aug 23 2014 crda -rw-r--r-- 1 root root 955 Sep 5 2015 cron -rw-r--r-- 1 root root 297 Jul 21 2015 dbus -rw-r--r-- 1 root root 92 Apr 6 2015 devpts -rw-r--r-- 1 root root 84 Mär 5 2012 fake-hwclock -rw-r--r-- 1 root root 86 Apr 6 2015 halt -rw-r--r-- 1 root root 855 Nov 2 2008 hdparm -rw-r--r-- 1 root root 657 Mär 30 2015 hwclock drwxr-xr-x 2 root root 4096 Jan 1 1970 kdm.d -rw-r--r-- 1 root root 150 Mai 27 2016 keyboard -rw-r--r-- 1 root root 52 Sep 15 2016 locale -rw-r--r-- 1 root root 2019 Nov 15 2014 netatalk -rw-r--r-- 1 root root 306 Jun 21 2012 networking -rw-r--r-- 1 root root 793 Aug 13 2014 nfs-common -rw-r--r-- 1 root root 1756 Apr 2 2016 nss -rw-r--r-- 1 root root 15 Aug 4 2006 ntp -rw-r--r-- 1 root root 292 Apr 28 09:32 raspberrypi-kernel -rw-r--r-- 1 root root 620 Apr 6 2015 rcS -rw-r--r-- 1 root root 1768 Sep 30 2013 rsync -rw-r--r-- 1 root root 124 Dez 14 2015 rsyslog -rw-r--r-- 1 root root 133 Apr 14 2016 ssh -rw-r--r-- 1 root root 625 Nov 3 2013 timidity -rw-r--r-- 1 root root 1115 Apr 6 2015 tmpfs -rw-r--r-- 1 root root 548 Mai 10 2011 triggerhappy -rw-r--r-- 1 root root 1118 Mai 27 2016 useradd
Tja und nun?
Wenn es noch nicht als Dienst eingerichtet ist, wie soll man da Fehler suchen der den Dienst Betrifft
Na dann läuft jetzt ja alles.
Bei mir kommt leider folgender Fehler:
CodeAug 23 17:15:21 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart. Aug 23 17:15:21 raspberrypi systemd[1]: Stopped Node.js HomeKit Server. Aug 23 17:15:21 raspberrypi systemd[1]: Started Node.js HomeKit Server. Aug 23 17:15:21 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC Aug 23 17:15:21 raspberrypi systemd[1]: homebridge.service: Unit entered failed state. Aug 23 17:15:21 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
kann mir jemand helfen? lief vorher als root und wurde entsprechend der Anleitung angepasst.
/etc/default/homebridge:
Code# Defaults / Configuration options for homebridge # The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) HOMEBRIDGE_OPTS=-U /var/homebridge # If you uncomment the following line, homebridge will log more # You can display this via systemd's journalctl: journalctl -f -u homebridge # DEBUG=*
/etc/systemd/system/homebridge.service
Code
Alles anzeigen[Unit] Description=Node.js HomeKit Server After=syslog.target network-online.target [Service] Type=simple User=root EnvironmentFile=/etc/default/homebridge ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS Restart=on-failure RestartSec=10 KillMode=process [Install] WantedBy=multi-user.target
Läuft auf Raspberry Pi 3 mit Stretch Node 8.4 und NPM 5.3
kommt mehr an fehler meldungen?
alle schritte genau prüfen, besonderst auf sudo achten.
Ich habe nur mit Jessie getestet.
Fehler gefunden
/etc/systemd/system/homebridge.service
Code
Alles anzeigen[Unit] Description=Node.js HomeKit Server After=syslog.target network-online.target [Service] Type=simple User=root EnvironmentFile=/etc/default/homebridge ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS #<----- zu /usr/bin/homebridge $HOMEBRIDGE_OPTS Restart=on-failure RestartSec=10 KillMode=process [Install] WantedBy=multi-user.target
Danach Neustart und jetzt läufts
Kurze Frage zum Neustart nach 10 Sekunden. Bei mir stürzt ab und zu das Harmony plugin 2.0 immer mal wieder ab. Nach sudo reboot läuft alles wieder stabil.
Kann ich mir hiermit das manuelle Neustarten ersparen?
Ich habe homebridge nach dieser Amleitung installiert, also als Dienst mit Auto Start Init.d
Wenn ich systemd nach dieser Anleitung installiere, wird die config.json automatisch in den neuen Ordner /var kopiert oder muss diese manuell angelegt werden?
Sollte dann die bisherige config.json unter /home/pi/.homebridge/ gelöscht werden?
Ändert sich ansonsten außer dem geänderten Ort der config.json etwas für mich oder bleibt die Bedienung mit den neuen Befehlen dieselbe?
Oder ist der regelmäßige tägliche Start gemäß dieser Anleitung der elegantere?
Pi automatisch einmal am Tag Rebooten
So kann homebridge doch weiterhin als Dienst mit Init.D laufen, quasi alles beim Alten außer dass der regelmäßige Neustart durchgeführt wird?
Kann ich mir hiermit das manuelle Neustarten ersparen
Ja
Der unterschied ist
- jetzt startest du den kompletten Raspberry neu, oder du musst warten bis er autom. neu gestartet wird.
- als Dienst, wird nach 10 sec. nur das Programm homebridge neu gestartet.
zu beachten ist noch als welcher User die homebridge bei Dir läuft, demensprechen sollte auch der Dienst dann laufen.
zu beachten ist noch als welcher User die homebridge bei Dir läuft, demensprechen sollte auch der Dienst dann laufen.
Erst mal vielen Dank für die Rückmeldung. Das bedeutet konkret, wenn sich das harmony-plugin aufhängt, wird dies bemerkt und homebridge wird neu gestartet. Cool!
Wie finde ich heraus, als welcher user bei mir homebridge läuft?
Wie finde ich heraus, als welcher user bei mir homebridge läuft?
wo liegt die config.json?
bzw.
was steht in der /etc/init.d/homebridge bei start
Die config liegt aktuell in /home/pi/.homebridge/
dann läuft es als User pi
bei meiner Beschreibung must Du zum Schluss
den Ordner /user/pi/.homebridge nach
/var/homebridge kopieren