Raspberry Pi WebUI (manchmal) nicht erreichbar

Begonnen von Tomas, 11 August 2016, 16:28:44

Vorheriges Thema - Nächstes Thema

Tomas

Hallo,

da ich manchmal Pprobleme mit der WebUI habe, habe ich in dem Forum schon mal gesucht und bin auch diesen Thread gestossen.
https://forum.fhem.de/index.php/topic,52438.0.html

Bei mir verhält es sich ähnlich.

Wenn ich den Raspi neu starte kann ich manchmal die Weboberfläche nicht erreichen.
In dem fall ist laut ps -ef eine fhmen instanz gestartet wie es sein soll.

Eine Connection zu <host>:8083/fhem kann hergestellt werden, jedoch sendet der Webserver keine Daten.

Wenn ich dann den fhem-Prozess beende (sudo /etc/init.d/fhem stop geht nicht, nur sudo kill -9 <procid>) und neu starte geht auch die Weboberfläche wieder.

Dieses Verhalten tritt aber nicht bei jedem neustart des Raspi auf.

Ich habe zur Zeit nur 2 Sensoren eingebunden, einen DHT22 und einen DS18B20.

Gibt es evtl. abhängigkeiten bei starten und ich müsste den fhem prozess verzögert starten?

Logfiles und andere Dinge kann ich erst liefern, wenn ich nach Hause komme, aber vielleicht hat ja jemand schon  so eine Idee was es sein könnte.

Gruß
Tomas

P.S. hier mal ein Logfile, wo es passiert ist.

2016.08.11 17:54:07 0: Server shutdown
2016.08.11 17:54:23 1: Including fhem.cfg
2016.08.11 17:54:24 3: telnetPort: port 7072 opened
2016.08.11 17:54:25 3: WEB: port 8083 opened
2016.08.11 17:54:25 3: WEBphone: port 8084 opened
2016.08.11 17:54:25 3: WEBtablet: port 8085 opened
2016.08.11 17:54:25 2: eventTypes: loaded 25 events from ./log/eventTypes.txt
2016.08.11 17:54:28 1: Including ./log/fhem.save
2016.08.11 17:54:28 1: usb create starting
2016.08.11 17:54:31 3: Probing CUL device /dev/ttyAMA0
2016.08.11 17:54:32 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.08.11 17:54:32 3: Probing FRM device /dev/ttyAMA0
2016.08.11 18:08:14 1: Including fhem.cfg
2016.08.11 18:08:15 3: telnetPort: port 7072 opened
2016.08.11 18:08:16 3: WEB: port 8083 opened
2016.08.11 18:08:16 3: WEBphone: port 8084 opened
2016.08.11 18:08:16 3: WEBtablet: port 8085 opened
2016.08.11 18:08:16 2: eventTypes: loaded 25 events from ./log/eventTypes.txt
2016.08.11 18:08:19 1: Including ./log/fhem.save
2016.08.11 18:08:19 1: usb create starting
2016.08.11 18:08:21 3: Probing CUL device /dev/ttyAMA0
2016.08.11 18:08:23 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.08.11 18:08:23 3: Probing FRM device /dev/ttyAMA0


ps -ef :

fhem       572     1 90 18:08 ?        00:06:12 perl fhem.pl fhem.cfg


Aufruf von curl

pi@sensordude:~ $ curl -vv http://localhost:8083
* Rebuilt URL to: http://localhost:8083/
* Hostname was NOT found in DNS cache
*   Trying ::1...
* connect to ::1 port 8083 failed: Verbindungsaufbau abgelehnt
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8083 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:8083
> Accept: */*
>

Danach keine weitere reaktion egal wie lange ich warte


Jetzt das Logfile nach manuellem restart (durch kill und fhem start):

2016.08.11 17:54:07 0: Server shutdown
2016.08.11 17:54:23 1: Including fhem.cfg
2016.08.11 17:54:24 3: telnetPort: port 7072 opened
2016.08.11 17:54:25 3: WEB: port 8083 opened
2016.08.11 17:54:25 3: WEBphone: port 8084 opened
2016.08.11 17:54:25 3: WEBtablet: port 8085 opened
2016.08.11 17:54:25 2: eventTypes: loaded 25 events from ./log/eventTypes.txt
2016.08.11 17:54:28 1: Including ./log/fhem.save
2016.08.11 17:54:28 1: usb create starting
2016.08.11 17:54:31 3: Probing CUL device /dev/ttyAMA0
2016.08.11 17:54:32 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.08.11 17:54:32 3: Probing FRM device /dev/ttyAMA0
2016.08.11 18:08:14 1: Including fhem.cfg
2016.08.11 18:08:15 3: telnetPort: port 7072 opened
2016.08.11 18:08:16 3: WEB: port 8083 opened
2016.08.11 18:08:16 3: WEBphone: port 8084 opened
2016.08.11 18:08:16 3: WEBtablet: port 8085 opened
2016.08.11 18:08:16 2: eventTypes: loaded 25 events from ./log/eventTypes.txt
2016.08.11 18:08:19 1: Including ./log/fhem.save
2016.08.11 18:08:19 1: usb create starting
2016.08.11 18:08:21 3: Probing CUL device /dev/ttyAMA0
2016.08.11 18:08:23 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.08.11 18:08:23 3: Probing FRM device /dev/ttyAMA0
2016.08.11 18:24:39 1: Including fhem.cfg
2016.08.11 18:24:40 3: telnetPort: port 7072 opened
2016.08.11 18:24:41 3: WEB: port 8083 opened
2016.08.11 18:24:41 3: WEBphone: port 8084 opened
2016.08.11 18:24:41 3: WEBtablet: port 8085 opened
2016.08.11 18:24:41 2: eventTypes: loaded 25 events from ./log/eventTypes.txt
2016.08.11 18:24:45 1: Including ./log/fhem.save
2016.08.11 18:24:45 1: usb create starting
2016.08.11 18:24:46 3: Probing CUL device /dev/ttyAMA0
2016.08.11 18:24:47 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2016.08.11 18:24:47 1: usb create end
2016.08.11 18:24:47 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.08.11 18:24:47 0: Featurelevel: 5.7
2016.08.11 18:24:47 0: Server started with 20 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 1171)