[gelöst]Fhem Oberfläche nicht mehr erreichbar

Begonnen von Kellerkind86, 07 August 2021, 20:54:08

Vorheriges Thema - Nächstes Thema

Kellerkind86

Hallo, ich habe das Problem, dass ich im Browser fhem nicht mehr erreiche..
gestern war es auch kurz weg...dann ging es wieder..
woran kann das liegen ?

bis eben hat sich nichts getan.. jetzt bekomme ich etwas...siehe Bild..

hab auch mal mit putty den status von fhem geprüft.
● fhem.service - FHEM Home Automation
   Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: ena
   Active: active (running) since Sat 2021-08-07 20:43:55 CEST; 4min 10s ago
  Process: 643 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=0/S
Main PID: 651 (perl)
    Tasks: 9 (limit: 4915)
   CGroup: /system.slice/fhem.service
           ├─651 /usr/bin/perl fhem.pl fhem.cfg
           ├─717 node /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg -a xx:xx
           └─789 /usr/bin/perl fhem.pl fhem.cfg

Aug 07 20:43:55 raspberrypi-FHEM systemd[1]: Starting FHEM Home Automation...
Aug 07 20:43:55 raspberrypi-FHEM systemd[1]: Started FHEM Home Automation.


Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

frober

Wie sieht die Auslastung von Fhem aus?
Hast du das einmal mit top in der Konsole angeschaut.
Vermutlich kommen die Daten zu langsam oder verspätete an.
Kann auch an Freezes liegen...
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Kellerkind86


mhmm.. meinst du das hier ?

pi@raspberrypi-FHEM:~ $ top
top - 21:20:37 up 36 min,  1 user,  load average: 1.00, 1.00, 0.95
Tasks: 125 total,   2 running, 123 sleeping,   0 stopped,   0 zombie
%Cpu(s): 21.3 us,  4.2 sy,  0.0 ni, 74.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3827.3 total,   2913.2 free,    192.8 used,    721.3 buff/cache
MiB Swap:    100.0 total,    100.0 free,      0.0 used.   3495.5 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  651 fhem      20   0  105352  95944   8124 R 100.0   2.4  35:24.17 perl
   12 root      20   0       0      0      0 I   0.3   0.0   0:03.31 rcu_sched
  398 avahi     20   0    5900   2932   2616 S   0.3   0.1   0:01.86 avahi-dae+
  573 root       0 -20       0      0      0 I   0.3   0.0   0:01.41 kworker/u+
  652 root      20   0   37976  12680   4148 S   0.3   0.3   0:11.66 lepresenc+
1024 pi        20   0   10188   2800   2440 R   0.3   0.1   0:00.21 top
    1 root      20   0   33716   8128   6508 S   0.0   0.2   0:04.19 systemd
    2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd
    3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
    4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
    8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu+
    9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks+
   10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks+
   11 root      20   0       0      0      0 S   0.0   0.0   0:00.17 ksoftirqd+
   13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration+
   14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
   15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

frober

#3
Ja, du hast 100% Auslastung in Fhem.

Was sagt das Log, irgendwo ist evtl.  eine Endlosschleife oder etwas blockiert.

Es gab vor kurzem einen ähnlichen Thread, muss ich erst suchen...

Nachtrag:
Post #4 von Otto
https://forum.fhem.de/index.php?topic=122238.new;topicseen#new
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Kellerkind86

mhmm.okay..ich hab grad nochmal geschaut..fhem läuft wieder..
eventmonitor:
2021.08.07 22:34:22 4 : HMCCU: [d_ccu : 1582] Build URL = http://192.168.178.50:8181/tclrega.exe
2021.08.07 22:34:22 5 : HttpUtils url=http://192.168.178.50:8181/tclrega.exe Blocking
2021.08.07 22:34:22 5 : HttpUtils request header: POST /tclrega.exe HTTP/1.0 Host: 192.168.178.50:8181 User-Agent: fhem Accept-Encoding: gzip,deflate Content-Length: 340 Content-Type: application/x-www-form-urlencoded
2021.08.07 22:34:22 4 : http://192.168.178.50:8181/tclrega.exe: HTTP response code 200
2021.08.07 22:34:22 5 : HttpUtils http://192.168.178.50:8181/tclrega.exe: Got data, length: 1320
2021.08.07 22:34:22 5 : HttpUtils response header: HTTP/1.0 200 OK Accept-Ranges: bytes Cache-Control: private, no-cache, must-revalidate, no-transform, max-age=0 Content-Type: text/xml; charset=iso-8859-1 Content-Length: 1320 Date: Sat, 07 Aug 2021 20:34:22 GMT X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Robots-Tag: none X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: no-referrer Connection: close


kA..weiß nicht ob hier das Problem liegt.

Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Kellerkind86

#5
hab jetzt versucht was zu löschen und zu speichern..
bekomme aber jetzt WriteStatefile: Cannot open ./log/fhem.save: Permission denied

okay..irgendwas müllt mein log voll..

finde auch links nicht mehr meinen logfile..
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Otto123

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

Kellerkind86

okay..
Zitat von: Otto123 am 07 August 2021, 22:51:38
https://wiki.fhem.de/wiki/FHEM_startet_nicht_-_Tipps_zur_Fehlersuche
Punkt 3

übrigens geht es auch ohne putty
https://wiki.fhem.de/wiki/Hilfe!_Mein_FHEM_funktioniert_nicht!#Anmeldung_via_ssh_.28OS_X.2FLinux.2FWindows_10.29

