FHEM startet nicht mehr

Begonnen von odie13690, 27 Januar 2019, 09:16:53

Vorheriges Thema - Nächstes Thema

odie13690

Hallo zusammen,

irgendetwas ist heute Nacht geschehen. Zumindest habe ich seit heute früh keinen Zugriff mehr. Raspi neu gestartet, Fhem leider nicht.

Manueller Start über die Konsole (sudo /etc/init.d/fhem start) bringt folgenden Fehler:

ZitatStarting fhem...
syntax error at fhem.pl line 33, near "use strict"
Execution of fhem.pl aborted due to compilation errors.

Kann mir jemand erklären, was da über Nacht passiert sein kann?

odie13690

CoolTux

FHEM hat ein eigenes Logfile. Eventuell steht da mehr drin.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

odie13690

Viele Einträge

ZitatCannot fork: Cannot allocate memory

???

CoolTux

Und das schon beim Start. Wow.

Welche Distribution hast du genau. /etc/init.d/fhem ist veraltet.
Hast du ein altes System?

Wenn nicht beende fhem mittels systemctl stop fhem und starte dann mit systemctl start fhem
Und dann gib hier die letzten 50 Zeilen aus.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

odie13690

Ich verwende Raspbian. Altes System?

fhem läuft nach Neustart des Raspberry gar nicht, wieso dann systemctl stop fhem?

MadMax-FHEM

#5
Zitat von: odie13690 am 27 Januar 2019, 10:12:04
Ich verwende Raspbian. Altes System?

Raspbian ist die Distro da gibt es mehrere Versionen: Wheezy (sehr alt), Jessie (alt), Stretch (aktuell)

Hast du eine "Lite-Version" oder "Voll-Version" (mit Desktop)?


Zitat von: odie13690 am 27 Januar 2019, 10:12:04
fhem läuft nach Neustart des Raspberry gar nicht, wieso dann systemctl stop fhem?

Sicher ist sicher...

EDIT: was liefert "ls -la /etc/init.d/" bzw. "ls -la /etc/systemd/system/" ? (bzw. "eingeschränkt" auf "fhem": /etc/init.d/fhem*  /etc/systemd/system/fhem*  )

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

odie13690

Zitat von: MadMax-FHEM am 27 Januar 2019, 10:33:37
Raspbian ist die Distro da gibt es mehrere Versionen: Wheezy (sehr alt), Jessie (alt), Stretch (aktuell)

Hast du eine "Lite-Version" oder "Voll-Version" (mit Desktop)?

Soweit ich mich erinnere Wheezy Lite

ZitatEDIT: was liefert "ls -la /etc/init.d/" bzw. "ls -la /etc/systemd/system/" ? (bzw. "eingeschränkt" auf "fhem": /etc/init.d/fhem*  /etc/systemd/system/fhem*  )

