FHEM startet nicht mehr

Begonnen von Fillip, 20 Juli 2017, 08:57:19

Vorheriges Thema - Nächstes Thema

Fillip

Guten morgen zusammen,
ich setze schon seit längerem FHEM eigentlich Problemlos auf einem Raspberry ein. Wie es der teufel so will, ist wärend des Urlaubs / unserer Abwesenheit, irgendetwas schief gelaufen. Erst war FHEM nicht mehr per HTTPs erreichbar, war zwar alles eingestell, habe auch neue Zertifikate erstellt, aber erfolglos, dann bin ich auf HTTP wieder zurück. Dann lief alles - bis gestern abend. FHEM startet nicht mehr.

pi@raspberrypi:/opt $ sudo /etc/init.d/fhem start
Starting fhem...
pi@raspberrypi:/opt $ sudo /etc/init.d/fhem status
fhem is not running
pi@raspberrypi:/opt $

Wie kann ich denn anderweiig noch versuchen FHEM zu starten, das ich sehe was beim Startvorgang schief läuft? Das Log (/opt/fhem/log/fhem-2017-07.log)

Zeigt keine fehler an:
2017.07.20 08:48:11 1: Including fhem.cfg
2017.07.20 08:48:12 3: telnetPort: port 7072 opened
2017.07.20 08:48:14 3: WEB: port 8083 opened


Habe schon viele Themen hier durch mit dem Problem, aber leider nicht dem, oder das was eslösen konnte...
Habe heute morgen auch ein Update und Upgrade von Pi gemacht - ohne Erfolg...

CoolTux

Mach doch Mal ein
ps ax | grep perl

um zu schauen ob FHEM tatsächlich nicht läuft
Ansonsten geht noch
/usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.config

Glaube so war das
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

Fillip

Also, eine .config gibt es nicht, aber eine .cfg, das bleibt aber auch alles kommentarlos:
pi@raspberrypi:/opt/fhem $ /usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg
pi@raspberrypi:/opt/fhem $ ps ax | grep perl
15175 pts/1    S+     0:00 grep --color=auto perl

FHEM scheint halt wirklich nicht zu laufen, komme ja auch auf keinen Port, sei es 8083,8084 drauf :-/

RaspiLED

Telnet auf Port 7073?

Gesendet von meinem SM-G800F mit Tapatalk

Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

Otto123

Hi,

starte mal die demo mit /usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg.demo


Zitat von: RaspiLED am 20 Juli 2017, 09:41:16
Telnet auf Port 7073?

Gesendet von meinem SM-G800F mit Tapatalk


Was meinst Du damit?  :-[

Gruß Otto
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

kumue

Zitat von: RaspiLED am 20 Juli 2017, 09:41:16
Telnet auf Port 7073?

Gesendet von meinem SM-G800F mit Tapatalk
..tippe auf Tippfehler

Berechtigung sind ok ?

rudolfkoenig

Was fuer Anfaenger/Unix-Neulinge zwar etwas fremd ist, aber in solchen Faellen immer hilft, ist FHEM mit "attr global logfile -" starten. Hier
  https://forum.fhem.de/index.php/topic,73784.msg660637.html#msg660637
habe ich versucht den Vorgang etwas detaillierter zu beschreiben.

CoolTux

Zitat von: Fillip am 20 Juli 2017, 09:35:10
Also, eine .config gibt es nicht, aber eine .cfg, das bleibt aber auch alles kommentarlos:
pi@raspberrypi:/opt/fhem $ /usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg
pi@raspberrypi:/opt/fhem $ ps ax | grep perl
15175 pts/1    S+     0:00 grep --color=auto perl

FHEM scheint halt wirklich nicht zu laufen, komme ja auch auf keinen Port, sei es 8083,8084 drauf :-/

Ja sorry heißt cfg
Habe ich seit Ewigkeiten nicht mehr. Und gibt die Konsole was aus wenn du den Aufruf so machst?
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

CoolTux

Zitat von: rudolfkoenig am 20 Juli 2017, 09:59:04
Was fuer Anfaenger/Unix-Neulinge zwar etwas fremd ist, aber in solchen Faellen immer hilft, ist FHEM mit "attr global logfile -" starten. Hier
  https://forum.fhem.de/index.php/topic,73784.msg660637.html#msg660637
habe ich versucht den Vorgang etwas detaillierter zu beschreiben.

Rudi ich werde das mal im Wiki festhalten. Passiert ja doch öfters mal.
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

Otto123

Zitat von: rudolfkoenig am 20 Juli 2017, 09:59:04
Was fuer Anfaenger/Unix-Neulinge zwar etwas fremd ist, aber in solchen Faellen immer hilft, ist FHEM mit "attr global logfile -" starten. Hier
  https://forum.fhem.de/index.php/topic,73784.msg660637.html#msg660637
habe ich versucht den Vorgang etwas detaillierter zu beschreiben.
Jetzt ist mir klar wie sowas hier passieren konnte: Logfile seit einem halben Jahr leer :)
https://forum.fhem.de/index.php/topic,74272.30.html
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

Otto123

