[Vorest gelöst]Fhem Backup schreibt SD Karte voll!

Begonnen von Gueco315, 05 Mai 2021, 16:29:45

Vorheriges Thema - Nächstes Thema

Gueco315

Hallo,

ich wollte gerade Homeconnect installieren und habe folgende Befehle ausgeführt:

update all https://raw.githubusercontent.com/sw-home/FHEM-HomeConnect/master/controls_homeconnect.txt

sudo apt-get install libswitch-perl

update add https://raw.githubusercontent.com/sw-home/FHEM-HomeConnect/master/controls_homeconnect.txt

Danach waren bei allen Stati der Aktoren "Undefined" , Alexa startet und stoppt und startet und stoppt.
Kommt in keinen brauchbaren Status mehr.

Viele HM-Sensoren haben Missing Ack, und es scheint als würde Fhem nach und nach die Verbindungen wieder suchen und finden.
Einen ähnlichen Zustand hatten wir gestern nach einem Stromausfall.

Woran kann das liegen und wie kann ich so etwas verhindern?

Gruß GÜnter

Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Gueco315

.. ein Update schlägt fehl:

2021.05.05 16:38:11 1 : Downloading https://fhem.de/fhemupdate/controls_fhem.txt

2021.05.05 16:38:12 2 : Backup with command: tar czf ./backup/FHEM-20210505_163811.tar.gz "./www" "./alexa" "./unused" "./log" "./GPL_V2.txt" "./fhem.cfg-save" "./fb_phonebook.xml" "./contrib" "./demolog" "./configDB.pm" "./docs" "./regSave.cfg" "./backup_cfg-state" "./alexa-fhem-0.3.4.tgz" "./fhem.cfg" "./fhem.cfg.demo" "./restoreDir" "./lib" "./CHANGED" "./MAINTAINER.txt" "./alexa-fhem.cfg" "./fhem.pl" "./FHEM" "./README_DEMO.txt"

2021.05.05 16:38:12 1 : backup  gzip: stdout: No space left on device tar: ./backup/FHEM-20210505_163811.tar.gz: Nur 6144 von 10240 Bytes geschrieben tar: Child returned status 1 tar: Error is not recoverable: exiting now

2021.05.05 16:38:12 1 : backup done: FHEM-20210505_163811.tar.gz (0 Bytes)

2021.05.05 16:38:12 1 :

2021.05.05 16:38:12 1 : fhem

2021.05.05 16:38:12 1 : UPD ./CHANGED

2021.05.05 16:38:12 1 : copy ././CHANGED ./restoreDir/update/2021-05-05/./CHANGED failed:No such file or directory, aborting the update

2021.05.05 16:38:12 1 : Downloading https://raw.githubusercontent.com/bismosa/FHEM/master/controls_Blitzer.txt

2021.05.05 16:38:12 1 :

2021.05.05 16:38:12 1 : Blitzer

2021.05.05 16:38:13 1 : nothing to do...

2021.05.05 16:38:13 1 : Downloading https://raw.githubusercontent.com/sw-home/FHEM-HomeConnect/master/controls_homeconnect.txt

2021.05.05 16:38:13 1 :

2021.05.05 16:38:13 1 : homeconnect

2021.05.05 16:38:13 1 : UPD FHEM/48_HomeConnect.pm

2021.05.05 16:38:13 1 : copy ./FHEM/48_HomeConnect.pm ./restoreDir/update/2021-05-05/FHEM/48_HomeConnect.pm failed:No such file or directory, aborting the update

2021.05.05 16:38:14 2 : MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a bp0i8ih`ub;54ki

2021.05.05 16:38:14 3 : MyAlexa: starting

2021.05.05 16:38:14 3 : MyAlexa: using logfile: ./log/alexa-2021-05-05.log

2021.05.05 16:38:14 3 : MyAlexa: read: end of file reached while sysread

2021.05.05 16:38:14 3 : MyAlexa: stopped

2021.05.05 16:38:34 2 : MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a bp0i8ih`ub;54ki

2021.05.05 16:38:34 3 : MyAlexa: starting

