<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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
cite="mid:CAD+U_OBcg4A3FoQxqfp-eGKS5n4anbDwYa+eWMgvNaHQRpadQA@mail.gmail.com"
      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
cite="mid:CAD+U_OBcg4A3FoQxqfp-eGKS5n4anbDwYa+eWMgvNaHQRpadQA@mail.gmail.com"
      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/volkszaehler.org/misc/tools/aggregate.php 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\DriverException]</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(), "%Y-%m-%d %H:00:00"))
        * 1000 ORDER BY timestamp ) AS agg GROUP BY channel_id,
        YEAR(FROM_UNIXTIME(t</tt><tt>imestamp/1000)),
        DAYOFYEAR(FROM_UNIXTIME(timestamp/1000)),
        HOUR(FROM_UNIXTIME(timestamp/1000))' 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\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><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>
  </body>
</html>