Hallo,
habe schon viel gelesen und probiert aber seit einem Update heute ist mein FHEMweb per Browser nicht mehr erreichbar.
War erst der Meinung , dass es an den ssl Zertifikaten liegt aber ohne https funktioniert es nicht.
InitialUSBCheck ist disabled und auch autocreate.
Wenn ich ein Backup einspiele läuft alles.
Wäre echt dankbar für einen Rat.
systemctl status fhem
● fhem.service - FHEM Home Automation
Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: ena
Active: active (running) since Wed 2019-04-03 10:17:17 CEST; 5min ago
Process: 546 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=0/S
Main PID: 606 (perl)
CGroup: /system.slice/fhem.service
└─606 /usr/bin/perl fhem.pl fhem.cfg
Apr 03 10:17:15 Homeserver systemd[1]: Starting FHEM Home Automation...
Apr 03 10:17:17 Homeserver systemd[1]: Started FHEM Home Automation.
In der Log steht auch nichts drinnen:
2019.04.03 10:08:55 0: Server shutdown
2019.04.03 10:08:55 1: Shutdown executed
2019.04.03 10:08:56 1: Including fhem.cfg
2019.04.03 10:08:57 3: telnetPort: port 7072 opened
2019.04.03 10:08:57 3: WEB: port 8083 opened
2019.04.03 10:08:57 3: WEBphone: port 8084 opened
2019.04.03 10:08:57 3: WEBtablet: port 8085 opened
2019.04.03 10:08:57 2: eventTypes: loaded 1655 events from ./log/eventTypes.txt
2019.04.03 10:08:58 3: TelegramBot_Define Telegram: called
2019.04.03 10:09:00 3: Opening CallMonitor device 192.168.178.1:1012
2019.04.03 10:09:00 3: Opening TradfriGW device localhost:1505
2019.04.03 10:09:00 3: TradfriGW device opened
2019.04.03 10:17:17 1: Including fhem.cfg
2019.04.03 10:17:17 3: telnetPort: port 7072 opened
2019.04.03 10:17:18 3: WEB: port 8083 opened
2019.04.03 10:17:18 3: WEBphone: port 8084 opened
2019.04.03 10:17:18 3: WEBtablet: port 8085 opened
2019.04.03 10:17:18 2: eventTypes: loaded 1655 events from ./log/eventTypes.txt
2019.04.03 10:17:20 3: TelegramBot_Define Telegram: called
2019.04.03 10:17:22 3: Opening CallMonitor device 192.168.178.1:1012
2019.04.03 10:17:22 3: Opening TradfriGW device localhost:1505
2019.04.03 10:17:22 3: TradfriGW device opened
1. Was sagt die FHEM Last
ps aux | grep fhem
2. Sind die Port überhaupt offen
netstat -lntp
3. Da bei Dir telnet-Port definiert, ist der erreichbar?
.......
fhem 621 6.0 4.9 54420 49612 ? S 11:05 0:03 /usr/bin/perl fhem.pl fhem.cfg
pi 1300 0.0 0.0 4772 568 pts/0 S+ 11:06 0:00 grep --color=auto fhem
netstat -lntp
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1357 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:5232 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8084 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN -
tcp6 0 0 :::1357 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::631 :::* LISTEN -
tcp6 0 0 :::1883 :::* LISTEN -
tcp6 0 0 :::445 :::* LISTEN -
tcp6 0 0 :::1505 :::* LISTEN -
tcp6 0 0 :::139 :::* LISTEN -
6.0 4.9
Also es praucht CPU und Speicher ... irgendwas läuft da ..
was sagt TELNET?
Mit Putty bekomme ich keine Verbindung
telnet localhost 7072
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hi,
da als letztes dies steht: TradfriGW device opened
Würde ich dort suchen, der loggt als letztes danach läuft er "heiß"
Gruß Otto
Dankeschön
Habe es aus der fhem.cfg genommen. Bringt aber auch nichts.
Früher hatte ich unter "top" immer "pearl" in der Auslastung drinnen. Das fehlt komischerweise nun.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1403 pi 20 0 8640 3156 2680 R 1,0 0,3 0:00.22 top
1 root 20 0 27204 6156 4868 S 0,0 0,6 0:02.27 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/0:0H
6 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq
7 root 20 0 0 0 0 S 0,0 0,0 0:00.02 ksoftirqd/0
8 root 20 0 0 0 0 I 0,0 0,0 0:00.07 rcu_sched
9 root 20 0 0 0 0 I 0,0 0,0 0:00.00 rcu_bh
10 root rt 0 0 0 0 S 0,0 0,0 0:00.06 migration/0
11 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1
13 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/1
14 root 20 0 0 0 0 S 0,0 0,0 0:00.02 ksoftirqd/1
16 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/1:0H
17 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/2
18 root rt 0 0 0 0 S 0,0 0,0 0:00.05 migration/2
19 root 20 0 0 0 0 S 0,0 0,0 0:00.01 ksoftirqd/2
20 root 20 0 0 0 0 I 0,0 0,0 0:00.20 kworker/2:0
21 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/2:0H
22 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/3
23 root rt 0 0 0 0 S 0,0 0,0 0:00.05 migration/3
24 root 20 0 0 0 0 S 0,0 0,0 0:00.00 ksoftirqd/3
26 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/3:0H
27 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs
Aber fhem läuft noch? Sieht eher aus als ob nicht.
ps aux | grep fhem
Eine Idee zur Fehlersuche (aufwendig): Erstmal fhem Service beenden, dann mal mit der demo.cfg starten und probieren.
Dann mit leerer cfg starten und Stück für Stück der alten über Raw Def oder Telnet oder WebClient einfügen und schauen wann das Problem auftaucht.
Für leere cfg habe ich mal was zusammengeschrieben:
https://heinz-otto.blogspot.com/2019/03/eine-weitere-fhem-instanz-auf-gleicher.html
Und für HTTP hab ich mal einen Kommandozeilen Client gemacht.
https://heinz-otto.blogspot.com/2019/02/fhem-http-client.html
Gruß Otto
Also oben hast Du doch keine Fehlermeldung im telnet ... da könntest Du einfach mal "list" eingeben und gucken, ob was kommt ...
Danke für die Hilfen.
Habe folgendes herausgefunden:
Wenn ich mein Ikea Tradfri und den NanoCul deaktiviere funktioniert es wieder.
define nanoCUL868MBUS CUL /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400 1234
setuuid nanoCUL868MBUS 5c759abf-f33f-fd2f-5154-a22d91690a158449
attr nanoCUL868MBUS rfmode WMBus_T
attr nanoCUL868MBUS room Module
attr nanoCUL868MBUS verbose 0
und
define TradfriGW TradfriGateway 192.168.178.56 Sicherheitscode
setuuid TradfriGW 5c650302-f33f-fd2f-186c-454e6f9792e7ad34
attr TradfriGW room Module,Unsorted
define Wohnwand TradfriDevice 65537
setuuid Wohnwand 5c650302-f33f-fd2f-ba4f-e811699a881cb7b7
attr Wohnwand devStateIcon {Color::devStateIcon($name,"dimmer",undef,"state")}
attr Wohnwand eventMap on:ON off:OFF
attr Wohnwand group Beleuchtung
attr Wohnwand icon light_cabinet
attr Wohnwand room Wohnzimmer
attr Wohnwand sortby 5
attr Wohnwand usePercentDimming 1
attr Wohnwand webCmd dimvalue:ON:OFF
Wie gesagt erst nach dem Update. Vorher funktionierts es.
Was mach ich da falsch?
Schöen Grüße,
Karl Heinz
Habe jetzt nochmal einen Start mit verbose 5 geloggt.
Hier ab der Definition des nanoCul´s
2019.04.05 12:17:25 5: Cmd: >define nanoCUL868MBUS CUL /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400 0000<
2019.04.05 12:17:25 5: Loading ./FHEM/00_CUL.pm
2019.04.05 12:17:25 3: Opening nanoCUL868MBUS device /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
2019.04.05 12:17:25 3: Setting nanoCUL868MBUS serial parameters to 38400,8,N,1
2019.04.05 12:17:25 5: SW: V
2019.04.05 12:33:59 5: SW: V
2019.04.05 12:33:59 5: CUL/RAW (ReadAnswer): V 1.67 nanoCUL868
2019.04.05 12:33:59 5: SW: ?
2019.04.05 12:33:59 5: CUL/RAW (ReadAnswer): ? (? is unknown) Use one of A B
2019.04.05 12:33:59 5: CUL/RAW (ReadAnswer): b C e F G K l M R T t V W X x
2019.04.05 12:33:59 3: nanoCUL868MBUS: Possible commands: ABbCeFGKlMRTtVWXx
2019.04.05 12:33:59 5: SW: X21
2019.04.05 12:33:59 5: SW: T01
2019.04.05 12:33:59 5: CUL/RAW (ReadAnswer): 0000
2019.04.05 12:33:59 5: GOT CUL fhtid: 0000
2019.04.05 12:33:59 3: nanoCUL868MBUS device opened
2019.04.05 12:33:59 5: Starting notify loop for nanoCUL868MBUS, 1 event(s), first is CONNECTED
2019.04.05 12:33:59 5: createNotifyHash
2019.04.05 12:33:59 5: Triggering Karlheinz_anwesend_notify
2019.04.05 12:33:59 4: Karlheinz_anwesend_notify exec { if (ReadingsVal("FritzBox", "mac_38_71_DE_B1_DA_C8", "inactive") eq "inactive")
{
fhem("set KarlHeinz absent");;
}
else
{
fhem("set KarlHeinz home");;
}
}
2019.04.05 12:33:59 5: Cmd: >{ if (ReadingsVal("FritzBox", "mac_38_71_DE_B1_DA_C8", "inactive") eq "inactive")
{
fhem("set KarlHeinz absent");
}
else
{
fhem("set KarlHeinz home");
}
}
<
2019.04.05 12:33:59 5: Cmd: >set KarlHeinz absent<
2019.04.05 12:33:59 2: ROOMMATE set KarlHeinz absent
2019.04.05 12:33:59 4: ROOMMATE KarlHeinz: implicit location change caused by state absent