← Back to team overview

graphite-dev team mailing list archive

Re: [Question #200485]: Graph error short period

 

Question #200485 on Graphite changed:
https://answers.launchpad.net/graphite/+question/200485

    Status: Needs information => Open

Alexandre gave more information on the question:
Here is the stacktrace:

Environment:


Request Method: GET
Request URL: http://127.0.0.1/render?width=300&from=-6hours&until=now&height=250&target=cactiStyle(alias(asPercent(sum(nginx.domains.*.reqs.NOCACHE)%2Csum(nginx.domains.*.reqs.*))%2C%22NOCACHE%22))&target=cactiStyle(alias(asPercent(sum(nginx.domains.*.reqs.HIT)%2Csum(nginx.domains.*.reqs.*))%2C%22HIT%22))&target=cactiStyle(alias(asPercent(sum(nginx.domains.*.reqs.MISS)%2Csum(nginx.domains.*.reqs.*))%2C%22MISS%22))&target=cactiStyle(alias(asPercent(sum(nginx.domains.*.reqs.EXPIRED)%2Csum(nginx.domains.*.reqs.*))%2C%22EXPIRED%22))&title=HTTP%20Cache%20Hit%20Rate&areaMode=stacked&_salt=1339720925.76&yMin=0&yMax=100&_uniq=0.46704776224421773

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('graphite.metrics',
 'graphite.render',
 'graphite.cli',
 'graphite.browser',
 'graphite.composer',
 'graphite.account',
 'graphite.dashboard',
 'graphite.whitelist',
 'graphite.events',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'tagging')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.gzip.GZipMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py" in renderView
  106.         seriesList = evaluateTarget(requestContext, target)
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTarget
  10.   result = evaluateTokens(requestContext, tokens)
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  21.     return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  28.     args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  21.     return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  28.     args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  21.     return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py" in evaluateTokens
  29.     return func(requestContext, *args)
File "/opt/graphite/webapp/graphite/render/functions.py" in asPercent
  378.   normalize([seriesList])
File "/opt/graphite/webapp/graphite/render/functions.py" in normalize
  111.   step = reduce(lcm,[s.step for s in seriesList])

Exception Type: TypeError at /render
Exception Value: reduce() of empty sequence with no initial value



Follow my storage-schema.conf:

[carbon]
pattern = ^carbon\.
retentions = 60:90d


[extended]
pattern = .*
retentions = 30s:90d,2m:600d

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