← Back to team overview

graphite-dev team mailing list archive

[Question #219940]: Can't query last year's data, errors with Invalid time format

 

New question #219940 on Graphite:
https://answers.launchpad.net/graphite/+question/219940

Hi,

I can't seem to include data from 2012 in any of my graphite queries, nor can I query data for a date range only in 2012. To explain what I mean, I've pasted these two queries:

1) From Dec-2012 to Jan-2013
URL: /render?width=400&from=09%3A00_20121201&until=17%3A00_20130131&height=250&target=summarize(sumSeries(foo.bar.*)%2C%20%221day%22)&_uniq=0.750648349057883&title=summarize(sumSeries(foo.bar.*)%2C%20%221day%22)
Result: shows a graph starting from the 1st of Jan 2013


2) From Nov-2012 to Dec-2012
URL: /render?width=400&from=09%3A00_20121101&until=17%3A00_20121201&height=250&target=summarize(sumSeries(foo.bar.*)%2C%20%221day%22)&_uniq=0.9707621277775615&title=summarize(sumSeries(foo.bar.*)%2C%20%221day%22)
Result: Query blows up with the following stack trace:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 104, in renderView
    continue
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 28, in evaluateTokens
    args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 28, in evaluateTokens
    args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 24, in evaluateTokens
    return fetchData(requestContext, tokens.pathExpression)
  File "/opt/graphite/webapp/graphite/render/datalib.py", line 224, in fetchData
  File "/opt/graphite/webapp/graphite/storage.py", line 298, in fetch
  File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 667, in fetch
    fh.write(packedString)
  File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 683, in file_fetch
    break
InvalidTimeInterval: Invalid time interval

I had installed the 0.9.10 release, then decided to upgrade everything to the code in each project's master branch, but I'm still running into the same issue. My data is still living in the whisper store. Any idea what I might be doing wrong?

Thanks,
Luke

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.