Absturz nach Update: Can't connect to localhost:7072

Begonnen von HansDampfHH, 22 Februar 2017, 11:18:57

Vorheriges Thema - Nächstes Thema

HansDampfHH

Ich habe vor ein paar Tagen ein Update von FHEM gemacht und seit dem täglich einen Absturz:

2017.02.22 10:42:28 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7072: IO::Socket::INET: connect: Verbindungsaufbau abgelehnt
2017.02.22 10:42:28 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7072: IO::Socket::INET: connect: Verbindungsaufbau abgelehnt

Danach startet monit bei mir den FHEM-Server neu und alles läuft wieder.
Hat jemand vielleicht einen Hinweis für mich wo das herkommen kann?
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

Wernieman

7072 ist der Telnetport, der ist also scheinbar bei Dir nicht erreichbar.

ABER .. warum, das müstest Du näher debuggen. Woher kommt Deine Meldung?
Startest Du nur fhem oder auch den Server neu?
- 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

HansDampfHH

Klar mit dem Port, warum das passiert weiß ich nur nicht.
Gestern gingen die Lichter nicht an, kurzer Blick ins Terminal und festgestellt...FHEM is not running.

Also doch mal lieber wieder monit eingebunden, damit FHEM automatisch neu gestartet wird.
FHEM raucht also komplett ab. Neu gestartet wird da nur FHEM per /etc/init.fhem start.

Und heute wieder, gleiches Problem, gleiche Meldung im Log.
Wüsste nicht, wie ich da weiter kommen kann. Einzig ein fhem update gemacht.
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

Wernieman

Was steht denn im FHEM-LOg?
Wenn fhem "weg" ist, sind eventuell noch fhem-Prozesse da?

Und .. was sagen die Systemlogs?

Bitte um Input für mehr Output!
- 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

HansDampfHH

Im FHEM Log steht nicht weiter bevor der Absturz kommt.
Heute war das um 10:45, um 10:03 ging die Terrassentür auf. Das war der letzte Eintrag.
Auch im Syslog steht überhaupt nichts im Umkreis einer halben Stunde vor dem Absturz.
Für mich erst einmal leider kein weiterer Hinweis, wo ich ansetzen könnte.
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

Wernieman

Dann hilft nur, verbose erhöhen

Hatte schon mal gefragt:
Du startest nur fhem und nicht den PI durch?
- 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

HansDampfHH

"Neu gestartet wird da nur FHEM per /etc/init.fhem start."

Der NUC wird nicht neu gestartet, nur FHEM.
Ja, muss ich wohl mal erhöhen. Was empfiehlt sich da? 5?
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

HansDampfHH

So, da bin ich wieder. Wie jeden Tag nun der Absturz.
Nun lief aber FHEM komplett mit verbose 5 und siehe da:


2017.02.23 14:58:22 5: PRESENCE (Handy) - ping command returned with output:
PING 192.168.178.22 (192.168.148.22) 56(84) bytes of data.
From 192.168.178.24 icmp_seq=1 Destination Host Unreachable
From 192.168.178.24 icmp_seq=2 Destination Host Unreachable
From 192.168.178.24 icmp_seq=3 Destination Host Unreachable
From 192.168.178.24 icmp_seq=4 Destination Host Unreachable

--- 192.168.178.22 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2999ms
pipe 4
Out of memory!


Hat jemand einen Hinweis dazu?
An der Konfiguration hat sich nichts getan und auch die Maschine (Intel NUC) schwächelt eigentlich nicht.

df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/sda1        36G    5,6G   28G   17% /
udev             10M       0   10M    0% /dev
tmpfs           772M     82M  690M   11% /run
tmpfs           1,9G       0  1,9G    0% /dev/shm
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           1,9G       0  1,9G    0% /sys/fs/cgroup
tmpfs           150M    172K  150M    1% /var/cache/apt/archives
tmpfs            20M       0   20M    0% /var/tmp
tmpfs            70M     27M   44M   38% /var/log
tmpfs           100M     16K  100M    1% /tmp
/dev/sdb1        29G    7,8G   20G   29% /media/backups
tmpfs           386M       0  386M    0% /run/user/1000
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

Wernieman

- 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

HansDampfHH

FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

budy

Schau mal ins Syslog unter /var/log/messages. Da müsste sich zur fraglichen Zeit etwas zum oom-Killer finden.

Gruß,
Stephan
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro

Wernieman

