<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hallo,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>ich logge auf [chn3] alle 200s Wasserzählerstände, die wenn kein Wasser entnommen wird naturgemäß unverändert bleiben.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p><p class=MsoNormal style='border:none;padding:0cm'>In vzlogger.log finde ich nun folgende Fehler:<o:p></o:p></p><p class=MsoNormal style='border:none;padding:0cm'><o:p> </o:p></p></div><p class=MsoNormal><span lang=EN-US>[Dec 21 23:50:03][chn3] Middleware says duplicated value. Removing first entry!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 21 23:50:03][chn3] CURL Error from middleware: 'UniqueConstraintViolationException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (22,?,?)' with params [1703198856000, 367.79669]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 21 23:53:24][chn3] Middleware says duplicated value. Removing first entry!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 21 23:53:24][chn3] CURL Error from middleware: 'UniqueConstraintViolationException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (22,?,?)' with params [1703199036000, 367.79669]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 21 23:56:44][chn3] Middleware says duplicated value. Removing first entry!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 21 23:56:44][chn3] CURL Error from middleware: 'UniqueConstraintViolationException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (22,?,?)' with params [1703199215000, 367.79669]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[Dec 22 00:00:04][chn3] Middleware says duplicated value. Removing first entry!<o:p></o:p></span></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><span lang=EN-US>[Dec 22 00:00:04][chn3] CURL Error from middleware: 'UniqueConstraintViolationException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (22,?,?)' with params [1703199395000, 367.79669]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>Dennoch finden sich die Datensätze erwartungsgemäß in der DB, denn schließlich haben sie fortlaufende Zeitstempel:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>MariaDB [volkszaehler]> select* from data where channel_id=22 and timestamp between 1703198856000 and 1703199395000;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+----------+------------+---------------+-----------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| id | channel_id | timestamp | value |<o:p></o:p></span></p><p class=MsoNormal>+----------+------------+---------------+-----------+<o:p></o:p></p><p class=MsoNormal>| 42239032 | 22 | 1703198856000 | 367.79669 |<o:p></o:p></p><p class=MsoNormal>| 42239089 | 22 | 1703199036000 | 367.79669 |<o:p></o:p></p><p class=MsoNormal>| 42239141 | 22 | 1703199215000 | 367.79669 |<o:p></o:p></p><p class=MsoNormal>| 42239196 | 22 | 1703199395000 | 367.79669 |<o:p></o:p></p><p class=MsoNormal>+----------+------------+---------------+-----------+<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kann mir jemand beantworten wo das Problem liegt?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Viele Grüße<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Micha<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>