Graphite image cannot be rendered

Asked by gcn

Hi, I installed Graphite. I can see the trees at left pane, but the images at right pane is missing (a cross in IE). By looking in the log, I see log entries like this:

220.231.4.60 - - [18/Nov/2009:23:14:32 -0600] "GET /render/?width=586&height=306&_salt=1258607671.443&target=test.host.cpu.idle HTTP/1.1" 500 67156

How to fix it? Or how to debug? I set Debug flat to True in local_setting.py, but see nothing different.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
gcn
Solved:
Last query:
Last reply:
Revision history for this message
gcn (gaochongnan) said :
#1

I managed to see the debug info by access the render page directly from browser, like http://graphite/render/?width=586&height=306&_salt=1258610705.625

The trace is below, I don't know how to fix it yet. Some can help? Thanks a lot.

Environment:

Request Method: GET
Request URL: http://ec2-79-125-11-71.eu-west-1.compute.amazonaws.com:8080/render/?width=586&height=306&_salt=1258610705.625
Django Version: 1.1.1
Python Version: 2.4.3
Installed Applications:
['web.render',
 'web.cli',
 'web.browser',
 'web.composer',
 'web.account',
 'web.whitelist',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.admin',
 'django.contrib.contenttypes']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.gzip.GZipMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')

Traceback:
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
  92. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/graphite/webapp/web/render/views.py" in renderView
  107. image = doImageRender(requestOptions['graphClass'], graphOptions)
File "/usr/local/graphite/webapp/web/render/views.py" in doImageRender
  257. img = graphClass(**graphOptions)
File "/usr/local/graphite/webapp/web/render/glyph.py" in __init__
  121. self.drawText("No Data", x, y, align='center')
File "/usr/local/graphite/webapp/web/render/glyph.py" in drawText
  181. extents = self.getExtents(text)
File "/usr/local/graphite/webapp/web/render/glyph.py" in getExtents
  153. F = self.ctx.font_extents()

Exception Type: MemoryError at /render/
Exception Value:

Revision history for this message
gcn (gaochongnan) said :
#2

The problem was solved by following :https://answers.launchpad.net/graphite/+question/38833.

In a word: there's no font install on my server, and then Graphite cannot render the graph.