Alternativ /var/log/syslog ... oder /var/log/kern.log

Beim kern.log kann es auch, wenn Du reboot machst, das kern.log.1 sein (oder kern.log.1.gz)
- 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

HansDampfHH

Hm, in /var/log/messages ist die letzte Nachricht um 14:42, also weit vorher und auch nicht spannendes:


Feb 23 14:42:14 HomeServer rsyslogd-2007: action 'action 13' suspended, next retry is Thu Feb 23 14:42:44 2017 [try http://www.rsyslog.com/e/2007 ]


In /var/log/syslog steht in dem Zeitfenster und auch davor gar nichts.
Und kern.log hat Einträge vom 03.12.16!? Da sind auch keine archivierten kern.logs :-(
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink

Wernieman

?? Was hast Du für aktuelle Logs unter /var/log?

Und .... wie voll ist Dein Speicher? (df -h)
- 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

HansDampfHH

"df -h" -> siehe oben, alles gut

/var/log


-rw-r--r-- 1 root              root   38701 Dez  3  2015 alternatives.log
drwxr-x--- 2 root              adm      260 Feb 24 00:17 apache2
drwxr-xr-x 2 root              root      80 Dez  3  2015 apt
-rw-r----- 1 root              adm    23664 Feb 24 18:57 auth.log
-rw------- 1 root              utmp       0 Feb 20 18:06 btmp
-rw-r----- 1 root              adm  3098013 Feb 24 18:57 cronauth.log
drwxr-xr-x 2 root              root     100 Dez  3  2015 cups
-rw-r----- 1 root              adm   176658 Dez  3  2015 daemon.log
-rw-r--r-- 1 root              root     856 Feb 20 18:08 dasher.err
-rw-r--r-- 1 root              root  281512 Feb 23 21:45 dasher.log
-rw-r----- 1 root              adm   160956 Dez  3  2015 debug
-rw-r----- 1 root              adm       31 Dez  3  2015 dmesg
-rw-r--r-- 1 root              root  899354 Feb 20 18:19 dpkg.log
drwxr-s--- 2 Debian-exim       adm       80 Feb 20 18:17 exim4
-rw------- 1 root              root    1533 Feb 20 18:08 fail2ban.log
-rw-r--r-- 1 root              root   32032 Feb 20 18:19 faillog
-rw-r--r-- 1 root              root       0 Feb 20 18:08 fhem.js.error
-rw-r--r-- 1 root              root 3426130 Feb 23 15:03 fhem.js.log
drwxr-xr-x 2 root              root      40 Dez 12  2014 firebird
-rw-r--r-- 1 root              root    2587 Dez  3  2015 fontconfig.log
drwxr-xr-x 2 root              root      80 Dez  3  2015 fsck
drwxr-xr-x 3 root              root      60 Dez  3  2015 hp
drwxr-xr-x 3 root              root     160 Dez  3  2015 installer
-rw-r----- 1 root              adm   675064 Dez  3  2015 kern.log
-rw-rw-r-- 1 root              utmp  292292 Feb 24 18:57 lastlog
drwx--x--x 2 root              root     160 Dez  3  2015 lightdm
-rw-r----- 1 root              adm      282 Feb 20 18:08 mail.err
-rw-r----- 1 root              adm     3185 Feb 24 07:35 mail.info
-rw-r----- 1 root              adm      282 Feb 20 18:08 mail.warn
-rw-r--r-- 1 root              root   71593 Feb 23 14:42 messages
-rw-r--r-- 1 root              root  181442 Feb 24 18:33 minidlna.log
-rw-r----- 1 root              root    2581 Feb 23 21:49 monit.log
drwxr-xr-x 2 mosquitto         root      60 Feb 20 18:19 mosquitto
drwx------ 2 speech-dispatcher root      40 Dez  5  2014 speech-dispatcher
-rw-r----- 1 root              adm  1133038 Feb 24 18:57 syslog
-rw-r----- 1 root              adm  3156087 Feb 23 13:17 syslog.1
-rw-r----- 1 root              adm     2522 Dez  3  2015 user.log
-rw-rw-r-- 1 root              utmp    9600 Feb 24 18:57 wtmp
-rw-r--r-- 1 root              root   32517 Dez  3  2015 Xorg.0.log
-rw-r--r-- 1 root              root   42357 Dez  3  2015 Xorg.0.log.old
FHEM Docker, CUL868, Zigbee, CCU2, Jeelink