Wie immer DBlog = Fhem Lahm / Hängt

Begonnen von ChrisW, 21 Januar 2019, 13:53:53

Vorheriges Thema - Nächstes Thema

ChrisW

Hallo,
selbes Problem was ich vor Jahen schon hatte und daher beim Filelog geblieben bin.
mysql auf externen NAS ( Synology Docker mysql )
Sobald ich
define myDbLog DbLog /opt/fhem/db.conf .*:.*
eingebe kommt auch wa sin FHEM Vernindung funktioniert connected.
Sehe wie sich die histrory füllt jede Sekunde 2-3 Werte ...
Aber FHEM Oberfläche ist seit dem an nicht mehr erreichbar.

Das ganze hatte ich schon vor Jahren aber auch mit einer Lokalen DB auf dem pi3

Werd das ganze mal ohne ALLES LOGGEN versuchen .. aber 2-3 Werte / Sekunde sollte doch nicht zu viel sein ????
Raspberry PI3 mit allem möglichen.

marvin78

Da du mal wieder kein List vom Device postest, bleibt nur raten:

asyncMode kennst du?

ChrisW

Logge jetzt mal nur mit dem WIKI Beispiel Temperaturen ... FHEM lief ein paar minuten und dann wieder ..
bin noch zu keinen attr gekommen :D Habe ich mal aktiviert.


Also  configcheck habe ich ml gemacht


Result of DbLog version checkUsed DbLog version: 3.13.0 Recommendation: Your running version may be the current one. Please check for updates of DbLog periodically. Result of configuration read checkConnection parameter store type: file Connection parameter: Connection -> mysql:database=fhem;host=192.168.2.1;port=3307, User -> fhem, Password -> read o.k. Result of connection checkConnection to database fhem successfully done. Recommendation: settings o.k. Result of encoding checkEncoding used by Client (connection): LATIN1 Encoding used by DB fhem: UTF8 Recommendation: Both encodings should be identical. You can adjust the usage of UTF8 connection by setting the UTF8 parameter in file '/opt/fhem/db.conf' to the right value. Result of logmode checkLogmode of DbLog-device myDbLog is: synchronous Recommendation: Switch myDbLog to the asynchronous logmode by setting the 'asyncMode' attribute. The advantage of this mode is to log events non-blocking. There are attributes 'syncInterval' and 'cacheLimit' relevant for this working mode. Please refer to commandref for further information about these attributes. Result of plot generation method checkWARNING - at least one of your FHEMWEB devices have attribute "plotfork = 1" not set. This may cause blocking situations when creating plots. WEB: plotfork=0WEBphone: plotfork=0WEBtablet: plotfork=0Recommendation: You should set attribute "plotfork = 1" in relevant devices Result of table 'history' checkColumn width set in DB fhem.history: 'DEVICE' = 64, 'TYPE' = 64, 'EVENT' = 512, 'READING' = 64, 'VALUE' = 128, 'UNIT' = 32 Column width used by myDbLog: 'DEVICE' = 64, 'TYPE' = 64, 'EVENT' = 512, 'READING' = 64, 'VALUE' = 128, 'UNIT' = 32 Recommendation: settings o.k. Result of table 'current' checkColumn width set in DB fhem.current: 'DEVICE' = 64, 'TYPE' = 64, 'EVENT' = 512, 'READING' = 64, 'VALUE' = 128, 'UNIT' = 32 Column width used by myDbLog: 'DEVICE' = 64, 'TYPE' = 64, 'EVENT' = 512, 'READING' = 64, 'VALUE' = 128, 'UNIT' = 32 Recommendation: settings o.k. Result of check 'Search_Idx' availabilityIndex 'Search_Idx' exists and contains recommended fields 'DEVICE', 'READING', 'TIMESTAMP'. Recommendation: settings o.k. Result of check 'Report_Idx' availability for DbRep-devicesNo DbRep-device assigned to myDbLog is used. Hence an index for DbRep isn't needed. Recommendation: settings o.k.


list:


Internals:
   .triggerUsed 1
   CFGFN     
   COLUMNS    field length used for Device: 64, Type: 64, Event: 512, Reading: 64, Value: 128, Unit: 32
   CONFIGURATION /opt/fhem/db.conf
   DEF        /opt/fhem/db.conf .*:(temperature|valveposition|humidity).*
   FUUID      5c45c13f-f33f-678b-3222e-32878bdfc71c8d6a
   MODE       asynchronous
   MODEL      MYSQL
   NAME       myDbLog
   NR         1093
   NTFY_ORDER 50-myDbLog
   PID        663
   REGEXP     .*:(temperature|valveposition|humidity).*
   STATE      connected
   TYPE       DbLog
   UTF8       0
   VERSION    3.13.0
   dbconn     mysql:database=fhem;host=192.168.2.1;port=3307
   dbuser     fhem
   .attraggr:
   .attrminint:
   HELPER:
     COLSET     1
     DEVICECOL  64
     EVENTCOL   512
     OLDSTATE   connected
     READINGCOL 64
     TYPECOL    64
     UNITCOL    32
     VALUECOL   128
   READINGS:
     2019-01-21 14:01:03   CacheUsage      2
     2019-01-21 14:00:55   NextSync        2019-01-21 14:01:25 or if CacheUsage 500 reached
     2019-01-21 14:00:55   state           connected
   cache:
     index      2
     .memcache:
       1          2019-01-21 14:00:55|temp_buro|CUL_TX|humidity: 54.0|humidity|54.0|%
       2          2019-01-21 14:01:03|temp_wkeller|LACROSSE|temperature2: 18.7|temperature2|18.7|°C
Attributes:
   asyncMode  1
   room       Zentral
Raspberry PI3 mit allem möglichen.

marvin78

Bitte Code-Tags verwenden. Du bist doch nicht neu hier.

Was sagt das Log? Hat async nichts bewirkt?

ChrisW

war keine absicht normal verwende ich immer Code Tags.
Aktuell scheint es zu klappen Danke. Muss ich noch was beim dblogtype machen?
Raspberry PI3 mit allem möglichen.

marvin78

Musst du nicht.

Ich logge nur history. Wenn du allerdings den vollen Komfort des Ploteditors benötigst (siehe Doku), dann hilft es, current zu loggen. Schwache Systeme können davon profitieren, current nicht zu loggen.