Aufruf von FHEMWEB Seite zeigt gelegentlich HTML-Quelltext

Begonnen von der-Lolo, 31 Oktober 2018, 09:33:10

Vorheriges Thema - Nächstes Thema

der-Lolo

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..

CoolTux

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.
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


CoolTux

Wie schaut es mit unterschiedlichen Browsern aus?
Chrome, Firefox
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

der-Lolo

Ich nutze eigentlich ausschliesslich Chrome...
oder Safari vom iPad aus - auf dem iPad habe ich das Phänomen noch nie beobachtet...

CoolTux

Interessant. Es scheint also Browserabhängig zu sein. So eine Info ist wichtig. Kannst du eventuell noch mit Firefox testen?
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


CoolTux

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
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

der-Lolo

#8
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...

CoolTux

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.
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

der-Lolo

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..?

CoolTux

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.
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

der-Lolo

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..?

CoolTux

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.
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

der-Lolo

Ok, die frage war ob ich ein neues Token vergeben sollte da meins ja nun öffentlich ist..

CoolTux

Sofern du keinen festen Token vergeben hast reicht es wenn du FHEM neu startest. Dann bekommst einen neuen.
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

betateilchen

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.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

CoolTux

Kannst Du denn verifizieren das es mit der Einstellung (Attribut Webinstanz) weg ist. Könnte es das also 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

der-Lolo

für den moment jedenfalls - ich beobachte das weiter..

rudolfkoenig

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.

JWRu

Ich hatte das Problem auch seit ein paar Wochen (Mac, Safari 12.0).
attr WEB plotEmbed 1
hat es gelöst.
ZBox; RasPi 3B; RasPi Zero W; Homematic; Z-Wave; EnOcean, Shelly; DuoFern; Oregon-Sensoren; TFA-Sensoren; Steuerung Viessmann-Heizung; Arduinos für Strom-, Wasser-, Gaszähler, Rauchmelder und FI-Schutzschalter

der-Lolo

Schaut danach aus als ob das die Lösung ist, hier gab es auch keine anzeige des Quelltextes mehr seit plotEmbed 1 gesetzt ist..