Hallo Community,
seit etwa drei Wochen bemerke ich, dass ein Raum im FHEMWEB nicht korrekt vom Browser wiedergegeben wird - hier wird der Seitenquelltext von Chrome angezeigt.
Wenn ich auf aktualisieren klicke wird wieder alles richtig angezeigt, leider ist auch kein Muster erkennbar.
Es handelt sich um die Darstellung meiner Wärmepumpe.
Im Raum sind zwei Dummys, zwei DOIFs, eine readingsGroup, eine ReadingsHistory und ein Plot vorhanden...
Was kann ich tun um das problem zu beheben? Welche weiteren Informationen werden benötigt um die fehlersuche einzugrenzen?
Ich bin etwas ratlos und hoffe das mir jemand helfen kann.
Danke schonmal..
Drücke im Browser F12 (Entwicklerhilfe) und gehe auf den Reiter für Netzwerk.
Danach lade die Seite des Raumes und schaue welche Fehler (rot) auf dem Netzwerkreiter kommen.
Leider keine roten Einträge im Fehlerfall...
https://www.dropbox.com/s/o2g4s3g7izv8d9t/Screenshot%202018-10-31%2010.17.08.png?dl=0 (https://www.dropbox.com/s/o2g4s3g7izv8d9t/Screenshot%202018-10-31%2010.17.08.png?dl=0)
ohne Fehler schauts so aus..
https://www.dropbox.com/s/w0ue1mzlkpo3ra2/Screenshot%202018-10-31%2010.18.34.png?dl=0 (https://www.dropbox.com/s/w0ue1mzlkpo3ra2/Screenshot%202018-10-31%2010.18.34.png?dl=0)
Wie schaut es mit unterschiedlichen Browsern aus?
Chrome, Firefox
Ich nutze eigentlich ausschliesslich Chrome...
oder Safari vom iPad aus - auf dem iPad habe ich das Phänomen noch nie beobachtet...
Interessant. Es scheint also Browserabhängig zu sein. So eine Info ist wichtig. Kannst du eventuell noch mit Firefox testen?
Es passiert auch im Firefox - Screenshot im Fehlerfall anbei...
https://www.dropbox.com/s/gk8ousqyoprzspy/Screenshot%202018-10-31%2011.26.48.png?dl=0 (https://www.dropbox.com/s/gk8ousqyoprzspy/Screenshot%202018-10-31%2011.26.48.png?dl=0)
OK. 304 dürfte in den Fall nicht das Problem sein.
Gibt es eine Meldung im FHEM Logfile und was wird gemeldet wenn Du die entsprechende webinstanz auf verbose 5 stellst und der Aufruf nicht klappt? Was steht dann im Log?
Ich selbst kann da erstmal nicht erkennen aber es wird Rudi sicherlich helfen je mehr Infos wir hier sammeln
Bei standard verbose gibt es keine einträge im FHEMLog
Gerade hatte ich den Fehler auch erstmals beim aufrufen der Seite Everything...
Ein reverse Log mit verbose 5 auf WEB 8083 im raum Wärmepumpe
2018.10.31 11:38:20 4: WEB_192.168.1.110_56125 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2018-10.log; BUFLEN:0
2018.10.31 11:38:15 4: Connection accepted from WEB_192.168.1.110_56166
2018.10.31 11:38:15 4: Connection closed for WEB_192.168.1.110_56165: EOF
2018.10.31 11:38:15 4: WEB: /weatherstation/updateweatherstation.jsp?ID=XXXXXXXXXXXXXXXXXX&outtemp=12.9&outhumi=53&dewpoint=3.6&windchill=12.9&winddir=160&windspeed=1.1&windgust=2.2&rainrate=0.0&dailyrain=0.0&weeklyrain=0.6&monthlyrain=13.2&yearlyrain=13.2&light=52718.30&UV=518&intemp=11.5&inhumi=77&absbaro=1013.80&relbaro=1004.70&lowbatt=0&dateutc=2018-10-31%2010:45:50&softwaretype=WH2600GEN_V2.2.5&action=updateraw&realtime=1&rtfreq=5 / RL:7 / text/plain; charset=utf-8 / /
2018.10.31 11:38:14 4: Connection accepted from WEB_192.168.1.110_56165
/
2018.10.31 11:38:13 4: WEB: / RL:72275 / text/html; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:38:09 5: plotcommand: get DbLog HISTORY INT 2018-10-30_11:40:00 2018-10-31_11:39:59 WH2600:temperature WMZ:Waermeleistung SDM630:Power_L2__W WMZ:Durchfluss WMZ:Ruecklauftemperatur WMZ:Vorlauftemperatur
2018.10.31 11:38:09 5: plotcommand: get FileLog_sysmon CURRENT INT 2018-10-31_00:00:00 2018-10-31_23:59:59 4:cpu_temp_avg\x3a:0: 4:cpu_temp\x3a:0: 4:cpu_freq\x3a:0:
2018.10.31 11:38:09 5: plotcommand: get FileLog_sysmon CURRENT INT 2018-10-31_00:00:00 2018-10-31_23:59:59 5:ram\x3a:0: 8:ram\x3a:0:
2018.10.31 11:38:09 5: plotcommand: get FileLog_sysmon CURRENT INT 2018-10-31_00:00:00 2018-10-31_23:59:59 4:load:0: 5:load:0: 6:load:0:
2018.10.31 11:38:09 4: WEB_192.168.1.110_56125 GET /fhem?room=all; BUFLEN:0
/
2018.10.31 11:38:03 4: WEB: /fhem / RL:1877 / text/html; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:38:03 4: WEB_192.168.1.110_56125 GET /fhem; BUFLEN:0
2018.10.31 11:38:03 4: WEB: redirecting /favicon.ico to /fhem
2018.10.31 11:38:03 4: WEB_192.168.1.110_56125 GET /favicon.ico; BUFLEN:0
2018.10.31 11:38:03 4: Connection closed for WEB_192.168.1.110_56156: EOF
2018.10.31 11:38:03 4: WEB: / RL:69534 / text/plain; charset=utf-8 / /
2018.10.31 11:37:59 4: WEB: /weatherstation/updateweatherstation.jsp?ID=XXXXXXXXXXXXXXXX&outtemp=12.9&outhumi=53&dewpoint=3.6&windchill=12.9&winddir=190&windspeed=0.0&windgust=0.0&rainrate=0.0&dailyrain=0.0&weeklyrain=0.6&monthlyrain=13.2&yearlyrain=13.2&light=52732.40&UV=518&intemp=11.5&inhumi=77&absbaro=1013.80&relbaro=1004.70&lowbatt=0&dateutc=2018-10-31%2010:45:34&softwaretype=WH2600GEN_V2.2.5&action=updateraw&realtime=1&rtfreq=5 / RL:7 / text/plain; charset=utf-8 / /
2018.10.31 11:37:57 5: plotcommand: get DbLog HISTORY INT 2018-10-30_11:40:00 2018-10-31_11:39:59 WH2600:temperature WMZ:Waermeleistung SDM630:Power_L2__W WMZ:Durchfluss WMZ:Ruecklauftemperatur WMZ:Vorlauftemperatur
2018.10.31 11:37:57 4: WEB_192.168.1.110_56125 GET /fhem?room=96%2dW%c3%a4rmepumpe; BUFLEN:0
2018.10.31 11:37:50 4: Connection accepted from WEB_192.168.1.110_56156
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 GET /fhem/images/default/fhemicon_dark.png; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 GET /fhem/pgm2/dashboard_darkstyle.css; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 GET /fhem/pgm2/darkCommon.css; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56129 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56129 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 GET /fhem/pgm2/fhemweb_readingsHistory.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56129 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56129 GET /fhem/codemirror/fhem_codemirror.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56126 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56126 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56128 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56128 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56127 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56124 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56124 GET /fhem/pgm2/fhemweb_readingsGroup.js; BUFLEN:0
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:49 4: WEB_192.168.1.110_56125 GET /fhem/pgm2/doif.js; BUFLEN:0
2018.10.31 11:37:49 4: Connection closed for WEB_192.168.1.110_56154: EOF
/
2018.10.31 11:37:49 4: WEB: / RL:16329 / text/html; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:37:46 5: plotcommand: get DbLog HISTORY INT 2018-10-30_11:40:00 2018-10-31_11:39:59 WH2600:temperature WMZ:Waermeleistung SDM630:Power_L2__W WMZ:Durchfluss WMZ:Ruecklauftemperatur WMZ:Vorlauftemperatur
2018.10.31 11:37:46 4: WEB_192.168.1.110_56128 GET /fhem?room=96%2dW%c3%a4rmepumpe; BUFLEN:0
2018.10.31 11:37:43 4: Connection accepted from WEB_192.168.1.110_56154
/
2018.10.31 11:37:43 4: WEB: /fhem?cmd=%7BAttrVal(%22WEB%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=eichenheim0655 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:37:43 4: WEB_192.168.1.110_56128 GET /fhem?cmd=%7BAttrVal(%22WEB%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=eichenheim0655; BUFLEN:0
/
2018.10.31 11:37:43 4: WEB: /fhem?cmd=%7BReadingsVal(%22WEB%22%2C%22clearSvgCache%22%2C%22%22)%7D&XHR=1&fwcsrf=eichenheim0655 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:37:43 4: WEB_192.168.1.110_56127 GET /fhem?cmd=%7BReadingsVal(%22WEB%22%2C%22clearSvgCache%22%2C%22%22)%7D&XHR=1&fwcsrf=eichenheim0655; BUFLEN:0
2018.10.31 11:37:43 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:43 4: WEB_192.168.1.110_56127 GET /fhem/images/default/fhemicon_dark.png; BUFLEN:0
2018.10.31 11:37:43 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:43 4: WEB_192.168.1.110_56127 GET /fhem/pgm2/dashboard_darkstyle.css; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 GET /fhem/pgm2/darkCommon.css; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56128 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56128 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56126 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56126 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56129 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56129 GET /fhem/codemirror/fhem_codemirror.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56125 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56125 GET /fhem/pgm2/doif.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56124 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56124 GET /fhem/pgm2/fhemweb_readingsGroup.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 GET /fhem/pgm2/fhemweb_readingsHistory.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56126 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56126 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 => 304 Not Modified
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2018.10.31 11:37:42 4: Connection closed for WEB_192.168.1.110_56153: EOF
/
2018.10.31 11:37:42 4: WEB: /fhem?detail=WEB / RL:4920 / text/html; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:37:42 4: WEB_192.168.1.110_56127 GET /fhem?detail=WEB; BUFLEN:0
/
2018.10.31 11:37:42 4: WEB: /fhem?cmd.attrWEB%3Dattr%20WEB%20verbose%205&XHR=1&fwcsrf=eichenheim0655&fw_id=1885 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
2018.10.31 11:09:58 3: harmony: IODev for device 48222063 is HarmonyHub
2018.10.31 11:09:58 3: harmony: IODev for device 48222005 is HarmonyHub
Am ende öffnete ich einen neuen Tab um ins Logfile zu schauen...
EDIT: Weather Login entfernt...
Kleine Idee, hast du in letzter Zeit ein Update gemacht und seit dem ist das? Eventuell hat es etwas mit den Plots zu tun.
Da musste man ein Attribut einstellen.
Bin gerade mit Handy unterwegs.
Letztes Update heute morgen um 08:07 - das problem habe ich seit etwa 3 Wochen. Es passierte anfangs etwa täglich, mittlerweile bei etwa jeder 5ten aktualisierung... Falls Du plotfork meinst, ja das ist gesetzt...
hier noch ein list NAME=WEB
Internals:
CONNECTS 16
CSRFTOKEN eichenheim0655
DEF 8083 global
FD 6
NAME WEB
NR 6
NTFY_ORDER 50-WEB
PORT 8083
STATE Initialized
TYPE FHEMWEB
Helper:
DBLOG:
state:
DbLog:
TIME 1540983334.36455
VALUE rereadicons
READINGS:
2018-10-31 11:48:11 state Initialized
helper:
bm:
FW_Get:
cnt 1
dmx -1000
dtot 0
dtotcnt 0
mTS 31.10. 12:00:08
max 2.19345092773438e-05
tot 2.19345092773438e-05
mAr:
HASH(0x2e7b4b8)
WEB
?
FW_Notify:
cnt 1633
dmx -1000
dtot 0
dtotcnt 0
mTS 31.10. 11:54:15
max 0.000136852264404297
tot 0.0150058269500732
mAr:
HASH(0x2e7b4b8)
HASH(0x40e2fc0)
FW_Read:
cnt 16
dmx -1000
dtot 0
dtotcnt 0
mTS 31.10. 11:57:39
max 0.00182890892028809
tot 0.0105819702148438
mAr:
HASH(0x2e7b4b8)
FW_Set:
cnt 10
dmx -1000
dtot 0
dtotcnt 0
mTS 31.10. 11:55:33
max 0.0344808101654053
tot 0.229461431503296
mAr:
HASH(0x2e7b4b8)
WEB
rereadicons
Attributes:
JavaScripts codemirror/fhem_codemirror.js
codemirrorParam { "theme":"blackboard", "lineNumbers":true }
csrfToken eichenheim0655
hiddenroom DashboardRoom
iconPath default:fhemSVG:openautomation
plotfork 1
reverseLogs 1
stylesheetPrefix dark
sollte ich jetzt mein csrfToken passwort ändern..?
Ich habe es glaube
attr WEB plotEmbed 1
WEB ist hier die Webinstanz. Wenn deine eine andere ist dann natürlich die nehmen.
Ist aber mehr geraten.
Ok, habe attr WEB plotEmbed 1 gesetzt - das verhalten hat sich geändert, quasi sofort nach klick auf den Raum werden die rG und rH nebst DUmmy und DOIF angezeigt. Der Plot brauch dann ein paar sekunden bis er eingeblendet wird.
Habe jetzt etwa 10 mal aktualisiert und keinen "Quelltext" mehr gezeigt bekommen - ich beobachte weiter...
csrfToken..?
Zitat von: der-Lolo am 31 Oktober 2018, 12:07:52
csrfToken..?
Hat damit nichts zu tun. Ich bilde mir ein das es mit den Plot Einstellungen im Web zu tun hat. Da hatte sich das Standardverhalten geändert.
Ok, die frage war ob ich ein neues Token vergeben sollte da meins ja nun öffentlich ist..
Sofern du keinen festen Token vergeben hast reicht es wenn du FHEM neu startest. Dann bekommst einen neuen.
Das Problem mit dem HTML Quelltext ist nicht browserabhängig, es tritt bei mir in allen Browsern (unter MacOS) auf. Allerdings existiert das Verhalten schon etwas länger als drei Wochen. Es ist wohl davon abhängig, wann das letzte FHEM Update vor dem Auftreten des Problems gemacht wurde.
Kannst Du denn verifizieren das es mit der Einstellung (Attribut Webinstanz) weg ist. Könnte es das also sein?
für den moment jedenfalls - ich beobachte das weiter..
Ich habe das Problem noch nie gesehen, auch unter OSX nicht, und wie betateilchen schrieb, gabs das auch schon frueher, vor der plotEmbed Umstellung (s.u.). Evtl. ist das ein timing Problem, was durch die plotEmbed Umstellung verstaerkt ausgeloest wird. Wenn jemand was zu Nachstellen hat, bitte melden.
"attr plotEmbed 1" bewirkt, dass die Plots in <embed> tags geladen werden, d.h. die Seite wird ohne die eigentlichen Plots zurueckgeliefert, sie werden automatisch, einzeln nachgeladen. <embed> war frueher (vor 10 Jahren) notwendig, um SVG anzuzeigen, hat aber diverse Nachteile. Heutzutage kann man <svg> in jedem Browser direkt verwenden, und das ist seit ein paar Monaten die Voreinstellung.
Ich hatte das Problem auch seit ein paar Wochen (Mac, Safari 12.0).
attr WEB plotEmbed 1
hat es gelöst.
Schaut danach aus als ob das die Lösung ist, hier gab es auch keine anzeige des Quelltextes mehr seit plotEmbed 1 gesetzt ist..