Hallo,
ich hoffe ich bin jetzt hier im richtigen Thread, ansonsten verjagt mich bitte.
Ich habe jetzt festgestellt, dass ich meine Proxmox-Maschine nicht mehr sauber neustarten kann, proxmox rennt in einen Timeout, auch das Neustarten innerhalb der vm mittels "shutdown -r now" bzw. "reboot" dauert ewig. Ich habe micht jetzt ein wenig auf die Suche begeben und vermute fhempy als Ursache. Zumindest lässt:
journalctl -rb -1
darauf schließen, hier mal der relevante Teil...(Von unten nach oben ist die richtige Reihenfolge!)
May 26 20:41:09 fhem systemd[1]: Stopped FHEM Home Automation.
May 26 20:41:09 fhem systemd[1]: fhem.service: Failed with result 'timeout'.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40873 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40861 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40857 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40827 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4776 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4775 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4772 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4766 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4637 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: State 'stop-final-sigterm' timed out. Killing.
irgendwie scheinen die python-Prozesse beharrlich das "bitte stop" zu ignorieren und warten auf "kill -f", das würde ich gern irgendwie abstellen, habt ihr Ansätze wo das Problem liegen könnte?
In der Datei "/etc/systemd/system.conf" ist der Parameter "DefaultTimeoutStopSec=120s" eingestellt, das ist so gewollt, am Ende spielt es keine Rolle ob ich 120s oder 300s Eintrage, die python-Prozesse warten beharrlich auf das Timeout.
Es könnte sicher auch nicht schaden noch ein list vom pyBinding-Device zu posten:
Internals:
BindingType Python
DEF Python
DeviceName ws:127.0.0.1:15733
FD 58
FUUID 5fca276b-f33f-1dd6-f9e1-19062dfa87ed420c
IP 127.0.0.1
NAME pyBinding
NR 170
NTFY_ORDER 50-pyBinding
PARTIAL
PORT 15733
STATE opened
TYPE BindingsIo
WEBSOCKET 1
localBinding 1
nextOpenDelay 10
Helper:
DBLOG:
hostname:
logdb:
TIME 1653590509.50736
VALUE fhem
os:
logdb:
TIME 1653590509.47941
VALUE posix
python:
logdb:
TIME 1653590509.49973
VALUE 3.8.10
release:
logdb:
TIME 1653590509.50152
VALUE 5.4.0-113-generic
state:
logdb:
TIME 1653590509.56277
VALUE CONNECTED
system:
logdb:
TIME 1653590509.47641
VALUE Linux
version:
logdb:
TIME 1653590509.47469
VALUE 0.1.358
READINGS:
2022-05-26 20:41:49 hostname fhem
2021-05-30 20:04:44 info ready
2022-05-26 20:41:49 os posix
2022-05-26 20:41:49 python 3.8.10
2022-05-26 20:41:49 release 5.4.0-113-generic
2022-05-26 20:41:49 state opened
2022-05-26 20:41:49 system Linux
2022-05-26 20:41:49 version 0.1.358
args:
pyBinding
BindingsIo
Python
argsh:
Attributes:
devStateIcon { my $status_img = "10px-kreis-gruen";; my $status_txt = "connected";; if (ReadingsVal($name, "state", "disconnected") eq "disconnected") { $status_img = "10px-kreis-rot";; $status_txt = "disconnected";; } my $ver = ReadingsVal($name, "version", "-");; "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>" }
group fhempy
icon file_json-ld2
room fhempy
verbose 0
Viele Grüße
Andreas