graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04506
Re: [Question #239894]: Issue with webapp not showing graphs
Question #239894 on Graphite changed:
https://answers.launchpad.net/graphite/+question/239894
wingZero gave more information on the question:
This is the debug output
Details:
IndexError at /render/
list index out of range
Request Method: GET
Request URL: http://graphite002/render/?width=586&height=308&_salt=1385540798.859
Django Version: 1.3.7
Exception Type: IndexError
Exception Value:
list index out of range
Exception Location: /usr/local/graphite/webapp/graphite/render/datalib.py in <module>, line 198
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:
['/usr/local/graphite/lib/python2.6/site-packages',
'/usr/local/graphite/webapp',
'/usr/local/graphite/lib/python2.6/site-packages',
'/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib/python2.6/site-packages',
'/usr/local/graphite/webapp',
'/usr/local/graphite/webapp/graphite/thirdparty']
Server time: Wed, 27 Nov 2013 09:15:15 +0000
Traceback Switch to copy-and-paste view
/usr/lib/python2.6/site-packages/django/core/handlers/base.py in get_response
request.path_info) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/core/urlresolvers.py in resolve
sub_match = pattern.resolve(new_path) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/core/urlresolvers.py in resolve
sub_match = pattern.resolve(new_path) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/core/urlresolvers.py in resolve
return ResolverMatch(self.callback, args, kwargs, self.name) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/core/urlresolvers.py in _get_callback
self._callback = get_callable(self._callback_str) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/functional.py in wrapper
result = func(*args) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/core/urlresolvers.py in get_callable
lookup_view = getattr(import_module(mod_name), func_name) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/importlib.py in import_module
__import__(name) ...
▶ Local vars
/usr/local/graphite/webapp/graphite/render/views.py in <module>
from graphite.render.evaluator import evaluateTarget ...
▶ Local vars
/usr/local/graphite/webapp/graphite/render/evaluator.py in <module>
from graphite.render.datalib import fetchData, TimeSeries ...
▶ Local vars
/usr/local/graphite/webapp/graphite/render/datalib.py in <module>
port = int( parts[1] ) ...
▶ Local vars
Request information
GET
Variable Value
width
u'586'
_salt
u'1385540798.859'
height
u'308'
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
user
'STATUS=0&HASH=4d8d40a2ee38068fa815d11a70e986e5&PR=&ID=664b87e2-6c78-4aa3-9dff-ada8a8209941'
META
Variable Value
mod_wsgi.listener_port
'80'
HTTP_COOKIE
'user=STATUS=0&HASH=4d8d40a2ee38068fa815d11a70e986e5&PR=&ID=664b87e2-6c78-4aa3-9dff-ada8a8209941'
mod_wsgi.listener_host
''
SERVER_SOFTWARE
'Apache/2.2.15 (CentOS)'
SCRIPT_NAME
u''
mod_ssl.var_lookup
''
mod_wsgi.handler_script
''
SERVER_SIGNATURE
'<address>Apache/2.2.15 (CentOS) Server at graphite002 Port 80</address>\n'
REQUEST_METHOD
'GET'
PATH_INFO
u'/render/'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
'width=586&height=308&_salt=1385540798.859'
HTTP_USER_AGENT
'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36'
HTTP_CONNECTION
'keep-alive'
HTTP_REFERER
'http://graphite002/composer/?'
SERVER_NAME
'graphite002'
REMOTE_ADDR
'192.168.101.210'
mod_wsgi.request_handler
'wsgi-script'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'/usr/local/graphite/conf/graphite.wsgi/render/'
SERVER_PORT
'80'
wsgi.multiprocess
True
mod_wsgi.input_chunked
'0'
SERVER_ADDR
'172.18.26.45'
DOCUMENT_ROOT
'/usr/local/graphite/webapp'
mod_wsgi.process_group
''
SCRIPT_FILENAME
'/usr/local/graphite/conf/graphite.wsgi'
SERVER_ADMIN
'root@localhost'
wsgi.input
<mod_wsgi.Input object at 0x7fe6d73f8f70>
HTTP_HOST
'graphite002'
mod_ssl.is_https
0
wsgi.multithread
False
mod_wsgi.callable_object
'application'
HTTP_CACHE_CONTROL
'max-age=0'
REQUEST_URI
'/render/?width=586&height=308&_salt=1385540798.859'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
wsgi.version
(1, 1)
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
wsgi.errors
<mod_wsgi.Log object at 0x7fe6d73f8fb0>
REMOTE_PORT
'59642'
HTTP_ACCEPT_LANGUAGE
'en-GB,en-US;q=0.8,en;q=0.6'
mod_wsgi.version
(3, 2)
mod_wsgi.application_group
'graphite.live.dc1.tradermedia.net|'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
Settings
Using settings module graphite.settings
Setting Value
REMOTE_RENDERING
False
EMAIL_USE_TLS
False
TIME_ZONE
'Europe/London'
_APP_SETTINGS_LOADED
False
DOCUMENTATION_URL
'http://graphite.readthedocs.org/'
LDAP_URI
None
LANGUAGE_CODE
'en-us'
ROOT_URLCONF
'graphite.urls'
MANAGERS
()
CARBONLINK_TIMEOUT
1.0
GRAPHITE_ROOT
'/usr/local/graphite'
CLUSTER_SERVERS
['graphite002',
'graphite003']
DEFAULT_CHARSET
'utf-8'
WEBAPP_DIR
'/usr/local/graphite/webapp'
STATIC_ROOT
''
TEST_DATABASE_CHARSET
None
USE_THOUSAND_SEPARATOR
False
ALLOWED_HOSTS
['*']
REMOTE_RENDER_CONNECT_TIMEOUT
1.0
MESSAGE_STORAGE
'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
DATABASE_HOST
''
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.3.7 (http://www.djangoproject.com)'
CONF_DIR
'/usr/local/graphite/conf'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
LDAP_BASE_USER
''
COMMENTS_MODERATORS_GROUP
None
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3',
'HOST': '',
'NAME': '/usr/local/graphite/storage/graphite.db',
'OPTIONS': {},
'PASSWORD': '********************',
'PORT': '',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_MIRROR': None,
'TEST_NAME': None,
'TIME_ZONE': 'Europe/London',
'USER': ''}}
TEST_DATABASE_NAME
None
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')
LOG_CACHE_PERFORMANCE
False
DEFAULT_CONTENT_TYPE
'text/html'
REMOTE_STORE_RETRY_DELAY
60
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
APPEND_SLASH
False
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
CARBONLINK_HOSTS
['graphite002',
'graphite003']
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
INDEX_FILE
'/usr/local/graphite/storage/index'
CSS_DIR
'/usr/local/graphite/webapp/content/css'
LEGEND_MAX_ITEMS
10
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
USE_X_FORWARDED_HOST
False
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
'django.middleware.gzip.GZipMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
USE_I18N
True
LDAP_USER_QUERY
''
SECRET_KEY
'********************'
LANGUAGE_COOKIE_NAME
'django_language'
USE_REMOTE_USER_AUTHENTICATION
False
FILE_UPLOAD_TEMP_DIR
None
LDAP_SEARCH_BASE
''
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader')
LOG_DIR
'/usr/local/graphite/storage/log/webapp'
REMOTE_STORE_FIND_TIMEOUT
2.5
TEMPLATE_DEBUG
False
CSRF_COOKIE_NAME
'csrftoken'
TEST_DATABASE_COLLATION
None
EMAIL_HOST_PASSWORD
'********************'
CACHE_BACKEND
'dummy:///'
LDAP_PORT
389
SESSION_COOKIE_SECURE
False
REMOTE_STORE_FETCH_TIMEOUT
6
LDAP_BASE_PASS
''
JAVASCRIPT_DEBUG
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
['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']
LANGUAGES
(('ar', 'Arabic'),
('az', 'Azerbaijani'),
('bg', 'Bulgarian'),
('bn', 'Bengali'),
('bs', 'Bosnian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('cy', 'Welsh'),
('da', 'Danish'),
('de', 'German'),
('el', 'Greek'),
('en', 'English'),
('en-gb', 'British English'),
('es', 'Spanish'),
('es-ar', 'Argentinian Spanish'),
('es-mx', 'Mexican Spanish'),
('es-ni', 'Nicaraguan 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'),
('id', 'Indonesian'),
('is', 'Icelandic'),
('it', 'Italian'),
('ja', 'Japanese'),
('ka', 'Georgian'),
('km', 'Khmer'),
('kn', 'Kannada'),
('ko', 'Korean'),
('lt', 'Lithuanian'),
('lv', 'Latvian'),
('mk', 'Macedonian'),
('ml', 'Malayalam'),
('mn', 'Mongolian'),
('nl', 'Dutch'),
('no', 'Norwegian'),
('nb', 'Norwegian Bokmal'),
('nn', 'Norwegian Nynorsk'),
('pa', 'Punjabi'),
('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'),
('ur', 'Urdu'),
('vi', 'Vietnamese'),
('zh-cn', 'Simplified Chinese'),
('zh-tw', 'Traditional Chinese'))
USE_L10N
False
DATABASE_ENGINE
'django.db.backends.sqlite3'
EMAIL_HOST_USER
''
DATABASE_NAME
'/usr/local/graphite/storage/graphite.db'
COMMENTS_FIRST_FEW
0
PREPEND_WWW
False
SESSION_COOKIE_HTTPONLY
False
DATABASE_PORT
''
DEBUG_PROPAGATE_EXCEPTIONS
False
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
'LOCATION': ''}}
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/account/login'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_SAVE_EVERY_REQUEST
False
LDAP_SERVER
''
TIME_FORMAT
'P'
MEMCACHE_HOSTS
[]
DATA_DIRS
['/usr/local/graphite/storage/whisper/']
DATE_INPUT_FORMATS
('%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y')
CONTENT_DIR
'/usr/local/graphite/webapp/content'
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
FORCE_SCRIPT_NAME
None
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
CACHE_MIDDLEWARE_ALIAS
'default'
REMOTE_FIND_CACHE_DURATION
300
ADMIN_MEDIA_PREFIX
'/media/'
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
COMMENTS_SKETCHY_USERS_GROUP
None
LOGIN_REDIRECT_URL
'/accounts/profile/'
ADMIN_FOR
()
FLUSHRRDCACHED
''
DECIMAL_SEPARATOR
'.'
CACHE_MIDDLEWARE_KEY_PREFIX
''
LOCALE_PATHS
()
WHITELIST_FILE
'/usr/local/graphite/storage/lists/whitelist'
TEMPLATE_STRING_IF_INVALID
''
COMMENTS_ALLOW_PROFANITIES
False
LOGOUT_URL
'/accounts/logout/'
STORAGE_DIR
'/usr/local/graphite/storage'
DASHBOARD_CONF
'/usr/local/graphite/conf/dashboard.conf'
TEMPLATE_DIRS
('/usr/local/graphite/webapp/graphite/templates',)
RRD_DIR
'/usr/local/graphite/storage/rrd/'
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
''
THIRDPARTY_DIR
'/usr/local/graphite/webapp/graphite/thirdparty'
ADMINS
()
LOG_METRIC_ACCESS
False
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
THOUSAND_SEPARATOR
','
WEB_DIR
'/usr/local/graphite/webapp/graphite'
STATICFILES_DIRS
()
MEDIA_URL
''
DATETIME_FORMAT
'N j, Y, P'
EMAIL_SUBJECT_PREFIX
'[Django] '
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
USE_LDAP_AUTH
False
LOGGING
{'disable_existing_loggers': False,
'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
'level': 'ERROR'}},
'loggers': {'django.request': {'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True}},
'version': 1}
SHORT_DATE_FORMAT
'm/d/Y'
DATABASE_USER
''
WEBAPP_VERSION
'0.9.10'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SMTP_SERVER
'localhost'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
WHISPER_DIR
'/usr/local/graphite/storage/whisper/'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.contrib.messages.context_processors.messages')
RENDERING_HOSTS
[]
ALLOW_ANONYMOUS_CLI
True
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'graphite.settings'
USE_ETAGS
False
DEFAULT_CACHE_DURATION
60
LANGUAGES_BIDI
('he', 'ar', 'fa')
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
()
STATIC_URL
None
EMAIL_PORT
25
LOG_RENDERING_PERFORMANCE
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
ABSOLUTE_URL_OVERRIDES
{}
DATABASE_OPTIONS
{}
CACHE_MIDDLEWARE_SECONDS
600
BANNED_IPS
()
DATETIME_INPUT_FORMATS
('%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M',
'%Y-%m-%d',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M',
'%m/%d/%Y',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M',
'%m/%d/%y')
DATABASE_PASSWORD
'********************'
GRAPHTEMPLATES_CONF
'/usr/local/graphite/conf/graphTemplates.conf'
PROFANITIES_LIST
'********************'
DJANGO_VERSION
(1, 3, 7, 'final', 0)
COMMENTS_BANNED_USERS_GROUP
None
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.