Subject: perfsonar development work
List archive
- From: Miguel Baptista <>
- To:
- Subject: Re: [pS-dev] RRDUPDATE failed: illegal attempt to update using time ...
- Date: Thu, 14 Sep 2006 16:15:48 +0100
Hi,
I changed the timestamp values and apparently the problem was solved.
But every time I want to execute the script I have to change the values
(otherwise I’ll get the JAVA exception).
Luis Marta told me to put the “N” character instead of a number.
Because on RRD context, the character “N” is the current time … well,
it’s the “Now” time.
Currently, each time I execute the test-ma.sh script I don’t
need to change the values.
I know this is *only* a test script but I think it could be a good idea
to put the “N” character instead of a numeric value.
I think this is the best way to avoid JAVA exceptions regarding the
time values.
Bellow you can find my current xml files:
FILE: MAStoreKeyRequest.xml
…
<!-- Output omitted -->
<nmwg:metadata id="meta1">
<nmwg:key id="keyid">
<nmwg:parameters id="param1">
<nmwg:parameter
name="file">/root/install/jra1/perfSONAR-1.0/data/rrd/test/test2.rrd</nmwg:parameter>
<nmwg:parameter
name="dataSource">output</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
</nmwg:metadata>
<nmwg:data id="data1" metadataIdRef="meta1">
<nmwg:datum value="12345" timeValue="N"
timeType="unix"/>
</nmwg:data>
</nmwg:message>
FILE: MAStoreRequest.xml
…
<!-- Output omitted -->
<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress
type="ipv4">10.1.2.3</nmwgt:ifAddress>
<nmwgt:ifName>test-0</nmwgt:ifName>
<nmwgt:ifDescription>test
descripyion</nmwgt:ifDescription>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:authRealm>TestRealm</nmwgt:authRealm>
<nmwgt:capacity>1000BaseT</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>
<nmwg:data id="data1" metadataIdRef="meta1">
<nmwg:datum value="12345" timeValue="N" timeType="unix"
valueUnits="bps" />
</nmwg:data>
</nmwg:message>
Loukik Kudarimoti wrote:
Hello
Miguel,
Please change the timestamp in your request message and try again.
Your request is asking the service to try to add new values to the rrd
file. The service will make use of the timestamp provided in the
request message. From the error message "/*Message: RRDUPDATE failed:
illegal attempt to update using time 1139319941 when last update time
is 1139319941* *(minimum one second step)"*/, it is clear that the rrd
file already has a value entered previously for the timestamp
1139319941. The next value expected is anything greater that this value
(not equal, not lesser).
Let us know if this solves the problem.
Loukik.
Miguel Baptista wrote:
Hi all,
I installed the MA but I’m having some problems. When I execute the
/test-ma.sh/ script I’m getting some JAVA exceptions regarding the RRD
database.
Does anyone have any idea?
Here goes the output:
/[root@xxx scripts]# ./test-ma.sh/
/Query Test/
/End point:
http://xxx.xxx.fccn.pt:8080/axis/services/MeasurementArchiveService/
/Request file: ../xml/MAQueryRequest.xml/
/Response file: ../xml/MAQueryResponse.xml/
*/[#document: null]/*
/time taken :0.268 secs/
/Client exiting/
/Query Test (Key)/
/End point:
http://xxx.xxx.fccn.pt:8080/axis/services/MeasurementArchiveService/
/Request file: ../xml/MAQueryKeyRequest.xml/
/Response file: ../xml/MAQueryKeyResponse.xml/
*/[#document: null]/*
/time taken :0.249 secs/
/Client exiting/
/Store Test/
/End point:
http://xxx.xxx.fccn.pt:8080/axis/services/MeasurementArchiveService/
/Request file: ../xml/MAStoreRequest.xml/
/Response file: ../xml/MAStoreResponse.xml/
/SOAPClient.makeRequest: General exception encountered by client/
/AxisFault/
/ faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException/
/ faultSubcode:/
/ *faultString:
org.perfsonar.service.commons.exceptions.SystemException:
[unknown]: RRDStorageManager.createRRDFile: could not update rrd
file: /root/install/jra1/perfSONAR-1.0/data/rrd/test/test.rrd and
datasource: bytes with the given. RrdException was encountered.
Message: RRDUPDATE failed: illegal attempt to update using time
1139319941 when last update time is 1139319941* *(minimum one
second step)*/
/ faultActor:/
/ faultNode:/
/ faultDetail:/
/ {http://xml.apache.org/axis/}hostname:xxx.xxx.fccn.pt/
*/org.perfsonar.service.commons.exceptions.SystemException:
[unknown]: RRDStorageManager.createRRDFile: could not update rrd
file: /root/install/jra1/perfSONAR-1.0/data/rrd/test/test.rrd and
datasource: bytes with the given. RrdException was encountered.
Message: RRDUPDATE failed: illegal attempt to update using time
1139319941 when last update time is 1139319941 (minimum one second
step)/*
/ at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)/
/ at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)/
/ at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)/
/ at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)/
/ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)/
/ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)/
/ at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)/
/ at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)/
/ at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)/
/ at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)/
/ at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)/
/ at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)/
/ at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)/
/ at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)/
/ at org.apache.axis.client.Call.invokeEngine(Call.java:2784)/
/ at org.apache.axis.client.Call.invoke(Call.java:2767)/
/ at org.apache.axis.client.Call.invoke(Call.java:1792)/
/ at
org.perfsonar.client.testHarness.SOAPClient.makeRequest(Unknown
Source)/
/ at org.perfsonar.client.testHarness.SOAPClient.main(Unknown
Source)/
/Client exiting/
/Store Test (Key)/
/End point:
http://xxx.xxx.fccn.pt:8080/axis/services/MeasurementArchiveService/
/Request file: ../xml/MAStoreKeyRequest.xml/
/Response file: ../xml/MAStoreKeyResponse.xml/
/SOAPClient.makeRequest: General exception encountered by client/
/AxisFault/
/ faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException/
/ faultSubcode:/
/ *faultString:
org.perfsonar.service.commons.exceptions.SystemException:
[unknown]: RRDStorageManager.createRRDFile: could not update rrd
file: /root/install/jra1/perfSONAR-1.0/data/rrd/test/test2.rrd and
datasource: output with the given. RrdException was encountered.
Message: RRDUPDATE failed: illegal attempt to update using time
1157644608 when last update time is 1157644712 (minimum one second
step)*/
/ faultActor:/
/ faultNode:/
/ faultDetail:/
/ {http://xml.apache.org/axis/}hostname:xxx.xxx.fccn.pt/
/org.perfsonar.service.commons.exceptions.SystemException:
[unknown]: RRDStorageManager.createRRDFile: could not update rrd
file: /root/install/jra1/perfSONAR-1.0/data/rrd/test/test2.rrd and
datasource: output with the given. RrdException was encountered.
Message: RRDUPDATE failed: illegal attempt to update using time
1157644608 when last update time is 1157644712 (minimum one second
step)/
/ at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)/
/ at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)/
/ at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)/
/ at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)/
/ at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)/
/ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)/
/ at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)/
/ at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)/
/ at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)/
/ at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)/
/ at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)/
/ at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)/
/ at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)/
/ at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)/
/ at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)/
/ at org.apache.axis.client.Call.invokeEngine(Call.java:2784)/
/ at org.apache.axis.client.Call.invoke(Call.java:2767)/
/ at org.apache.axis.client.Call.invoke(Call.java:1792)/
/ at
org.perfsonar.client.testHarness.SOAPClient.makeRequest(Unknown
Source)/
/ at org.perfsonar.client.testHarness.SOAPClient.main(Unknown
Source)/
/Client exiting/
|
Archive powered by MHonArc 2.6.16.