Ich hab gestern seit langem mal wieder ein Update gemacht. Da ich die TcpServerUtils.pm per exclude ausgeschlossen hatte, gabs hier anschließend ein Problem: FHEMWEB kann nicht geladen werden. Soweit so gut.
Ich bin dann mit telnet auf FHEM drauf, hab mit restore den Stand von gestern eingespielt, das o.a. exclude entfernt, update gemacht, alles wunderbar.
Shutdown restart überhaupt kein Problem.
ABER: Wenn ich jetzt den RasPi neu starte (egal ob nur shutdown -r oder POR) dann kommt das (fehlerhafte) System von gestern wieder.
Beim funktionierenden System sehe ich mit Filezilla, dass in /opt/fhem/ die aktuellen fhem.cfg und fhem.pl liegen. Nach dem RasPi Neustart liegen dort die fhem.cfg und fhem.pl von gestern und FHEM lässt sich wie gesagt nicht neu starten.
Für mich "riecht" das nach einem "unerwünschten" recovery .... ;)
Nimm mal bitte nicht Filezilla. Gehe mal bitte direkt mit SSH drauf und gebe dann ls -ll /opt/fhem/ ein
und schon ist da wieder die fhem.cfg von gestern ...drwxrwxrwx 2 fhem dialout 4096 Sep 27 2014 backup
drwx--x--x 2 pi pi 4096 Apr 16 2016 certs
-rw-rw-rw- 1 fhem dialout 198828 Sep 8 14:02 CHANGED
-rw-rw-rw- 1 fhem dialout 36537 Sep 8 14:02 configDB.pm
drwxrwxrwx 26 fhem root 4096 Oct 13 2016 contrib
drwxrwxrwx 2 fhem root 4096 May 19 2015 demolog
drwxrwxrwx 4 fhem root 4096 Sep 7 15:48 docs
-rw-rw-rw- 1 fhem dialout 999 Apr 5 2015 FBDECT_20001-2015-14.log
drwxrwxrwx 5 fhem root 20480 Sep 7 15:48 FHEM
-rw-rw-rw- 1 pi pi 108979 Sep 7 15:47 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15703 Feb 26 2017 fhem.cfg.demo
-rw-rw-rw- 1 fhem root 2037 Sep 27 2014 fhem_ori.cfg
-rw-rw-rw- 1 fhem dialout 134695 Sep 8 14:02 fhem.pl
-rw-rw-rw- 1 fhem dialout 167468 Jan 17 2016 fronthem.err
drwxrwxrwx 2 fhem root 12288 Sep 4 11:05 log
-rw-rw-rw- 1 fhem root 761 Oct 6 2013 README_DEMO.txt
-rw-r--r-- 1 fhem dialout 20818 Aug 23 14:12 regSave.cfg
drwxrwxrwx 5 fhem dialout 4096 Sep 7 15:47 restoreDir
-rw-rw-rw- 1 pi pi 2085 Oct 7 2016 tempList.cfg
drwxrwxrwx 2 fhem dialout 4096 Apr 10 2016 unused
drwxrwxrwx 10 fhem root 4096 Jan 7 2016 www
sorry, das war jetzt vor dem Update, aktuelle Listing kommt gleich
-rw-rw-rw- 1 pi pi 108979 Sep 7 15:47 fhem.cfg
Das wird so nichts. Da darf ja nur der User pi
Wenn Du alles fertig eingestellt hast so wie es sein soll mach mal bitte folgendes
chown -R fhem: /opt/fhem/
chmod -R 755 /opt/fhem/
Und dann noch mal in FHEM auf Config speichern.
oha ...drwxr-xr-x 2 fhem dialout 4096 Sep 27 2014 backup
drwxr-xr-x 2 fhem dialout 4096 Apr 16 2016 certs
-rwxr-xr-x 1 fhem dialout 209615 Sep 8 14:24 CHANGED
-rwxr-xr-x 1 fhem dialout 39152 Sep 8 14:24 configDB.pm
drwxr-xr-x 26 fhem dialout 4096 Oct 13 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 May 19 2015 demolog
drwxr-xr-x 4 fhem dialout 4096 Sep 7 15:48 docs
-rwxr-xr-x 1 fhem dialout 999 Apr 5 2015 FBDECT_20001-2015-14.log
drwxr-xr-x 5 fhem dialout 20480 Sep 7 15:48 FHEM
-rwxr-xr-x 1 fhem dialout 108963 Sep 8 14:40 fhem.cfg
-rwxr-xr-x 1 fhem dialout 15703 Feb 26 2017 fhem.cfg.demo
-rwxr-xr-x 1 fhem dialout 2037 Sep 27 2014 fhem_ori.cfg
-rwxr-xr-x 1 fhem dialout 136684 Sep 8 14:24 fhem.pl
-rwxr-xr-x 1 fhem dialout 167468 Jan 17 2016 fronthem.err
drwxr-xr-x 2 fhem dialout 12288 Sep 4 11:05 log
-rwxr-xr-x 1 fhem dialout 761 Oct 6 2013 README_DEMO.txt
-rwxr-xr-x 1 fhem dialout 20818 Aug 23 14:12 regSave.cfg
drwxr-xr-x 5 fhem dialout 4096 Sep 8 14:24 restoreDir
-rwxr-xr-x 1 fhem dialout 2085 Oct 7 2016 tempList.cfg
drwxr-xr-x 2 fhem dialout 4096 Apr 10 2016 unused
drwxr-xr-x 10 fhem dialout 4096 Jan 7 2016 www
Hab ich mir die Rechte verstellt ..... mal sehen, das wars wohl ...
wart mal .... :( Nach dem RasPi Neustart haben wir wieder den alten Zustand:drwxrwxrwx 2 fhem dialout 4096 Sep 27 2014 backup
drwx--x--x 2 pi pi 4096 Apr 16 2016 certs
-rw-rw-rw- 1 fhem dialout 209464 Sep 7 15:47 CHANGED
-rw-rw-rw- 1 fhem dialout 39152 Sep 7 15:47 configDB.pm
drwxrwxrwx 26 fhem root 4096 Oct 13 2016 contrib
drwxrwxrwx 2 fhem root 4096 May 19 2015 demolog
drwxrwxrwx 4 fhem root 4096 Sep 7 15:48 docs
-rw-rw-rw- 1 fhem dialout 999 Apr 5 2015 FBDECT_20001-2015-14.log
drwxrwxrwx 5 fhem root 20480 Sep 7 15:48 FHEM
-rw-rw-rw- 1 pi pi 108979 Sep 7 15:47 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15703 Feb 26 2017 fhem.cfg.demo
-rw-rw-rw- 1 fhem root 2037 Sep 27 2014 fhem_ori.cfg
-rw-rw-rw- 1 fhem dialout 136684 Sep 7 15:47 fhem.pl
-rw-rw-rw- 1 fhem dialout 167468 Jan 17 2016 fronthem.err
drwxrwxrwx 2 fhem root 12288 Sep 4 11:05 log
-rw-rw-rw- 1 fhem root 761 Oct 6 2013 README_DEMO.txt
-rw-r--r-- 1 fhem dialout 20818 Aug 23 14:12 regSave.cfg
drwxrwxrwx 5 fhem dialout 4096 Sep 7 15:47 restoreDir
-rw-rw-rw- 1 pi pi 2085 Oct 7 2016 tempList.cfg
drwxrwxrwx 2 fhem dialout 4096 Apr 10 2016 unused
drwxrwxrwx 10 fhem root 4096 Jan 7 2016 www
Hast Du noch Filezilla auf oder irgendwas anderes?
Beende mal fhem so das Du mit ps ax | grep perl nichts mehr siehst
Dann noch mal die Sache mit dem chown und chmod und dann mal ein neustart des pi's
Zitat von: grappa24 am 08 September 2017, 14:08:49
Für mich "riecht" das nach einem "unerwünschten" recovery .... ;)
für mich riecht das nach Popcorn...
Etwas Ähnliches hatte ich die Tage auf der Arbeit auch mit 2 RasPies.
Ich hatte die IP Konfig geändert, nach dem Neustart war immer wieder die alte da!
Ende vom Leid war dass beide SD-Karten defekt sind. Sie lassen sich noch lesen, tun so als wenn sie beschrieben werden können, werden aber nicht mehr beschrieben...
Gruß
Dan
Zitat von: DeeSPe am 08 September 2017, 14:57:55
Etwas Ähnliches hatte ich die Tage auf der Arbeit auch mit 2 RasPies.
Ich hatte die IP Konfig geändert, nach dem Neustart war immer wieder die alte da!
Ende vom Leid war dass beide SD-Karten defekt sind. Sie lassen sich noch lesen, tun so als wenn sie beschrieben werden können, werden aber nicht mehr beschrieben...
Gruß
Dan
Klingt einleuchtend. Schon mal ne SD-Card bereit halten.
hab ich auch schon gedacht, ich hab noch noch eine in Reserve. Also spiele ich meine Komplett-Sicherung mal auf ne neue SD, Starte damit, mache meine Änderungen, speichere ab und starte den RasPi mal neu. Irgendwann musste das ja mal passieren .... Melde mich wieder - Danke Euch -
Zitat von: betateilchen am 08 September 2017, 14:57:08
für mich riecht das nach Popcorn...
sorry betateilchen, da muss ich Dich enttäuschen ;) Es war die SD-Karte :( Sicherung auf eine neue Karte kopiert und jetzt läuft wieder alles.
Danke an alle und schönes Wochenende!
Supi. Muss man auch erstmal so einfach drauf kommen. Aber eventuell hatte uns eine dmsg Ausgabe das sogar mitgeteilt. Lach