FHEM Service hängt sich auf

Begonnen von Andreasgs, 29 März 2019, 08:11:49

Vorheriges Thema - Nächstes Thema

Andreasgs

Hallo Zusammen,

Ich weis nicht, ob ich in dem Unterforum mit meiner Frage richtig bin.

Mir ist es jetzt schon zweimal passiert, dass auf meinem Ubuntu der FHEM - Service zwar lief (Systemctl liefert beim Status "active"), die FHEM Seite aber nicht erreichbar war. Per Systemctl hab ich den Service gestoppt und neu gestartet und siehe da, es geht wieder.

andreas@Ubuntu180401FHEM:~$ sudo systemctl status fhem
[sudo] Passwort für andreas:
● fhem.service - LSB: FHEM server
   Loaded: loaded (/etc/init.d/fhem; generated)
   Active: active (exited) since Fri 2019-03-22 08:27:40 CET; 6 days ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/fhem.service

Warning: Journal has been rotated since unit was started. Log output is incomple

andreas@Ubuntu180401FHEM:~$ sudo systemctl stop fhem
andreas@Ubuntu180401FHEM:~$ sudo systemctl status fhem
● fhem.service - LSB: FHEM server
   Loaded: loaded (/etc/init.d/fhem; generated)
   Active: failed (Result: exit-code) since Fri 2019-03-29 07:58:26 CET; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11088 ExecStop=/etc/init.d/fhem stop (code=exited, status=1/FAILURE)

Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: Stopping LSB: FHEM server...
Mär 29 07:58:26 Ubuntu180401FHEM fhem[11088]: Stopping fhem...
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: fhem.service: Control process exite
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: fhem.service: Failed with result 'e
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: Stopped LSB: FHEM server.
Warning: Journal has been rotated since unit was started. Log output is incomple
...skipping...
● fhem.service - LSB: FHEM server
   Loaded: loaded (/etc/init.d/fhem; generated)
   Active: failed (Result: exit-code) since Fri 2019-03-29 07:58:26 CET; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11088 ExecStop=/etc/init.d/fhem stop (code=exited, status=1/FAILURE)

Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: Stopping LSB: FHEM server...
Mär 29 07:58:26 Ubuntu180401FHEM fhem[11088]: Stopping fhem...
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: fhem.service: Control process exite
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: fhem.service: Failed with result 'e
Mär 29 07:58:26 Ubuntu180401FHEM systemd[1]: Stopped LSB: FHEM server.
Warning: Journal has been rotated since unit was started. Log output is incomple
~
~
~
~
~
~
~
~
~
~
~

andreas@Ubuntu180401FHEM:~$ sudo systemctl start fhem
andreas@Ubuntu180401FHEM:~$ sudo systemctl status fhem
● fhem.service - LSB: FHEM server
   Loaded: loaded (/etc/init.d/fhem; generated)
   Active: active (running) since Fri 2019-03-29 07:58:39 CET; 9min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11088 ExecStop=/etc/init.d/fhem stop (code=exited, status=1/FAILURE)
  Process: 11102 ExecStart=/etc/init.d/fhem start (code=exited, status=0/SUCCESS)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/fhem.service
           └─11107 perl fhem.pl fhem.cfg

Mär 29 07:58:39 Ubuntu180401FHEM systemd[1]: Starting LSB: FHEM server...
Mär 29 07:58:39 Ubuntu180401FHEM fhem[11102]: Starting fhem...
Mär 29 07:58:39 Ubuntu180401FHEM systemd[1]: Started LSB: FHEM server.


In einem der letzten Logeinträge bevor die Lücke bis zum neustart in der Timeline kommt lautet: "Timeout for SYSMON_blockingCall reached, terminated process 2782".

Hat jemand schonmal ein solches Problem gehabt? Was kann ich tun, damit ich mehr Infos bzgl. des Ausfalls bekomme?

Grüße,
Andreas

Wernieman

Vor dem stoppen/starten sich mal den Prozess anschauen.
- CPU Last
- Memory
- .-.....

Ich würde aber normalerweise auf "blocking" Tippen, d.h. Du hast eine "non-blocking" Abfrage, die auf einen TimeOut wartet und damit FHEM einfrieren lässt (FHEM ist im Normalfall Single-Threaded). Auf dieese Blocking würdes Du mit "freez" kommen ....
- 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