[gelöst] FHEM-Webseite kann nicht aufgerufen werden

Begonnen von NehCoy, 27 Mai 2016, 00:50:44

Vorheriges Thema - Nächstes Thema

NehCoy

Hallo zusammen,

ich setzte gerade meinen RPi B+ mit Jessie, FHEM und knxd gerade neu auf.
(In der Hoffnung, dass ich knxd zum laufen bekommen. Aber das ist ein anderes Thema ... )
Mein Problem ist, dass ich die FHEM-Webseite nur einmalig nach der Installation aufrufen konnte. Nach einem Neustart kann auf keinen der Standard-Ports (8083; 8084; 8085) aufgerufen werden.
Die fhem.cfg sieht noch wie folgt aus:
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./log/fhem.save
attr global verbose 3
attr global updateInBackground

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log

define eventTypes eventTypes ./log/eventTypes.txt

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create


Was mache ich falsch?

Vielen Dank für eure Hilfe und viele Grüße
NehCoy

[EDIT:]
Im Logfile sieht man einen Unterschied:
2016.05.26 23:07:52 1: Including fhem.cfg
2016.05.26 23:07:53 3: telnetPort: port 7072 opened
2016.05.26 23:07:54 3: WEB: port 8083 opened
2016.05.26 23:07:54 3: WEBphone: port 8084 opened
2016.05.26 23:07:54 3: WEBtablet: port 8085 opened
2016.05.26 23:07:54 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.26 23:07:54 1: usb create starting
2016.05.26 23:07:56 3: Probing CUL device /dev/ttyAMA0
2016.05.26 23:07:56 3: Can't open /dev/ttyAMA0: Permission denied
2016.05.26 23:07:56 1: usb create end
2016.05.26 23:07:56 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.05.26 23:07:56 0: Featurelevel: 5.7
2016.05.26 23:07:56 0: Server started with 9 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 3291)
2016.05.26 23:08:50 1: Including fhem.cfg
2016.05.26 23:08:50 3: telnetPort: port 7072 opened
2016.05.26 23:08:50 3: WEB: port 8083 opened
2016.05.26 23:08:50 3: WEBphone: port 8084 opened
2016.05.26 23:08:50 3: WEBtablet: port 8085 opened
2016.05.26 23:08:50 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.26 23:08:50 1: Including ./log/fhem.save
2016.05.26 23:08:50 0: Server shutdown
2016.05.26 23:09:04 1: Including fhem.cfg
2016.05.26 23:09:04 3: telnetPort: port 7072 opened
2016.05.26 23:09:05 3: WEB: port 8083 opened
2016.05.26 23:09:05 3: WEBphone: port 8084 opened
2016.05.26 23:09:05 3: WEBtablet: port 8085 opened
2016.05.26 23:09:06 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.26 23:09:06 1: Including ./log/fhem.save
2016.05.26 23:09:06 1: usb create starting
2016.05.26 23:09:10 3: Probing CUL device /dev/ttyAMA0
2016.05.26 23:09:10 3: Can't open /dev/ttyAMA0: Permission denied
2016.05.26 23:09:10 1: usb create end
2016.05.26 23:09:10 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.05.26 23:09:10 0: Featurelevel: 5.7
2016.05.26 23:09:10 0: Server started with 9 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 457)
2016.05.27 00:04:08 0: Server shutdown
2016.05.27 00:04:20 1: Including fhem.cfg
2016.05.27 00:04:21 3: telnetPort: port 7072 opened
2016.05.27 00:04:22 3: WEB: port 8083 opened
2016.05.27 00:04:22 3: WEBphone: port 8084 opened
2016.05.27 00:04:22 3: WEBtablet: port 8085 opened
2016.05.27 00:04:22 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.27 00:04:22 1: Including ./log/fhem.save
2016.05.27 00:04:23 1: usb create starting
2016.05.27 00:04:24 3: Probing CUL device /dev/ttyAMA0
2016.05.27 00:04:25 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.05.27 00:04:25 3: Probing FRM device /dev/ttyAMA0
2016.05.27 00:06:41 1: Including fhem.cfg
2016.05.27 00:06:42 3: telnetPort: port 7072 opened
2016.05.27 00:06:43 3: WEB: port 8083 opened
2016.05.27 00:06:43 3: WEBphone: port 8084 opened
2016.05.27 00:06:43 3: WEBtablet: port 8085 opened
2016.05.27 00:06:43 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.05.27 00:06:44 1: Including ./log/fhem.save
2016.05.27 00:06:44 1: usb create starting
2016.05.27 00:06:45 3: Probing CUL device /dev/ttyAMA0
2016.05.27 00:06:46 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.05.27 00:06:46 3: Probing FRM device /dev/ttyAMA0

Beim ersten mal waren wohl die Rechte nicht ausreichend und das usb create wurde abgebrochen:
2016.05.26 23:07:56 3: Can't open /dev/ttyAMA0: Permission denied
2016.05.26 23:07:56 1: usb create end

Nun hängt es wohl daran...!?

Grüße
NehCoy

[Edit2:]
Ja! - Daran hat es gelegen! Die entsprechende Zeile in der fhem.cfg auskommentiert und es geht:

# Disable this to avoid looking for new USB devices on startup
#define initialUsbCheck notify global:INITIALIZED usb create


Hätte ich ja auch gleich drauf kommen können ... ;-)

Grüße
NehCoy

Wernieman

Nur mal für alle, die auch auf Fehlersuche sind, eine kleine "Anleitung":

1. läuft überhaupt fhem:
ps aux | grep [f]hem

2. lauscht fhem überhaupt auf Netzwerkanfragen
netstat -lntp | grep 808

- 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

NehCoy


wwanao

Vielen Dank für die Lösung.

Ich hatte das gleiche Problem und hatte schon einige Tage damit verbracht herauszufinden, warum ich die Webseiten auf meinem neu aufgesetzten Pi nicht aufrufen kann.

Thomas