sudo cp config.json /home/pi/.homebridge
cp: der Aufruf von stat für 'config.json' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Ok ist scheinbar nicht da.
Und die Logs kann ich trotzdem nicht öffnen..
sudo cp config.json /home/pi/.homebridge
cp: der Aufruf von stat für 'config.json' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Ok ist scheinbar nicht da.
Und die Logs kann ich trotzdem nicht öffnen..
um die Logs zu öffnen habe ich nicht die nötigen rechte ? Was muss ich davor setzten ? Sudo oder Root oder chmod 777? Bin mit Linux nicht so ganz bewandert.
Und wie verschiebe ich die config.js am einfachsten?
Danke dir schon mal für deine Hilfe bisher !
Beim 1. SSH:
sudo /etc/init.d/homebridge start
Homebridge starting
Homebridge is not running
Beim 2.
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 20:21:52 raspberrypi node[7476]: *** WARNING *** For more information see <http://0pointer.de/avahi-compa…node&f=DNSServiceRegister>
Es steht das gleiche wie beim normalen da, nur das Homebridge nicht läuft..
hier mal meine init.d
#!/bin/sh
### BEGIN INIT INFO
# Provides: homebridge
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time for homebridge
# Description: Enable service provided by daemon.
### END INIT INFO
export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
PID=`pidof homebridge`
case "$1" in
start)
if ps -p $PID > /dev/null 2>&1; then
echo "Homebridge is already running"
else
su - pi -c "homebridge > /dev/null 2>&1 &"
echo "Homebridge starting"
$0 status
fi
;;
stop)
if ! ps -p $PID > /dev/null 2>&1; then
echo "Homebridge is not running"
else
kill $PID
echo "Homebridge closed"
fi
;;
restart)
if ! ps -p $PID > /dev/null 2>&1; then
$0 start
else
$0 stop
$0 start
fi
;;
status)
if ps -p $PID > /dev/null 2>&1; then
echo "Homebridge is running PID $PID"
else
echo "Homebridge is not running"
fi
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
;;
esac
exit 00
Im 1. Fenster habe ich Homebridge gestartet und es funktioniert.
im 2. steht das!
pi@raspberrypi:~ $ sudo tail -f /var/log/syslog
Nov 18 14:59:25 raspberrypi systemd[1]: Started Cleanup of Temporary Directories.
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 15:01:07 raspberrypi node[4728]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Nov 18 15:17:01 raspberrypi CRON[8050]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 18 16:17:01 raspberrypi CRON[20522]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 18 16:47:00 raspberrypi systemd[1]: Started Session c4 of user pi.
Nov 18 16:48:04 raspberrypi systemd[1]: Started Session c5 of user pi.
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** Please fix your application to use the native API of Avahi!
Nov 18 16:48:16 raspberrypi node[27381]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Alles anzeigen
Ist das hier richtig?
Habe mich gerade nochmal belesen wie ich an die Log komme..
Nov 18 14:44:16 raspberrypi systemd[571]: Started Virtual filesystem service - GNOME Online Accounts monitor.
Nov 18 14:44:17 raspberrypi kernel: [ 17.177793] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
Nov 18 14:44:17 raspberrypi udisksd[965]: Mounted /dev/mmcblk0p5 at /media/pi/SETTINGS on behalf of uid 1000
Nov 18 14:44:24 raspberrypi systemd[1]: Started Session c3 of user pi.
Nov 18 14:44:57 raspberrypi systemd[1]: Time has been changed
Nov 18 14:44:57 raspberrypi systemd-timesyncd[289]: Synchronized to time server [2a02:2028:ff00:a00::5]:123 (2.debian.pool.ntp.org).
Nov 18 14:44:57 raspberrypi systemd[1]: apt-daily.timer: Adding 4h 46min 12.111158s random time.
Nov 18 14:44:57 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 12min 23.286210s random time.
Nov 18 14:44:57 raspberrypi systemd[571]: Time has been changed
Nov 18 14:45:33 raspberrypi kernel: [ 71.525783] random: crng init done
Moin,
Ja mit dem Befehl gestartet und auch Status abgerufen.
Ausgabe war bei ersterem
Is Running
Is Not Running
Hallo,
Erstmal möchte ich sagen, dass ich kein passendes Thema gefunden habe und alles nach Anleitung gemacht haben und auch wiederholt habe.
Mein Problem seit zwei Tagen das meine Homebridge nicht automatisch startet.
Wenn ich per SSH verbunden bin und über den Begriff „homebridge“ das Programm starte läuft alles normal ab. Ich habe über das Schnellmenü am IPhone Zugriff auf alles. Muss die Bridge dann aber mit CTRL und C beenden.
Über die Init habe ich den autostart damals angelegt und dieser lief auch bis vor 2 Tagen. Nun schreibt mir das Programm Homebridge is Running
Is Not Running.
Ich habe die init. schon einmal gelöscht und neu eingefügt aber es passiert nichts.
Zudem habe ich momentan öfters Abstürze des ganzen Pi‘s sodass ich keinen Zugriff über SSH mehr habe und nur der „Hard reset“ hilft.
Über Update habe ich einiges aktualisiert vor kurzem aber wie gesagt Manuel startet Sie problemlos.
Vielen Dank schon mal