hier :
pi@raspberrypi-FHEM:~ $ ls -la /opt/fhem/
insgesamt 1356
drwxr-xr-x 13 fhem dialout   4096 Feb 10 22:05 .
drwxr-xr-x  4 root root      4096 Feb  7 22:17 ..
drwx------  2 fhem dialout   4096 Feb  7 23:56 .alexa
-rw-r--r--  1 fhem dialout    311 Feb  7 23:53 alexa-fhem.cfg
drwxr-xr-x  3 fhem dialout   4096 Feb 10 22:05 cache
-rw-r--r--  1 fhem dialout 361953 Apr 30 22:11 CHANGED
-rw-r--r--  1 fhem dialout  41645 Apr 30 22:11 configDB.pm
drwxr-xr-x 46 fhem dialout   4096 Feb  7 22:17 contrib
drwxr-xr-x  3 fhem dialout   4096 Feb  7 22:17 demolog
drwxr-xr-x  4 fhem dialout   4096 Feb  7 22:17 docs
drwxr-xr-x  6 fhem dialout  36864 Apr 30 23:15 FHEM
-rw-r--r--  1 fhem dialout 548583 Aug  7 12:57 fhem.cfg
-rw-r--r--  1 fhem dialout  25544 Jan 26  2020 fhem.cfg.demo
-rwxr-xr-x  1 fhem dialout 168091 Apr 30 22:11 fhem.pl
-rw-r--r--  1 fhem dialout  18092 Feb  7 22:32 GPL_V2.txt
drwxr-xr-x  3 fhem dialout   4096 Feb  7 22:32 lib
drwxr-xr-x  2 fhem dialout  69632 Aug  7 12:57 log
-rw-r--r--  1 fhem dialout  43180 Apr 30 22:11 MAINTAINER.txt
-rw-r--r--  1 fhem dialout    935 Jan 26  2020 README_DEMO.txt
drwxr-xr-x  4 fhem dialout   4096 Feb  7 22:36 restoreDir
drwx------  2 fhem dialout   4096 Feb  7 23:56 .ssh
drwxr-xr-x 10 fhem dialout   4096 Apr  1 23:15 www
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

frober

Das sieht gut aus, evtl. noch in den Unterverzeichnissen...

Schaue dir erst mit ssh das Log an...evtl. sieht man da etwas...
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Kellerkind86

hier die letzten einträge..
irgendwas läuft gewaltig falsch bei mir  ::)

pi@raspberrypi-FHEM:~ $ tail -n 20 /opt/fhem/log/fhem-$(date '+%Y-%m').log
2021.08.07 22:04:44 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:45 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:46 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:47 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:48 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:49 2: HMCCU: [d_ccu : 651] HMScript failed. http://192.168.178.                                                        50:8181/tclrega.exe: Can't connect(1) to http://192.168.178.50:8181: IO::Socket:                                                        :INET: Too many open files
2021.08.07 22:04:50 3: [echo] [echodevice_LostConnect] connection error = gethos                                                        tbyname layla.amazon.de failed / set loginerror to 2
2021.08.07 22:04:50 3: [echo] [echodevice_setState] to connected but loginerror
2021.08.07 22:04:50 0: Server shutdown
2021.08.07 22:04:50 1: HMCCU: [d_ccu : 651] Graceful shutdown
2021.08.07 22:40:50 1: Including fhem.cfg
2021.08.07 22:40:50 1: WEB: Can't open server port at 8083: Address already in u                                                        se. Exiting.
2021.08.07 22:40:51 1: Including fhem.cfg
2021.08.07 22:40:51 1: WEB: Can't open server port at 8083: Address already in u                                                        se. Exiting.
2021.08.07 22:40:52 1: Including fhem.cfg
2021.08.07 22:40:52 1: WEB: Can't open server port at 8083: Address already in u                                                        se. Exiting.
2021.08.07 22:40:53 1: Including fhem.cfg
2021.08.07 22:40:53 1: WEB: Can't open server port at 8083: Address already in u                                                        se. Exiting.
2021.08.07 22:40:53 1: Including fhem.cfg
2021.08.07 22:40:54 1: WEB: Can't open server port at 8083: Address already in u                                                        se. Exiting.
pi@raspberrypi-FHEM:~ $
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

Kellerkind86

also die 192.168.178.50 ist die hmccu... echt mal komisch..
jetzt komm ich auch nicht mehr auf fhem..
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

frober

Im Wiki Punkt 5, etwas unten neue Möglichkeit.
Dann siehst du den Start in der Konsole.

Davor sicherstellen, dass kein Fhem-Prozess mehr läuft.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Kellerkind86

Okay, habe jetzt ins fhem verzeichnis gewechselt..
fhem startet wieder..
Zitat von: frober am 07 August 2021, 23:23:42

Davor sicherstellen, dass kein Fhem-Prozess mehr läuft.
Sorry, wie mache ich das ?
Sorry..ich steh aufm Schlauch..
ich denke..ich weiß wer das Problem macht..aber wieso weiß ich nicht genau... die homematic zentrale..
komm ich aber heute nicht mehr dran,da das ding auf dem speicher liegt.
aber wie bekomme ich es wieder hin.. :(
Hardware in Nutzung: Fritzbox7490,RP4,nanoCUL868,sonoff(mini),shelly(2.5)

frober

Mitps ax | grep fhem
bekommst du die PID und siehst auch ob mehrere Prozesse laufen.

Mit kill <PID> beendest du die einzelnen Prozesse.

Wenn du sicher bist mit der HM Zentrale, dann deaktivieren diese zuerst in Fhem mit disable o.ä. ( ich habe kein HM) und teste ob Fhem dann problemlos läuft.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Wernieman

Und prüfe bitte mal, ob Du noch Platz auf dem Rechner hast. Kannst Du auf der Console mit "du -sh"
- 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