total 320
drwxr-xr-x   2 root root 4096 Feb 11  2018 .
drwxr-xr-x 108 root root 4096 Jan 27 09:52 ..
-rwxr-xr-x   1 root root 5195 Sep  6  2011 alsa-utils
-rwxr-xr-x   1 root root 7820 Dec 22  2014 apache2
-rwxr-xr-x   1 root root 1276 Oct 15  2012 bootlogs
-rwxr-xr-x   1 root root 1281 Jul 14  2013 bootmisc.sh
-rwxr-xr-x   1 root root  950 Dec 18  2013 cgroup-bin
-rwxr-xr-x   1 root root 3816 Jul 14  2013 checkfs.sh
-rwxr-xr-x   1 root root 1099 Jul 14  2013 checkroot-bootclean.sh
-rwxr-xr-x   1 root root 9673 Jul 14  2013 checkroot.sh
-rwxr-xr-x   1 root root 1379 Dec  9  2011 console-setup
-rwxr-xr-x   1 root root 3033 Jul  9  2012 cron
-rwxr-xr-x   1 root root 2813 Feb  5  2015 dbus
-rw-r--r--   1 root root 1728 Feb 11  2018 .depend.boot
-rw-r--r--   1 root root  833 Feb 11  2018 .depend.start
-rw-r--r--   1 root root  724 Feb 11  2018 .depend.stop
-rwxr-xr-x   1 root root 2148 Jun  9  2012 dphys-swapfile
-rwxr-xr-x   1 root root  824 Sep  5  2014 fake-hwclock
-rwxr-xr-x   1 root root 1442 Mar 20  2015 fhem
-rwxr-xr-x   1 root root 1329 Oct 15  2012 halt
-rwxr-xr-x   1 root root 1423 Oct 15  2012 hostname.sh
-rwxr-xr-x   1 root root 3880 Dec 22  2012 hwclock.sh
-rwxr-xr-x   1 root root 4698 May  1  2012 ifplugd
-rwxr-xr-x   1 root root 7592 Apr 28  2012 kbd
-rwxr-xr-x   1 root root 1591 Oct  1  2012 keyboard-setup
-rwxr-xr-x   1 root root 1293 Oct 15  2012 killprocs
-rwxr-xr-x   1 root root 1990 May 20  2012 kmod
-rwxr-xr-x   1 root root 2610 Jul 25  2011 lightdm
-rwxr-xr-x   1 root root 2887 Jul 29  2016 lighttpd
-rwxr-xr-x   1 root root  995 Oct 15  2012 motd
-rwxr-xr-x   1 root root  670 Feb 24  2013 mountall-bootclean.sh
-rwxr-xr-x   1 root root 2128 Feb 24  2013 mountall.sh
-rwxr-xr-x   1 root root 1508 Jul 14  2013 mountdevsubfs.sh
-rwxr-xr-x   1 root root 1413 Jul 14  2013 mountkernfs.sh
-rwxr-xr-x   1 root root  678 Feb 24  2013 mountnfs-bootclean.sh
-rwxr-xr-x   1 root root 2440 Oct 15  2012 mountnfs.sh
-rwxr-xr-x   1 root root 1731 Jul 14  2013 mtab.sh
-rwxr-xr-x   1 root root 4322 Mar 14  2013 networking
-rwxr-xr-x   1 root root 6491 Jun 15  2013 nfs-common
-rwxr-xr-x   1 root root 1814 Feb  4  2015 ntp
-rwxr-xr-x   1 root root 1313 Jun 30  2012 plymouth
-rwxr-xr-x   1 root root  725 Jun 30  2012 plymouth-log
-rwxr-xr-x   1 root root 1346 May 20  2012 procps
-rwxr-xr-x   1 root root 1050 Jul 13  2015 pywws
-rwxr-xr-x   1 root root 1217 Jul  6  2015 raspi-config
-rwxr-xr-x   1 root root 6120 Oct 15  2012 rc
-rwxr-xr-x   1 root root  782 Oct 15  2012 rc.local
-rwxr-xr-x   1 root root  117 Oct 15  2012 rcS
-rw-r--r--   1 root root 2427 Oct 15  2012 README
-rwxr-xr-x   1 root root  639 Oct 15  2012 reboot
-rwxr-xr-x   1 root root 1074 Jul 14  2013 rmnologin
-rwxr-xr-x   1 root root 2344 Jun 15  2012 rpcbind
-rwxr-xr-x   1 root root 4395 Dec 13  2012 rsync
-rwxr-xr-x   1 root root 3054 Oct  7  2014 rsyslog
-rwxr-xr-x   1 root root 3200 Oct 15  2012 sendsigs
-rwxr-xr-x   1 root root  590 Oct 15  2012 single
-rw-r--r--   1 root root 4290 Oct 15  2012 skeleton
-rwxr-xr-x   1 root root 3881 Jun 28  2014 ssh
-rwxr-xr-x   1 root root  714 Jun 28  2012 sudo
-rwxr-xr-x   1 root root 3169 May 10  2011 triggerhappy
-rwxr-xr-x   1 root root 8827 Nov  9  2012 udev
-rwxr-xr-x   1 root root 1179 Aug 19  2012 udev-mtab
-rwxr-xr-x   1 root root 2721 Apr 10  2013 umountfs
-rwxr-xr-x   1 root root 2195 Apr 10  2013 umountnfs.sh
-rwxr-xr-x   1 root root 1122 Oct 15  2012 umountroot
-rwxr-xr-x   1 root root 3111 Oct 15  2012 urandom
-rwxr-xr-x   1 root root 2666 Mar  2  2012 x11-common


