FHEM Webinterface nicht erreichbar

Begonnen von djsirius, 15 Oktober 2020, 14:27:47

Vorheriges Thema - Nächstes Thema

djsirius

ja, ich habe das System 2 mal rebootet.

Wernieman

Und was ist mit dem erbetendem List?

Was war das letzte, was Du vor dem Problem gemacht hast?
- 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

djsirius


2020.10.16 11:18:00 1: Including fhem.cfg
2020.10.16 11:18:00 3: WEB: port 8083 opened
2020.10.16 11:18:00 2: eventTypes: loaded 288 events from ./log/eventTypes.txt
2020.10.16 11:18:00 3: telnetPort: port 7072 opened
2020.10.16 11:18:01 3: TelegramBot_Define teleBot: called
2020.10.16 11:18:01 3: Opening myJeeLink device /dev/ttyUSB0
2020.10.16 11:18:01 3: Setting myJeeLink serial parameters to 57600,8,N,1
2020.10.16 11:18:02 3: myJeeLink device opened
2020.10.16 11:18:03 3: vitoconnect - Passwort war bereits gespeichert
2020.10.16 11:18:04 3: PCA301_26D988: I/O device is myJeeLink
2020.10.16 11:18:04 3: PCA301_26D94C: I/O device is myJeeLink
2020.10.16 11:18:04 1: Including ./log/fhem.save
2020.10.16 11:18:04 0: Featurelevel: 6
2020.10.16 11:18:04 0: Server started with 22 defined entities (fhem.pl:22935/2020-10-07 perl:5.024001 os:linux user:fhem pid:5047)
2020.10.16 11:18:22 1: /dev/ttyUSB0 disconnected, waiting to reappear (myJeeLink)
2020.10.16 11:18:23 3: Setting myJeeLink serial parameters to 57600,8,N,1
2020.10.16 11:18:24 1: /dev/ttyUSB0 reappeared (myJeeLink)


so sieht mein Log nach einem restart aus.

ich habe soweit alles gemacht.

Wernieman

Das ist das komplette aktuelle Log? Und FHEM hört immer noch nicht?

Bitte auf der Konsole als root (oder mit sudo):
ps aux | grep fhem
netstat -lntp
- 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

djsirius

Zitat von: Wernieman am 16 Oktober 2020, 11:16:15
Und was ist mit dem erbetendem List?

Was war das letzte, was Du vor dem Problem gemacht hast?

das ist sooo lange her, dass ich schon nicht mehr weiß, was das war. Das System läuft ja schon 3 Jahre. Und weil IOBroker keine Daten mehr von Fhem übermittelt bekommen hat, erst da habe ich bemerkt, dass FHEM nicht mehr läuft, bzw. nach einem restart nur kurz läuft.

djsirius

Zitat von: Wernieman am 16 Oktober 2020, 11:23:21
Das ist das komplette aktuelle Log? Und FHEM hört immer noch nicht?

Bitte auf der Konsole als root (oder mit sudo):
ps aux | grep fhem
netstat -lntp


root@ioBroker-RasPi:/home/pi# ps aux | grep fhem
fhem      5047 69.5  5.1  54456 48464 ?        R    11:17   5:43 /usr/bin/perl f hem.pl fhem.cfg
root      5362  0.0  0.0   4772   528 pts/1    S+   11:26   0:00 grep fhem
root@ioBroker-RasPi:/home/pi# netstat -lntp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State        PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN       577/sshd
tcp        0      0 0.0.0.0:7072            0.0.0.0:*               LISTEN       5047/perl
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN       586/redis-server 12
tcp        3      0 0.0.0.0:8083            0.0.0.0:*               LISTEN       5047/perl
tcp6       0      0 :::22                   :::*                    LISTEN       577/sshd
tcp6       0      0 :::3306                 :::*                    LISTEN       668/mysqld

CoolTux

tcp        3      0 0.0.0.0:8083            0.0.0.0:*               LISTEN       5047/perl

Scheint da zu sein.
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

djsirius

Ja, ich kann ja auch die IP pingen. Ich bin echt verzweifelt!

sudo service fhem status
● fhem.service - FHEM Home Automation
   Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: ena
   Active: active (running) since Fri 2020-10-16 11:50:05 CEST; 4min 7s ago
  Process: 573 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=0/S
