[vz-users] Vzlogger curl error

Sebastian Pricker mail at pricker.net
Mon Mar 25 22:10:42 CET 2019


Moin zusammen,

Ich muss mich leider nochmal mit einem Fehler melden. Mein VZlogger hat bislang nur die Zählerdaten in die influxDB geschrieben, problemlos.
Nun habe ich die neueste Version des Volkszähler installiert und lasse die Daten in die middleware schreiben.
Hier ein Ausschnitt aus dem Log:
[Mar 25 21:56:50][mtr0] Got 10 new readings from meter:
[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12980593.20 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12980593.20 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12833695.10 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12833695.10 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=472.00 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=-2.00 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=127.00 ts=1553547410869
[Mar 25 21:56:50][mtr0] Reading: id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=346.00 ts=1553547410869
[Mar 25 21:56:50][chn0] Adding reading to queue (value=12980593.20 ts=1553547410869)
[Mar 25 21:56:51][chn0] ==> number of tuples: 2
[Mar 25 21:56:51][chn0] compare: 1553547407522 1553547409155
[Mar 25 21:56:51][chn0] compare: 1553547409155 1553547410869
[Mar 25 21:56:51][chn0] copied 8/8 values for middleware transmission
[Mar 25 21:56:51][chn0] JSON request body: [ [ 1553547399372, 12980591.800000001 ], [ 1553547401053, 12980592 ], [ 1553547402735, 12980592.200000001 ], [ 1553547404191, 12980592.4 ], [ 1553547405890, 12980592.600000001 ], [ 1553547407522, 12980592.800000001 ], [ 1553547409155, 12980593 ], [ 1553547410869, 12980593.200000001 ] ]
[Mar 25 21:56:51][chn0] CURL: Hostname 127.0.0.1 was found in DNS cache
[Mar 25 21:56:51][chn0] CURL:   Trying 127.0.0.1...
[Mar 25 21:56:51][chn0] CURL: TCP_NODELAY set
[Mar 25 21:56:51][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#4)
[Mar 25 21:56:51][chn0] CURL: Sent 286 bytes.. 
[Mar 25 21:56:51][chn0] CURL: Sent '[ [ 1553547399372, 12980591.800000001 ], [ 1553547401053, 12980592 ], [ 1553547402735, 12980592.200000001 ], [ 1553547404191, 12980592.4 ], [ 1553547405890, 12980592.600000001 ], [ 1553547407522, 12980592.800000001 ], [ 1553547409155, 12980593 ], [ 1553547410869, 12980593.200000001 ] ]' bytes
[Mar 25 21:56:51][chn0] CURL: upload completely sent off: 286 out of 286 bytes
[Mar 25 21:56:51][chn0] CURL: Received 105 bytes
[Mar 25 21:56:51][chn0] CURL: Received '{"version":"0.3","exception":{"message":"Unknown context: 'middleware.php'","type":"Exception","code":0}}' bytes
[Mar 25 21:56:51][chn0] CURL: Curl_http_done: called premature == 0
[Mar 25 21:56:51][chn0] CURL: Closing connection 4
[Mar 25 21:56:51][chn0] CURL Error from middleware: 'Exception': 'Unknown context: 'middleware.php''
[Mar 25 21:56:51][chn0] Waiting 3 secs for next request due to previous failure
[Mar 25 21:56:52][mtr0] Got 10 new readings from meter:


Die vzlogger.conf:

{
"retry" : 3,
"daemon": true,
"verbosity" : 15,
"log" : "/var/log/vzlogger.log",
 
"local" : {
         "enabled" : false,
         "port" : 80,
         "index" : false,
         "timeout" : 30,
         "buffer" : 600
},

 
"meters" : [{
         "protocol" : "sml",
		"use_local_time" : true,
         "enabled" : true,
         "device" : "/dev/ttyUSB0",
         "parity" : "8N1",
         "baudrate" : 9600,
         "aggtime" : -1,
         "aggfixedinterval" : false,
         "channels": [
             {	
				"api": "volkszaehler",
                "uuid" : "c1461740-4e3d-11e9-8f0e-7be4169ace4f",
                "middleware" : "http://127.0.0.1/middleware.php",
                "identifier" : "1-0:1.8.0*255"
          }
]
     }]
}


Ich habe Apache2 deinstalliert und nutze den PPM Webserver, wie auf git beschrieben. Deshalb habe ich Port 80 ausgewählt.

Ist das ein Fehler in der middleware?

Viele Grüße
Sebastian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190325/b525846f/attachment.html>


More information about the volkszaehler-users mailing list