<p dir="ltr">Und mal interessehalber: wie groß ist deine DB mittlerweile, wenn du keinerlei vzlogger-Aggregation benutzt? Archivierst du alles oder dünnst du später aus?<br>
Kennst du den Push-Server? Könnte eine Lösung sein, wenn du Werte in hoher Auflösung brauchst.</p>
<p dir="ltr">Grüße<br>
Frank</p>
<div class="gmail_quote">Am 08.02.2017 23:31 schrieb "Frank Richter" <<a href="mailto:frank.richter83@gmail.com">frank.richter83@gmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Betreibst du das auf SD-Karte? Dann sind das wohl die letzten Zuckungen vor dem Flash-Tod...<br>
Wenn du kein aktuelles Backup hast, versuch mal noch einen DB-Dump zu machen.</p>
<p dir="ltr">Grüße<br>
Frank</p>
<div class="gmail_quote">Am 08.02.2017 23:26 schrieb  <<a href="mailto:china2013@abwesend.de" target="_blank">china2013@abwesend.de</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <blockquote type="cite">möglicherweise ist dein /tmp/ zu klein für
      das was MySQL da vorhat. Ist das ein Pi mit Udos Image (/tmp/ als
      Ramdisk)? </blockquote>
    Ja das ist Udos Image:<br>
    <blockquote type="cite"><font color="#3333ff"><tt>pi@PI3:~ $ df -h</tt><tt><br>
        </tt><tt>Filesystem      Size  Used Avail Use% Mounted on</tt><tt><br>
        </tt><tt>/dev/root        30G  5.3G   23G  19% /</tt><tt><br>
        </tt><tt>devtmpfs        459M     0  459M   0% /dev</tt><tt><br>
        </tt><tt>tmpfs           463M     0  463M   0% /dev/shm</tt><tt><br>
        </tt><tt>tmpfs           463M  6.2M  457M   2% /run</tt><tt><br>
        </tt><tt>tmpfs           5.0M  4.0K  5.0M   1% /run/lock</tt><tt><br>
        </tt><tt>tmpfs           463M     0  463M   0% /sys/fs/cgroup</tt><tt><br>
        </tt><tt>tmpfs            30M  4.0K   30M   1% /tmp</tt><tt><br>
        </tt><tt>/dev/mmcblk0p1   60M   21M   40M  35% /boot</tt></font><br>
    </blockquote>
    <br>
    <blockquote type="cite">
      <p dir="ltr">Und brauchst du aggregate minute wirklich? Es war
        IMHO mal so dass das Frontend das nicht benutzt hat, aktuellen
        Stand kenne ich allerdings nicht.<br>
      </p>
    </blockquote>
    Hmm, wer kann das beantworten?<br>
    <blockquote type="cite">
      <p dir="ltr"> Was ist dein interval bzw. aggtime von vzlogger her?</p>
    </blockquote>
    ich brauche die Daten schon in maximaler Auflösung. vzlogger darf
    höchstens die 0-Werte oder Duplikat-Werte zusammenfassen.<br>
    <br>
    Gerade getestet:<br>
    <tt>php /var/www/<a href="http://volkszaehler.org/misc/tools/aggregate.php" target="_blank">volkszaehler.org/misc<wbr>/tools/aggregate.php</a> run -m
      delta -l hour</tt><br>
    <br>
    Ergebnis wieder ein Error (die Ramdisk ist nicht voll gelaufen)<br>
    <font color="#cc0000"><tt>[Doctrine\DBAL\Exception\Drive<wbr>rException]</tt><tt><br>
      </tt><tt>An exception occurred while executing 'REPLACE INTO
        aggregate (channel_id, type, timestamp, value, count)</tt><tt>SELECT
        channel_id, ? AS type, MAX(agg.timestamp) AS timestamp,
        COALESCE( SUM(agg.val_by_time) / (MAX(agg.t</tt><tt>imestamp) -
        MIN(agg.prev_timestamp)), AVG(agg.value)) AS value,
        COUNT(agg.value) AS count FROM ( SELECT ch</tt><tt>annel_id,
        timestamp, value, value * (timestamp - @prev_timestamp) AS
        val_by_time, GREATEST(0, IF(@prev_tim</tt><tt>estamp = NULL,
        NULL, @prev_timestamp)) AS prev_timestamp, @prev_timestamp :=
        timestamp FROM data CROSS JOI</tt><tt>N (SELECT @prev_timestamp
        := NULL) AS vars WHERE channel_id = ? AND timestamp <
        UNIX_TIMESTAMP(DATE_FORMAT</tt><tt>(NOW<wbr>(), "%Y-%m-%d %H:00:00"))
        * 1000 ORDER BY timestamp ) AS agg GROUP BY channel_id,
        YEAR(FROM_UNIXTIME(t</tt><tt>imestamp/1<wbr>000)),
        DAYOFYEAR(FROM_UNIXTIME(timest<wbr>amp/1000)),
        HOUR(FROM_UNIXTIME(timestamp/1<wbr>000))' with param</tt><tt>s [2,
        "9"]:</tt><tt>SQLSTATE[HY000]: General error: 126 Incorrect key
        file for table '/tmp/#sql_423_1.MYI'; try to repair it</tt><tt><br>
      </tt><tt><br>
      </tt><tt>[Doctrine\DBAL\Driver\PDOExcep<wbr>tion]</tt><tt><br>
      </tt><tt>SQLSTATE[HY000]: General error: 126 Incorrect key file
        for table '/tmp/#sql_423_1.MYI'; try to repair it</tt><tt><br>
      </tt><tt><br>
      </tt><tt>[PDOException]</tt><tt><br>
      </tt><tt>SQLSTATE[HY000]: General error: 126 Incorrect key file
        for table '/tmp/#sql_423_1.MYI'; try to repair it</tt></font><tt><br>
    </tt><tt><br>
    </tt>Auch wenn man "aggregate day" mit nur einer UUID laufen lässt
    kommt der Error. <br>
    /var/log/mysql/error.log ist heute gewaltige 20MByte groß geworden.<br>
    <hr size="2" width="100%">Hallo Andreas, Du bekommt morgen früh post<br>
    Vielen Dank im Vorraus!<br>
  </div>

</blockquote></div>
</blockquote></div>