total 16
drwxr-xr-x 4 root root 4096 Feb 16  2015 .
drwxr-xr-x 3 root root 4096 Feb 15  2015 ..
drwxr-xr-x 2 root root 4096 Feb 15  2015 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Feb 16  2015 sysinit.target.wants
lrwxrwxrwx 1 root root   35 Oct  8  2014 syslog.service -> /lib/systemd/system/rsyslog.service

MadMax-FHEM

#7
Zitat von: odie13690 am 27 Januar 2019, 10:43:12
Soweit ich mich erinnere Wheezy Lite

Und seither kein Upgrade!?

Wie ich geschrieben habe: sehr, sehr, sehr alt (OHNE Sicherheitsupdates etc.)

Dann anders:

sudo service fhem stop
(sicherheitshalber ;)  )

sudo service fhem start

Und dann wie CoolTux angefragt: die letzten Logeinträge (bzw. die letzten ab Server Shutdown)...

EDIT: wenn noch Wheezy: wie alt ist das Sytem (und somit die SD-Karte)? Will ja nicht den Teufel an die Wand malen aber wenn sich eine SD-Karte "verabschiedet", dann kann das durchaus auch solche "komischen Fehler" geben (weil z.B. irgendwas nicht mehr lesbar ist). Oder hast du vorher ein fhem (oder System) Update (o.ä.) gemacht?

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

CoolTux

Wenn Du schon Dein Betriebssystem so alt hälst würde mich interessieren wie alt Dein FHEM System ist.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

odie13690

Update und Upgrade habe ich mehr oder regelmäßig gemacht. Und auch fhem habe ich upgedatet.

Von welchem Logfile reden wir? Was ich oben gepostet habe, ist aus der fhem.log. Die letzten Einträge sind heute von 6.24 Uhr.

CoolTux

Du machst /etc/init.d/fhem Stop

Dann

/etc/init.d/fhem start

Und dann postest Du hier im Forum die letzten 50 Zeilen aus der /opt/fhem/log/fhem-....log
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

odie13690

Nach
sudo /etc/init.d/fhem stop
sudo /etc/init.d/fhem start

in der Konsole erscheint
Starting fhem...
syntax error at fhem.pl line 33, near "use strict"
Execution of fhem.pl aborted due to compilation errors.

In der fhem.log sind keine neuen Einträge.

CoolTux

Ich würde behaupten das Deine fhem.pl korrupt ist. Das würde dann auch für eine kaputte sd Karte sprechen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

MadMax-FHEM

#13
Zitat von: CoolTux am 27 Januar 2019, 11:44:33
Ich würde behaupten das Deine fhem.pl korrupt ist. Das würde dann auch für eine kaputte sd Karte sprechen.

Jep, hat bei mir letztes Mal auch so (ähnlich) angefangen...
...daher ja die Frage wie alt das System schon ist (weil Wheezy ist ja schon echt alt)...

Dann: hoffentlich hast du ein Backup! (z.B.: /opt/fhem/backup)

Und dann neu aufsetzen...
...auf einer NEUEN Karte.

Und dann auch gleich auf neues Raspbian Stretch-Lite... :)

EDIT: mit guter Doku (also was du z.B. für zusätzliche Pakete etc. installiert hast) und einem vorhandenen (nicht zu alten) Backup ist das ja normalerweise schnell getan... Wenn nicht, dann musst du von Hand zu Fuss umziehen... Und ich würde den PI mal lahmlegen und die Karte ziehen (bevor noch mehr Schrott wird / sollte es tatsächlich die Karte sein / was aber so aussieht, wenn du "nichts" gemacht hast)... Unterstützung gibt die Forensuche, das Thema wurde schon 3Mrd Mal "durchgekaut" ;)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

odie13690

Konnte von der defekten SD-Karte den fhem-Ordner sichern. Habe nun ein neues fhem auf stretch-Basis vorbereitet. Wie bekomme ich jetzt die gesicherten fhem-Files auf die neue Karte?