← Back to team overview

graphite-dev team mailing list archive

Re: [Question #243806]: Graphlot not rendering

 

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

Cevapanda gave more information on the question:
I managed to produce an error, when trying to render a graph on
Graphlot:

KeyError at /graphlot/rawdata
'now'
Request Method:	GET
Request URL:	http://graphit/graphlot/rawdata?from=-24hour&until=-0hour&target=servers.de.da.node01.cpu.idle
Django Version:	1.5.1
Exception Type:	KeyError
Exception Value:	
'now'
Exception Location:	./graphite/render/datalib.py in fetchData, line 221
Python Executable:	/usr/bin/uwsgi-core
Python Version:	2.7.3
Python Path:	
['/mnt/graphite/graphite/graphite/webapp',
 '',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/mnt/graphite/graphite/graphite/webapp/graphite/thirdparty']
Server time:	Thu, 20 Feb 2014 09:22:47 +0100

Environment:


Request Method: GET
Request URL: http://graphite/graphlot/rawdata?from=-24hour&until=-0hour&target=servers.de.da.node01.cpu.idle

Django Version: 1.5.1
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',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "./graphite/graphlot/views.py" in get_data
  45.     seriesList = evaluateTarget(requestContext, target)
File "./graphite/render/evaluator.py" in evaluateTarget
  10.   result = evaluateTokens(requestContext, tokens)
File "./graphite/render/evaluator.py" in evaluateTokens
  21.     return evaluateTokens(requestContext, tokens.expression)
File "./graphite/render/evaluator.py" in evaluateTokens
  24.     return fetchData(requestContext, tokens.pathExpression)
File "./graphite/render/datalib.py" in fetchData
  221.   now = requestContext['now']

Exception Type: KeyError at /graphlot/rawdata
Exception Value: 'now'

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