Zitat von: CoolTux am 20 Juli 2017, 10:08:52
Rudi ich werde das mal im Wiki festhalten. Passiert ja doch öfters mal.
Da würde ich dann etwas weiter gehen:
fhem.cfg Kopie erstellen
In der Kopie editieren
Mit der Kopie starten

Dann würde es mit der normalen cfg und einem normalen Start auch wieder "normal" weiter gehen  ;)
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

Fillip

Zitat von: kumue am 20 Juli 2017, 09:53:58
..tippe auf Tippfehler

Berechtigung sind ok ?
Nein, der Telnetport scheint wirklich auf 7072 zu laufen. Berechtigungen habe ich noch nicht überprüft, da habe ich aber keine geändert...


Zitat von: Otto123 am 20 Juli 2017, 09:49:46
Hi,

starte mal die demo mit /usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg.demo

Gesagt  -  getahn:
pi@raspberrypi:/opt/fhem/log $ /usr/bin/perl /opt/fhem/fhem.pl /opt/fhem/fhem.cfg.demo
Can't locate RTypes.pm in @INC (you may need to install the RTypes module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /opt/fhem/fhem.pl line 518.

Fillip

#12
Zitat von: rudolfkoenig am 20 Juli 2017, 09:59:04
Was fuer Anfaenger/Unix-Neulinge zwar etwas fremd ist, aber in solchen Faellen immer hilft, ist FHEM mit "attr global logfile -" starten. Hier
  https://forum.fhem.de/index.php/topic,73784.msg660637.html#msg660637
habe ich versucht den Vorgang etwas detaillierter zu beschreiben.
Habe ich nun auch mal gerade gemacht, folgendes kommt dabei raus:
pi@raspberrypi:/opt/fhem $ perl fhem.pl fhem.cfg
2017.07.20 10:43:33 1: Including fhem.cfg
2017.07.20 10:43:33 3: telnetPort: port 7072 opened
2017.07.20 10:43:37 3: WEB: port 8083 opened
2017.07.20 10:43:37 3: WEBphone: port 8084 opened
2017.07.20 10:43:37 3: WEBtablet: port 8085 opened
2017.07.20 10:43:38 2: eventTypes: loaded 648 events from ./log/eventTypes.txt
2017.07.20 10:43:39 3: OUT.Spritpreis: Defined with URL http://www.clever-tanken.d                                                                                      e/tankstelle_details/48323 and interval 600
2017.07.20 10:43:39 3: OUT.Spritpreis: the attribute readingsName_Diesel should no                                                                                       longer be used. Please use reading01Name syntax instead
2017.07.20 10:43:39 3: OUT.Spritpreis: For most old attributes you can specify ena                                                                                      bleControlSet and then set device upgradeAttributes to automatically modify the co                                                                                      nfiguration
2017.07.20 10:43:39 3: OUT.Spritpreis: the attribute readingsRegex_Diesel should n                                                                                      o longer be used. Please use reading01Regex syntax instead
2017.07.20 10:43:39 3: OUT.Spritpreis: For most old attributes you can specify ena                                                                                      bleControlSet and then set device upgradeAttributes to automatically modify the co                                                                                      nfiguration
2017.07.20 10:43:45 3: [STV] defined with host: 192.168.178.39 port: 55000 MAC: b8                                                                                      :27:eb:c7:1d:4d
2017.07.20 10:43:49 1: Including ./log/fhem.save
2017.07.20 10:43:50 3: Opening Mosquitto device 127.0.0.1:1883
2017.07.20 10:43:51 3: Mosquitto device opened
2017.07.20 10:43:51 1: usb create starting
2017.07.20 10:43:53 3: Probing CUL device /dev/ttyAMA0
2017.07.20 10:43:54 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.07.20 10:43:54 3: Probing ZWDongle device /dev/ttyAMA0
2017.07.20 10:43:55 3: Probing FRM device /dev/ttyAMA0
2017.07.20 10:44:00 1: usb create end
2017.07.20 10:44:00 0: Featurelevel: 5.8
2017.07.20 10:44:00 0: Server started with 159 defined entities (fhem.pl:14634/201                                                                                      7-07-03 perl:5.020002 os:linux user:pi pid:17442)
2017.07.20 10:44:01 3: telnetForBlockingFn_1500540241: port 41487 opened
Illegal instruction

Dann bricht er kurz ab, macht aber gleich weiter mit:
pi@raspberrypi:/opt/fhem $ 2017.07.20 11:05:44 1: BlockingInformParent (BlockingStart): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (BlockingStart): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (BlockingStart): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (BlockingStart): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:44 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:45 1: BlockingInformParent (BlockingStart): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused
2017.07.20 11:05:45 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:33307: IO::Socket::INET: connect: Connection refused


kumue

Zitat von: Fillip am 20 Juli 2017, 10:39:32
Nein, der Telnetport scheint wirklich auf 7072 zu laufen. Berechtigungen habe ich noch nicht überprüft, da habe ich aber keine geändert...

Ich meinte, daß RaspiLED sich vertippt hat... und er wollte sicher wissen, ob ein telnet auf 7072 funktioniert...

Fillip

Zitat von: kumue am 20 Juli 2017, 10:46:48
Ich meinte, daß RaspiLED sich vertippt hat... und er wollte sicher wissen, ob ein telnet auf 7072 funktioniert...
Achso, ups okey  :-X