Main PID: 643 (perl)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/fhem.service
           └─643 /usr/bin/perl fhem.pl fhem.cfg

Okt 16 11:50:04 ioBroker-RasPi systemd[1]: Starting FHEM Home Automation...
Okt 16 11:50:05 ioBroker-RasPi systemd[1]: Started FHEM Home Automation.

CoolTux

Und wie ist die Auslastung?
Kannst Du bitte einmal ein top machen und schauen wie der perl Prozess ausgelastet ist.
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

djsirius

 608 iobroker  20   0  159432  53784  25044 S   1,6  5,7   0:11.26 iobroker.js-con
  866 iobroker  20   0  145568  42084  25248 S   1,3  4,4   0:25.17 io.jeelink.0
1380 pi        20   0    8656   3312   2756 R   1,3  0,3   0:00.17 top
  643 fhem      20   0   54724  48600   7260 S   1,0  5,1   0:08.87 perl
    1 root      20   0   28052   6044   4932 S   0,3  0,6   0:02.46 systemd
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 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
    7 root      20   0       0      0      0 I   0,0  0,0   0:00.08 kworker/u8:0-ev
    8 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 mm_percpu_wq
    9 root      20   0       0      0      0 S   0,0  0,0   0:00.08 ksoftirqd/0
   10 root      20   0       0      0      0 I   0,0  0,0   0:01.03 rcu_sched
   11 root      20   0       0      0      0 I   0,0  0,0   0:00.00 rcu_bh
   12 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/0
   13 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/0
   14 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/1
   15 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/1
   16 root      20   0       0      0      0 S   0,0  0,0   0:00.01 ksoftirqd/1
   19 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/2
   20 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/2
   21 root      20   0       0      0      0 S   0,0  0,0   0:00.05 ksoftirqd/2
   23 root       0 -20       0      0      0 I   0,0  0,0   0:00.29 kworker/2:0H-kb
   24 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/3
   25 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/3
   26 root      20   0       0      0      0 S   0,0  0,0   0:00.01 ksoftirqd/3
   29 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kdevtmpfs
   30 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 netns
   31 root      20   0       0      0      0 I   0,0  0,0   0:00.62 kworker/0:1-eve
   34 root      20   0       0      0      0 S   0,0  0,0   0:00.00 khungtaskd
   35 root      20   0       0      0      0 S   0,0  0,0   0:00.00 oom_reaper
   36 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 writeback
   37 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kcompactd0
   38 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 crypto
   39 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kblockd
   40 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 watchdogd
   41 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 rpciod
   42 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kworker/u9:0-hc
   43 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 xprtiod
   46 root      20   0       0      0      0 S   0,0  0,0   0:00.44 kswapd0
   47 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 nfsiod
   58 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kthrotld
   59 root      20   0       0      0      0 I   0,0  0,0   0:00.05 kworker/3:1-eve
   60 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 iscsi_eh
   61 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 dwc_otg
   62 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 DWC Notificatio
   63 root       1 -19       0      0      0 S   0,0  0,0   0:00.00 vchiq-slot/0
   64 root       1 -19       0      0      0 S   0,0  0,0   0:00.00 vchiq-recy/0
   65 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 vchiq-sync/0
   66 root      20   0       0      0      0 S   0,0  0,0   0:00.00 vchiq-keep/0
   67 root      10 -10       0      0      0 S   0,0  0,0   0:00.00 SMIO
   69 root     -51   0       0      0      0 S   0,0  0,0   0:00.01 irq/86-mmc1
   70 root      20   0       0      0      0 I   0,0  0,0   0:00.35 kworker/2:3-eve
   72 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 mmc_complete
   74 root       0 -20       0      0      0 I   0,0  0,0   0:01.13 kworker/0:1H-kb
   75 root       0 -20       0      0      0 I   0,0  0,0   0:00.13 kworker/1:1H-kb
   76 root      20   0       0      0      0 S   0,0  0,0   0:00.02 jbd2/mmcblk0p2-
   77 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 ext4-rsv-conver
   79 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 ipv6_addrconf
   91 root       0 -20       0      0      0 I   0,0  0,0   0:00.17 kworker/3:1H-kb
  101 root      20   0       0      0      0 I   0,0  0,0   0:00.00 kworker/0:2-eve
  107 root      20   0   35100   4612   4188 S   0,0  0,5   0:00.72 systemd-journal
  138 root      20   0   14584   3364   2624 S   0,0  0,4   0:00.65 systemd-udevd
  158 root      20   0       0      0      0 I   0,0  0,0   0:00.02 kworker/u8:2-ev
  212 root      10 -10       0      0      0 S   0,0  0,0   0:00.00 SMIO

