Restore und Fhem startet nicht mehr

Begonnen von tfriedrich85, 14 Februar 2020, 09:18:06

Vorheriges Thema - Nächstes Thema

tfriedrich85

Hallo,

ich trainiere gerade den Restore und das ist auch gut so.
Denn Fhem kommt scheinbar nicht klar damit wenn der Log-Folder von der SD Card auf den USB Stick verschoben hat. Denn das habe ich so gemacht um die Backups zu verkleinern.

Ich habe als den Backup und Log-Folder nach /media/usbdisk/ verschoben

Nach dem Restore ist das entsprechende USB Device dann nicht sofort eingebunden und demzufolge kann Fhem die Files nicht finden und startet dann nicht.

Failed to start FHEM Home Automation.
Feb 13 20:36:38 raspberrypi sudo[656]: pam_unix(sudo:session): session closed for user root
Feb 13 20:36:38 raspberrypi sudo[609]: pam_unix(sudo:session): session closed for user root
Feb 13 20:36:38 raspberrypi systemd[1]: fhem.service: Service RestartSec=100ms expired, scheduling restart.
Feb 13 20:36:38 raspberrypi systemd[1]: fhem.service: Scheduled restart job, restart counter is at 1.
Feb 13 20:36:38 raspberrypi systemd[1]: Stopped FHEM Home Automation.
Feb 13 20:36:38 raspberrypi systemd[1]: Starting FHEM Home Automation...
Feb 13 20:36:39 raspberrypi perl[691]: Can't open /media/usbdisk/logs/fhem-2020-02.log: No such file or directory at fhem.pl line 2770.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Failed with result 'exit-code'.
Feb 13 20:36:39 raspberrypi systemd[1]: Failed to start FHEM Home Automation.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Service RestartSec=100ms expired, scheduling restart.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Scheduled restart job, restart counter is at 2.
Feb 13 20:36:39 raspberrypi systemd[1]: Stopped FHEM Home Automation.
Feb 13 20:36:39 raspberrypi systemd[1]: Starting FHEM Home Automation...
Feb 13 20:36:39 raspberrypi perl[692]: Can't open /media/usbdisk/logs/fhem-2020-02.log: No such file or directory at fhem.pl line 2770.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Failed with result 'exit-code'.
Feb 13 20:36:39 raspberrypi systemd[1]: Failed to start FHEM Home Automation.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Service RestartSec=100ms expired, scheduling restart.
Feb 13 20:36:39 raspberrypi systemd[1]: fhem.service: Scheduled restart job, restart counter is at 3.
Feb 13 20:36:39 raspberrypi systemd[1]: Stopped FHEM Home Automation.
Feb 13 20:36:39 raspberrypi systemd[1]: Starting FHEM Home Automation...
Feb 13 20:36:40 raspberrypi perl[693]: Can't open /media/usbdisk/logs/fhem-2020-02.log: No such file or directory at fhem.pl line 2770.
Feb 13 20:36:40 raspberrypi systemd[1]: fhem.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Feb 13 20:36:40 raspberrypi systemd[1]: fhem.service: Failed with result 'exit-code'.
Feb 13 20:36:40 raspberrypi systemd[1]: Failed to start FHEM Home Automation.


Habt ihr eine Lösung für verschobene Ordner auf Hardware die bei einem möglichen Restore nicht da ist?
Wie löst ihr das Problem?

Wernieman

a) In dem ich die Logfiles im FHEM-Direktory lasse .. aber eben nicht mitsicher.
b) die Logfiles von FHEM nach /var/log/fhem umbiege (Stichwort Symlinks, siehe a))

Am Anfang habe ich immer a9 gemacht, mittlerweile gehe ich nach b) vor.

- 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