[vz-users] Stromdaten werden mit 4 Stündiger Verspätung angezeigt

Andreas Götz cpuidle at gmail.com
Sun May 3 15:35:36 CEST 2015


Ich muss mal schauen ob das ein Doctrine bug ist und sich evtl die Exception geändert hat. 

Viele Grüße,
Andreas

> Am 03.05.2015 um 14:47 schrieb Viper <viper at viper1.de>:
> 
> Hallo Andreas,
> 
> ich habe das Image für den Raspberry von der Volkszähler Homepage auf meinem Pi installiert, dann habe ich die Datenbank und Anzeige auf meinem Webspace nach einer Anleitung auf der Volkszähler Homepage angelegt.
> 
> Die composer.log habe ich angehängt.
> 
> Gruß Andre
> 
> 
>> Am 02.05.2015 um 22:05 schrieb Andreas Götz:
>> Verstehe. Dumme Frage: ist die Middleware neu installiert? Könntest Du mal die composer.lock posten?
>> 
>> Viele Grüße,
>> Andreas
>> 
>> Am 02.05.2015 um 21:51 schrieb Viper <viper at viper1.de>:
>> 
>>> Hallo Andreas, 
>>> 
>>> das stimmt, hat nichts mit dem vermuteten Fehler zu tun aber Matthias war so nett sich mal meinen Error Log anzuschauen und da war der Timestand Fehler sehr oft drin. Da ich an den Datenbank-Einstellungen nichts geändert habe ist dies zumindest in dem Raspberry-Immage so drin. 
>>> Hier der Teil des Fehlerlogs:
>>> [Apr 24 01:19:01][d0]   Failed to parse obis code (1-0:1.8.1*25/ISk)
>>> [Apr 24 01:31:01][d0]   Too much data for value (byte=0x2E)
>>> [Apr 24 01:31:01][d0]   Too much data for value (byte=0x30)
>>> [Apr 24 01:31:01][d0]   Too much data for unit (byte=0x32)
>>> [Apr 24 01:31:01][d0]   Too much data for unit (byte=0x34)
>>> [Apr 24 01:31:01][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229]:
>>> 
>>> SQLSTATE[23000]: Integrity constraint violation: 1062 
>>> [Apr 24 01:31:31][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 1429831891549.4, 30653.6232]:
>>> 
>>> SQLSTATE[23000]
>>> [Apr 24 01:32:01][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 1429831891549.4, 30653.6232, 1429831
>>> [Apr 24 01:32:32][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 1429831891549.4, 30653.623
>>> [Apr 24 01:33:02][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 1429831891549.4,
>>> [Apr 24 01:33:32][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 142983
>>> [Apr 24 01:34:02][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.6229, 142983
>>> [Apr 24 01:34:33][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7, 30653.62
>>> [Apr 24 01:35:01][d0]   Too much data for value (byte=0x30)
>>> [Apr 24 01:35:01][d0]   Too much data for unit (byte=0x32)
>>> [Apr 24 01:35:01][d0]   Too much data for unit (byte=0x34)
>>> [Apr 24 01:35:03][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 1429831861547.7
>>> [Apr 24 01:35:33][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30653, 14298
>>> [Apr 24 01:36:03][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [1429831861547.5, 30
>>> [Apr 24 01:36:33][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params [142983186
>>> [Apr 24 01:37:03][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' with params 
>>> [Apr 24 01:37:33][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?)' wi
>>> [Apr 24 01:38:04][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:38:34][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:39:04][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:39:34][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:40:04][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:40:35][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:41:05][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:41:35][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:42:05][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:42:35][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:43:05][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:43:36][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:44:06][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:44:36][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:45:06][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:45:36][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:46:07][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:46:37][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:47:07][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:47:37][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:48:07][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:48:38][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:49:08][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:49:38][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:50:08][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:50:38][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:51:01][d0]   Too much data for unit (byte=0x32)
>>> [Apr 24 01:51:01][d0]   Too much data for unit (byte=0x34)
>>> [Apr 24 01:51:09][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:51:39][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:52:09][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:52:39][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:53:09][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:53:40][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:54:10][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:54:40][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:55:10][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> [Apr 24 01:55:41][chn4] CURL Error from middleware:           'DBALException': 'An exception occurred while executing 'INSERT INTO data (channel_id, timestamp, value) VALUES (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (10,?,?), (1
>>> 
>>> 
>>> 
>>> Am 2. Mai 2015 08:08:26 MESZ, schrieb "Andreas Götz" <cpuidle at gmail.com>:             
>>>> 
>>>> Moin,
>>>> 
>>>>>>  Am 01.05.2015 um 23:14 schrieb Matthias Behr <mbehr at mcbehr.de>:
>>>>>>  
>>>>>>  Der Code ist aus dem Logger.
>>>>>>  Aus meiner Sicht darf timestamp nicht als unique-key in der Datenbank definiert sein.
>>>>> 
>>>>> Ist es doch auch nicht. Aber timestamp/channel_id ist sehr wohl unique und das wird vom Logger auch abgefangen. Hat doch aber alles nix mit dem Ursprungsproblem von Viper zu tun?
>>>>> 
>>>>> Viele Grüße, Andreas 
>>>>> 
>>>>>  
>>>>>>>  Am 01.05.2015 um 23:11 schrieb Andreas Götz <cpuidle at gmail.com>:
>>>>>>>  
>>>>>>>  Hi Matthias,
>>>>>>>  
>>>>>>>  
>>>>>>>>  Am 01.05.2015 um 21:58 schrieb Matthias Behr <mbehr at mcbehr.de>:
>>>>>>>>  
>>>>>>>>  Hier das ursprüngliche Problem. Es gibt Curl Fehler, weil offensichtlich ein timestamp bereits in der DB vorliegt. Der akt. Code versucht das dann immer wieder -> hat nie wieder Erfolg.
>>>>>>>>  timestamp (da ja in ms Auflösung) darf nicht als unique-key definiert sein. Frage ist, ob das Install-Skript das so anlegt.
>>>>>>>>  
>>>>>>>>  
>>>>>>>>>>>  (Auszug)
>>>>>>>>  Wenn es aus irgendeinem Grund (Integrity constraint
>>>>>>>> violation: 1062???) zu einem Fehler kommt, dann wird versucht, diese Werte erneut an die Middleware zu schicken. Wenn es aber ein Werte Paar gibt, welches immer einen Fehler erzeugt, dann werden diese immer werden versucht und es wird nie mehr klappen.
>>>>>>>  
>>>>>>>  Ich bin total lost. Irgendwo gibt es Code der eine UniqueConstraintViolation abfängt- der fehlt unten.
>>>>>>>  
>>>>>>>  Und was ist jetzt das Problem- Fehler in den Indizes bei der MW oder beim Handling im Logger?
>>>>>>>  
>>>>>>>  Viele Grüße, Andreas 
>>>>>>>  
>>>>>>>  
>>>>>>>  D.h. das Fehlermanagement in Volkszaehler.cpp sollte überdacht werden.
>>>>>>>  
>>>>>>>  
>>>>>>>  akt. Code (_values.clear() nur im Ok Fall):
>>>>>>>  
>>>>>>>  // check response
>>>>>>>   if (curl_code == CURLE_OK && http_code == 200) { // everything is ok
>>>>>>>       print(log_debug, "CURL Request succeeded with code: %i",
>>>>>>> channel()->name(), http_code);
>>>>>>>       _values.clear();
>>>>>>>       // clear buffer-readings
>>>>>>>       //channel()->buffer.sent = last->next;
>>>>>>>   }
>>>>>>>   else { // error
>>>>>>>       if (curl_code != CURLE_OK) {
>>>>>>>           print(log_error, "CURL: %s", channel()->name(), curl_easy_strerror(curl_code));
>>>>>>>       }
>>>>>>>       else if (http_code != 200) {
>>>>>>>           char err[255];
>>>>>>>           api_parse_exception(response, err, 255);
>>>>>>>           print(log_error, "CURL Error from middleware: %s", channel()->name(), err);
>>>>>>>       }
>>>>>>>   }
>>>>>>>  
>>>>>>>  
>>>>>>>  
>>>>>>>>>  Am 01.05.2015 um 21:50 schrieb Andreas Götz <cpuidle at gmail.com>:
>>>>>>>>>  
>>>>>>>>>  Mir fehlt der Mittelteil- was ist los?
>>>>>>>>>  
>>>>>>>>>  Viele Grüße, Andreas 
>>>>>>>>>  
>>>>>>>>>  
>>>>>>>>>  
>>>>>>>>>>  Am 01.05.2015 um 20:11 schrieb Viper <viper at viper1.de>:
>>>>>>>>>>  
>>>>>>>>>>  Kann ich das irgendwie ändern? 
>>>>>>>>>>  
>>>>>>>>>>  Am 1. Mai 2015 19:53:50 MESZ, schrieb Matthias Behr <mbehr at mcbehr.de>:
>>>>>>>>>>  Da ist auch schon der Fehler:
>>>>>>>>>>  
>>>>>>>>>>  timestamp darf nicht data_unique sein.
>>>>>>>>>>  
>>>>>>>>>>  @Andig: ist das so gewollt? Macht das Install-Skript das so?
>>>>>>>>>>  
>>>>>>>>>>>>  Am 01.05.2015 um 18:32 schrieb Viper <viper at viper1.de>:
>>>>>>>>>>>>  
>>>>>>>>>>>>  Glaube ich habe es geschafft:
>>>>>>>>>>>>  
>>>>>>>>>>>>  Tabelle
>>>>>>>>>>>>  Datensätze 1 - 4 von insgesamt 4    <<    <    >    >>
>>>>>>>>>>>>  
>>>>>>>>>>>>  Ansicht: kompakt
>>>>>>>>>>>  
>>>>>>>>>>>  Die Abfrage enthält 13 Spalten
>>>>>>>>>>>  #    <blank.gif> Table    <blank.gif> Non_unique    <blank.gif>
>>>>>>>>>>  Key_name    <blank.gif> Seq_in_index    <blank.gif> Column_name    <blank.gif>
>>>>>>>>>>  Collation    <blank.gif> Cardinality    <blank.gif> Sub_part    <blank.gif>
>>>>>>>>>>  Packed    <blank.gif> Null    <blank.gif> Index_type    <blank.gif>
>>>>>>>>>>  Comment    <blank.gif> Index_comment
>>>>>>>>>>>  1.    
>>>>>>>>>>>  data
>>>>>>>>>>>  0
>>>>>>>>>>>  PRIMARY
>>>>>>>>>>>  1
>>>>>>>>>>>  id
>>>>>>>>>>>  A
>>>>>>>>>>>  13651
>>>>>>>>>>>  NULL
>>>>>>>>>>>  NULL
>>>>>>>>>>>  
>>>>>>>>>>>  BTREE
>>>>>>>>>>>  
>>>>>>>>>>>  
>>>>>>>>>>>  2.    
>>>>>>>>>>>  data
>>>>>>>>>>>  0
>>>>>>>>>>>  data_unique
>>>>>>>>>>>  1
>>>>>>>>>>>  channel_id
>>>>>>>>>>>  A
>>>>>>>>>>>  2
>>>>>>>>>>>  NULL
>>>>>>>>>>>  NULL
>>>>>>>>>>>  YES
>>>>>>>>>>>  BTREE
>>>>>>>>>>>  
>>>>>>>>>>>  
>>>>>>>>>>>  3.    
>>>>>>>>>>>  data
>>>>>>>>>>>  0
>>>>>>>>>>>  data_unique
>>>>>>>>>>>  2
>>>>>>>>>>>  timestamp
>>>>>>>>>>>  A
>>>>>>>>>>>  13651
>>>>>>>>>>> 
>>>>>>>>>>> NULL
>>>>>>>>>>>  NULL
>>>>>>>>>>>  
>>>>>>>>>>>  BTREE
>>>>>>>>>>>  
>>>>>>>>>>>  
>>>>>>>>>>>  4.    
>>>>>>>>>>>  data
>>>>>>>>>>>  1
>>>>>>>>>>>  IDX_ADF3F36372F5A1AA
>>>>>>>>>>>  1
>>>>>>>>>>>  channel_id
>>>>>>>>>>>  A
>>>>>>>>>>>  2
>>>>>>>>>>>  NULL
>>>>>>>>>>>  NULL
>>>>>>>>>>>  YES
>>>>>>>>>>>  BTREE
>>>>>>>>>>>  
>>>>>>>>>>>  
>>>>>>>>>>>  
>>>>>>>>>>>  Datensätze 1 - 4 von insgesamt 4    <<    <    >    >> 
>>>>>>>>>>>  
>>>>>>>>>>>  Habe auch das Dump File angehängt.
>>>>>>>>>>>  
>>>>>>>>>>>>  Am 30.04.2015 um 22:43 schrieb Matthias Behr:
>>>>>>>>>>>>  show index from
>>>>>>>>>>>  
>>>>>>>>>>>  <dumpD0.txt>
>>>>>>>>>>  
>>>>>>>>>>  Gruß
>>>>>>>>>>  
>>>>>>>>>>  Matthias
>>>>>>>>>  
>>>>>>>>>  -- 
>>>>>>>>>  Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
>>>>>>>  
>>>>>>>  Gruß
>>>>>>>  
>>>>>>>  Matthias
>>>>>  
>>>>>  Gruß
>>>>>  
>>>>>  Matthias
>>>>>  
>>> 
>>> -- 
>>> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
> 
> <composer.lock>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20150503/8161dafe/attachment-0001.html>


More information about the volkszaehler-users mailing list