CoolTux

scheint sich zu lanweilen der Prozess.
Langsam gehen mir da die Ideen aus, zumal das wohl immer nach einer Minute erst passiert wenn ich Dich richtig verstanden habe.
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

djsirius

Kann es denn sein, dass es an dem Jeelink USB Stick liegt?

CoolTux

Zitat von: djsirius am 16 Oktober 2020, 12:15:01
Kann es denn sein, dass es an dem Jeelink USB Stick liegt?

Möchte ich nicht ausschließen. Kannst Du ihn mal abziehen sollte er angeschlossen sein.
Oder Du entfernst ihn zur Not erstmal aus der Konfig. Kopier Dir die Zeilen irgendwo hin oder mach eine Kopie der Konfig vorher.
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

djsirius

ich habe die Abfrage nochmal gemacht, nachdem Fhem nicht mehr erreichbar war:
Hat sich da was geändert?


root@ioBroker-RasPi:/home/pi# ps aux | grep fhem
fhem       643 14.8  5.2  55696 49316 ?        R    11:50   4:00 /usr/bin/perl f                                     hem.pl fhem.cfg
root      2038  0.0  0.0   4772   568 pts/0    S+   12:17   0:00 grep fhem
root@ioBroker-RasPi:/home/pi# netstat -lntp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State                                            PID/Program name
tcp        0      0 0.0.0.0:8083            0.0.0.0:*               LISTEN                                           643/perl
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN                                           592/sshd
tcp        0      0 0.0.0.0:7072            0.0.0.0:*               LISTEN                                           643/perl
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN                                           598/redis-server 12
tcp6       0      0 :::22                   :::*                    LISTEN                                           592/sshd
tcp6       0      0 :::3306                 :::*                    LISTEN                                           680/mysqld



root@ioBroker-RasPi:/home/pi# top
top - 12:20:34 up 31 min,  1 user,  load average: 1,02, 0,94, 0,60
Tasks: 110 total,   3 running,  60 sleeping,   0 stopped,   0 zombie
%Cpu(s): 26,2 us,  0,1 sy,  0,0 ni, 73,5 id,  0,0 wa,  0,0 hi,  0,2 si,  0,0 st
KiB Mem :   948300 total,   136280 free,   264244 used,   547776 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   613852 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
  643 fhem      20   0   55696  49316   7260 R 100,0  5,2   7:24.09 perl
  789 iobroker  20   0  153756  54304  25140 S   3,0  5,7   0:45.58 io.enigma2.0
  608 iobroker  20   0  170480  55864  25352 S   0,3  5,9   0:27.59 iobroker.js-con
  855 iobroker  20   0  150616  47184  25180 R   0,3  5,0   0:09.45 io.zigbee.3
    1 root      20   0   28052   6044   4932 S   0,0  0,6   0:02.68 systemd
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 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
    7 root      20   0       0      0      0 I   0,0  0,0   0:00.08 kworker/u8:0-ev
    8 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 mm_percpu_wq
    9 root      20   0       0      0      0 S   0,0  0,0   0:00.34 ksoftirqd/0
   10 root      20   0       0      0      0 I   0,0  0,0   0:02.18 rcu_sched
   11 root      20   0       0      0      0 I   0,0  0,0   0:00.00 rcu_bh
   12 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/0
   13 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/0
   14 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/1
   15 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/1


CoolTux

Ok ich bin davon ausgegangen das Du die Abfragen immer machst wenn das Problem auf taucht. Ansonsten braucht man die ja nicht.

643 fhem      20   0   55696  49316   7260 R 100,0  5,2   7:24.09 perl

CPU Belastung 100% für FHEM, irgendwas blockiert also Dein FHEM. Hast Du ganz sicher das von Otto angesprochene abschließen können?
Mach mal bitte

grep "attr initialUsbCheck" /opt/fhem/fhem.cfg

Und zeige hier die Ausgabe.
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