← Back to team overview

graphite-dev team mailing list archive

[Question #145686]: Graphs not rendering, broken image and errors

 

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

Description changed to:
I am having an issue where graphs are throwing an error when trying to
view them (its usually a broken image when viewing in graphite).

When I go to the graph url directly, such as:
http://graphite.local.local/render/?width=586&height=303&_salt=1297904334.99&target=system.loadavg_1min.
I get the following error below.

I have tried installing fonts (bitstream-vera-fonts and bitmap-fonts) yet they didnt fix the issue.
bitmap-fonts-cjk-0.3-5.1.1
bitmap-fonts-0.3-5.1.1
bitstream-vera-fonts-1.10-7

I am running graphite v0.9.7c installed via bzr.
CentOS release 5.5 (Final)
Linux graphite.local.local 2.6.18-194.26.1.el5xen #1 SMP Tue Nov 9 13:35:30 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

Error:


SyntaxError at /render/
invalid syntax (functions.py, line 413)
Request Method:	GET
Request URL:	http://graphite.local.local/render/?width=586&height=303&_salt=1297904334.99&target=system.loadavg_1min
Exception Type:	SyntaxError
Exception Value:	
invalid syntax (functions.py, line 413)
Exception Location:	/opt/graphite/webapp/graphite/render/evaluator.py in ?, line 44
Python Executable:	/usr/bin/python
Python Version:	2.4.3
Python Path:	['/opt/graphite/webapp/', '/opt/graphite/webapp/graphite/thirdparty/', '/opt/graphite/webapp', '/', '/usr/local/graphite/webapp', '/usr/local/graphite/carbon/lib', '/usr/lib64/python24.zip', '/usr/lib64/python2.4', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages', '/usr/lib64/python2.4/site-packages/Numeric', '/usr/lib64/python2.4/site-packages/gtk-2.0', '/usr/lib64/zope/lib/python', '/usr/lib/python2.4/site-packages']
Server time:	Wed, 16 Feb 2011 18:58:59 -0600


Environment:

Request Method: GET
Request URL: http://graphite.local.local/render/?width=586&height=303&_salt=1297904334.99&target=system.loadavg_1min
Django Version: 1.1.3
Python Version: 2.4.3
Installed Applications:
['graphite.metrics',
 'graphite.render',
 'graphite.cli',
 'graphite.browser',
 'graphite.composer',
 'graphite.account',
 'graphite.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
  89.                 callback, callback_args, callback_kwargs = resolver.resolve(
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py" in resolve
  222.                     sub_match = pattern.resolve(new_path)
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py" in resolve
  222.                     sub_match = pattern.resolve(new_path)
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py" in resolve
  129.             return self.callback, args, kwargs
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py" in _get_callback
  135.             self._callback = get_callable(self._callback_str)
File "/usr/lib/python2.4/site-packages/django/utils/functional.py" in wrapper
  130.         result = func(*args)
File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py" in get_callable
  62.                 lookup_view = getattr(import_module(mod_name), func_name)
File "/usr/lib/python2.4/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/opt/graphite/webapp/graphite/render/views.py" in ?
  29. from graphite.render.evaluator import evaluateTarget
File "/opt/graphite/webapp/graphite/render/evaluator.py" in ?
  44. from graphite.render.functions import SeriesFunctions

Exception Type: SyntaxError at /render/
Exception Value: invalid syntax (functions.py, line 413)

Request information

GET
Variable	Value
width	
u'586'
target	
u'system.loadavg_1min'
_salt	
u'1297904334.99'
height	
u'303'
POST
No POST data
FILES
No FILES data
COOKIES
Variable	Value
sessionid	
'd8671450faecd46cf591b66437bbfe25'
META
Variable	Value
AUTH_TYPE	
None
CONTENT_LENGTH	
0
CONTENT_TYPE	
None
GATEWAY_INTERFACE	
'CGI/1.1'
HTTP_ACCEPT	
'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
HTTP_ACCEPT_CHARSET	
'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
HTTP_ACCEPT_ENCODING	
'gzip,deflate,sdch'
HTTP_ACCEPT_LANGUAGE	
'en-US,en;q=0.8'
HTTP_CONNECTION	
'keep-alive'
HTTP_COOKIE	
'sessionid=d8671450faecd46cf591b66437bbfe25'
HTTP_HOST	
'graphite.local.local'
HTTP_USER_AGENT	
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13'
PATH_INFO	
u'/render/'
PATH_TRANSLATED	
None
QUERY_STRING	
'width=586&height=303&_salt=1297904334.99&target=system.loadavg_1min'
REMOTE_ADDR	
'172.20.6.90'
REMOTE_HOST	
None
REMOTE_IDENT	
None
REMOTE_USER	
None
REQUEST_METHOD	
'GET'
SCRIPT_NAME	
''
SERVER_NAME	
'graphite'
SERVER_PORT	
80
SERVER_PROTOCOL	
'HTTP/1.1'
SERVER_SOFTWARE	
'mod_python'
Settings
Using settings module graphite.settings
Setting	Value
ABSOLUTE_URL_OVERRIDES	
{}
ADMINS	
()
ADMIN_FOR	
()
ADMIN_MEDIA_PREFIX	
'/media/'
ALLOWED_INCLUDE_ROOTS	
()
ALLOW_ANONYMOUS_CLI	
True
APPEND_SLASH	
False
AUTHENTICATION_BACKENDS	
['django.contrib.auth.backends.ModelBackend']
BANNED_IPS	
()
CACHE_BACKEND	
'dummy:///'
CACHE_MIDDLEWARE_KEY_PREFIX	
''
CACHE_MIDDLEWARE_SECONDS	
600
CARBONLINK_HOSTS	
['127.0.0.1:7002']
CARBONLINK_TIMEOUT	
1.0
CLUSTER_SERVERS	
[]
COMMENTS_ALLOW_PROFANITIES	
False
COMMENTS_BANNED_USERS_GROUP	
None
COMMENTS_FIRST_FEW	
0
COMMENTS_MODERATORS_GROUP	
None
COMMENTS_SKETCHY_USERS_GROUP	
None
CONTENT_DIR	
'/opt/graphite/webapp/content/'
DATABASE_ENGINE	
'sqlite3'
DATABASE_HOST	
''
DATABASE_NAME	
'/opt/graphite/storage/graphite.db'
DATABASE_OPTIONS	
{}
DATABASE_PASSWORD	
'********************'
DATABASE_PORT	
''
DATABASE_USER	
''
DATA_DIRS	
['/opt/graphite/storage/whisper/']
DATETIME_FORMAT	
'N j, Y, P'
DATE_FORMAT	
'N j, Y'
DEBUG	
True
DEBUG_PROPAGATE_EXCEPTIONS	
False
DEFAULT_CHARSET	
'utf-8'
DEFAULT_CONTENT_TYPE	
'text/html'
DEFAULT_FILE_STORAGE	
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL	
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE	
''
DEFAULT_TABLESPACE	
''
DISALLOWED_USER_AGENTS	
()
DOCUMENTATION_URL	
'http://graphite.wikidot.com/documentation'
EMAIL_HOST	
'localhost'
EMAIL_HOST_PASSWORD	
'********************'
EMAIL_HOST_USER	
''
EMAIL_PORT	
25
EMAIL_SUBJECT_PREFIX	
'[Django] '
EMAIL_USE_TLS	
False
FILE_CHARSET	
'utf-8'
FILE_UPLOAD_HANDLERS	
('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE	
2621440
FILE_UPLOAD_PERMISSIONS	
None
FILE_UPLOAD_TEMP_DIR	
None
FIXTURE_DIRS	
()
FORCE_SCRIPT_NAME	
None
GRAPHITE_ROOT	
'/opt/graphite/'
IGNORABLE_404_ENDS	
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS	
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INDEX_FILE	
'/opt/graphite/storage/index'
INSTALLED_APPS	
['graphite.metrics', 'graphite.render', 'graphite.cli', 'graphite.browser', 'graphite.composer', 'graphite.account', 'graphite.whitelist', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.contenttypes']
INTERNAL_IPS	
()
LANGUAGES	
(('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es-ar', 'Argentinean Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGES_BIDI	
('he', 'ar', 'fa')
LANGUAGE_CODE	
'en-us'
LANGUAGE_COOKIE_NAME	
'django_language'
LDAP_BASE_PASS	
''
LDAP_BASE_USER	
''
LDAP_PORT	
389
LDAP_SEARCH_BASE	
''
LDAP_SERVER	
''
LDAP_USER_QUERY	
''
LEGEND_MAX_ITEMS	
10
LISTS_DIR	
'/opt/graphite/storage/lists/'
LOCALE_PATHS	
()
LOGIN_REDIRECT_URL	
'/accounts/profile/'
LOGIN_URL	
'/accounts/login/'
LOGOUT_URL	
'/accounts/logout/'
LOG_CACHE_PERFORMANCE	
False
LOG_DIR	
'/opt/graphite/storage/log/webapp/'
LOG_METRIC_ACCESS	
False
LOG_RENDERING_PERFORMANCE	
False
MANAGERS	
()
MEDIA_ROOT	
''
MEDIA_URL	
''
MEMCACHE_DURATION	
60
MEMCACHE_HOSTS	
[]
MIDDLEWARE_CLASSES	
('django.middleware.common.CommonMiddleware', 'django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware')
MONTH_DAY_FORMAT	
'F j'
PASSWORD_RESET_TIMEOUT_DAYS	
'********************'
PREPEND_WWW	
False
PROFANITIES_LIST	
'********************'
REMOTE_FIND_CACHE_DURATION	
300
REMOTE_RENDERING	
False
REMOTE_RENDER_CONNECT_TIMEOUT	
1.0
RENDERING_HOSTS	
[]
ROOT_URLCONF	
'graphite.urls'
RRD_DIR	
'/opt/graphite/storage/rrd/'
SECRET_KEY	
'********************'
SEND_BROKEN_LINK_EMAILS	
False
SERVER_EMAIL	
'root@localhost'
SESSION_COOKIE_AGE	
1209600
SESSION_COOKIE_DOMAIN	
None
SESSION_COOKIE_NAME	
'sessionid'
SESSION_COOKIE_PATH	
'/'
SESSION_COOKIE_SECURE	
False
SESSION_ENGINE	
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE	
False
SESSION_FILE_PATH	
None
SESSION_SAVE_EVERY_REQUEST	
False
SETTINGS_MODULE	
'graphite.settings'
SITE_ID	
1
SMTP_SERVER	
'localhost'
STORAGE_DIR	
'/opt/graphite/storage/'
TEMPLATE_CONTEXT_PROCESSORS	
('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')
TEMPLATE_DEBUG	
True
TEMPLATE_DIRS	
('/opt/graphite/webapp/graphite/templates',)
TEMPLATE_LOADERS	
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID	
''
TEST_DATABASE_CHARSET	
None
TEST_DATABASE_COLLATION	
None
TEST_DATABASE_NAME	
None
TEST_RUNNER	
'django.test.simple.run_tests'
THIRDPARTY_DIR	
'/opt/graphite/webapp/graphite/thirdparty/'
TIME_FORMAT	
'P'
TIME_ZONE	
'America/Chicago'
TRANSACTIONS_MANAGED	
False
URL_VALIDATOR_USER_AGENT	
'Django/1.1.3 (http://www.djangoproject.com)'
USE_ETAGS	
False
USE_I18N	
True
USE_LDAP_AUTH	
False
WEBAPP_DIR	
'/opt/graphite/webapp/'
WEB_DIR	
'/opt/graphite/webapp/graphite/'
WHISPER_DIR	
'/opt/graphite/storage/whisper/'
WHITELIST_FILE	
'/opt/graphite/storage/lists/whitelist'
YEAR_MONTH_FORMAT	
'F Y'

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