2021.05.05 16:38:34 3 : MyAlexa: using logfile: ./log/alexa-2021-05-05.log

2021.05.05 16:38:34 3 : MyAlexa: read: end of file reached while sysread

2021.05.05 16:38:34 3 : MyAlexa: stopped

2021.05.05 16:38:54 2 : MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a bp0i8ih`ub;54ki

2021.05.05 16:38:54 3 : MyAlexa: starting

2021.05.05 16:38:54 3 : MyAlexa: using logfile: ./log/alexa-2021-05-05.log

2021.05.05 16:38:54 3 : MyAlexa: read: end of file reached while sysread

2021.05.05 16:38:54 3 : MyAlexa: stopped

2021.05.05 16:39:14 2 : MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a bp0i8ih`ub;54ki

2021.05.05 16:39:14 3 : MyAlexa: starting

2021.05.05 16:39:14 3 : MyAlexa: using logfile: ./log/alexa-2021-05-05.log

2021.05.05 16:39:14 3 : MyAlexa: read: end of file reached while sysread

2021.05.05 16:39:14 3 : MyAlexa: stopped

2021.05.05 16:39:34 2 : MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a bp0i8ih`ub;54ki

2021.05.05 16:39:34 3 : MyAlexa: starting

2021.05.05 16:39:34 3 : MyAlexa: using logfile: ./log/alexa-2021-05-05.log


Habe ich da was zerschossen??
Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

frank

ZitatNo space left
da ist auf alle fälle kein speicher mehr
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

Otto123

{qx(df -h)}
und dann
{qx(ls -sh ./backup)}
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Gueco315

Danke für die schnellen Hinweise:

Dateisystem                         Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root                             30G     29G     0  100% /
devtmpfs                             1,8G       0  1,8G    0% /dev
tmpfs                                2,0G       0  2,0G    0% /dev/shm
tmpfs                                2,0G    8,5M  1,9G    1% /run
tmpfs                                5,0M    4,0K  5,0M    1% /run/lock
tmpfs                                2,0G       0  2,0G    0% /sys/fs/cgroup
/dev/mmcblk0p1                       253M     52M  201M   21% /boot
192.168.1.225:/volume1/raspibackups  1,8T    611G  1,2T   34% /backup
tmpfs                                391M       0  391M    0% /run/user/1000



insgesamt 280M
56M FHEM-20210411_235000.tar.gz
57M FHEM-20210418_235000.tar.gz
57M FHEM-20210419_112607.tar.gz
55M FHEM-20210425_235000.tar.gz
56M FHEM-20210502_235000.tar.gz
  0 FHEM-20210505_160517.tar.gz
  0 FHEM-20210505_160700.tar.gz
  0 FHEM-20210505_160812.tar.gz
  0 FHEM-20210505_162744.tar.gz
  0 FHEM-20210505_163811.tar.gz
  0 FHEM-20210505_164043.tar.gz


Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Gueco315

Was kann/muss ich tun?

Das sind doch wirklich keine Mengen, oder?

Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Gueco315

.. und nach einem Fhem Neustart passiert das hier:

2021-05-05 17:08:48 CUL_HM Gaeste_Heizung_Clima R_tempList_State: verified
2021-05-05 17:08:48 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_ClimaTeam R-sign: off
2021-05-05 17:08:48 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:48 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_remote R-sign: off
2021-05-05 17:08:49 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_ClimaTeam commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_Climate commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_Weather commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM HM_639252_remote commState: CMDs_processing...
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung cfgState: ok
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung commState: CMDs_done
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung CMDs_done
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung_Clima cfgState: TempChk
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung_Clima commState: CMDs_done
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung_windowRec cfgState: ok
2021-05-05 17:08:49 CUL_HM Gaeste_Heizung_windowRec commState: CMDs_done
2021-05-05 17:08:49 CUL_HM HM_639252_ClimaTeam cfgState: ok
2021-05-05 17:08:49 CUL_HM HM_639252_ClimaTeam commState: CMDs_done
2021-05-05 17:08:49 CUL_HM HM_639252_Climate cfgState: ok
2021-05-05 17:08:49 CUL_HM HM_639252_Climate commState: CMDs_done
2021-05-05 17:08:49 CUL_HM HM_639252_Weather cfgState: ok
2021-05-05 17:08:49 CUL_HM HM_639252_Weather commState: CMDs_done
2021-05-05 17:08:49 CUL_HM HM_639252_remote cfgState: ok
2021-05-05 17:08:49 CUL_HM HM_639252_remote commState
Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Otto123

#7
Naja ich dachte es ist der backup Pfad
aber wie vermutet Platte voll!!!
/dev/root                             30G     29G     0  100% /

Wo das ist musst Du selbst finden schau mal mit du -h /
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Wernieman

Damit Du erstmal arbeiten kannst, schaue mal unter /var/log mit "du -sh /var/log".

ABER .. Du solltest den Haupt Grund finden, warum Deine Platte (bzw. SD-Card) voll ist.

Ranntasten mit "du -sh /*" .. als root
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

mi.ke

ich hatte das vor Jahren auch mal.

Backup auf ein gemountetes share, welches nicht mehr funktioniert hat.
Dann speichert der Rechner die Backups lokal, was dann dazu führt, dass irgendwann die SD-Karte voll ist.
cheersmi.ke
FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

Gueco315

Es stimmt, ich lasse alle 2 Tage automatisiert Backups auf mein NAS laufen.

Nur bringt:

[/pi@raspberrypi:/backup $ sudo du -sh /var/log
2,3M    /var/log
code]

nicht die Speicherstelle, es muss woanders gespeichert werden.

Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Gueco315

pi@raspberrypi:/ $ sudo du -hsx * | sort -rh | head -5


liefert:

[/du: Zugriff auf 'proc/26927/task/26927/fd/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/26927/task/26927/fdinfo/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/26927/fd/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/26927/fdinfo/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
12G     backup
1,1G    usr
591M    var
349M    lib
262M    opt
code]

wobei backup das gemountete NAS ist.
Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Otto123

was sagt denn
sudo ls -lha /
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Gueco315

pi@raspberrypi:/ $ sudo ls -lha /
insgesamt 84K
drwxr-xr-x  22 root root 4,0K Mär 10 14:58 .
drwxr-xr-x  22 root root 4,0K Mär 10 14:58 ..
drwxrwxrwx   6 root root 4,0K Mai  5 23:04 backup
drwxr-xr-x   2 root root 4,0K Jun 30  2020 bin
drwxr-xr-x   6 root root 3,5K Jan  1  1970 boot
drwxr-xr-x  17 root root 3,8K Mai  5 17:21 dev
drwxr-xr-x  87 root root 4,0K Mai  5 16:46 etc
drwxr-xr-x   3 root root 4,0K Sep 26  2019 home
drwxr-xr-x  16 root root 4,0K Sep 26  2019 lib
drwx------   2 root root  16K Sep 26  2019 lost+found
drwxr-xr-x   2 root root 4,0K Sep 26  2019 media
drwxr-xr-x   2 root root 4,0K Sep 26  2019 mnt
drwxr-xr-x   4 root root 4,0K Dez 29  2019 opt
dr-xr-xr-x 135 root root    0 Jan  1  1970 proc
drwx------   7 root root 4,0K Apr  8 10:22 root
drwxr-xr-x  25 root root  900 Mai  5 23:36 run
drwxr-xr-x   2 root root 4,0K Jun 30  2020 sbin
drwxr-xr-x   2 root root 4,0K Sep 26  2019 srv
dr-xr-xr-x  12 root root    0 Mai  5 23:00 sys
drwxrwxrwt   8 root root 4,0K Mai  5 23:43 tmp
drwxr-xr-x  10 root root 4,0K Sep 26  2019 usr
drwxr-xr-x  12 root root 4,0K Mai  5 16:46 var
Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Otto123

ich hatte gedacht in der root liegt ein Image, was die anderen nicht anzeigen.
in irgendeinem Pfad müssen doch aber die 29 GB liegen?
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz