graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04369
[Question #236498]: Graphite Events view reports error - Could not build index
New question #236498 on Graphite:
https://answers.launchpad.net/graphite/+question/236498
When I go to GRAPHITE_URL/events, I see the following -
No events. Add events using the admin interface or by posting (eg, curl -X POST http://localhost:8000/events/ -d '{"what": "Something Interesting", "tags" : "tag1 "}')
When I click on 'admin interface' link in the above text, it takes me to GRAPHITE_URL/admin/events/event that shows the following stack trace -
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 140, in get_response
response = response.render()
File "/usr/lib/python2.6/site-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/usr/lib/python2.6/site-packages/django/template/response.py", line 82, in rendered_content
content = template.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 285, in render
return nodelist.render(context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/usr/lib/python2.6/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 413, in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 467, in reverse
app_list = resolver.app_dict[ns]
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 311, in app_dict
self._populate()
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 274, in _populate
for name in pattern.reverse_dict:
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 297, in reverse_dict
self._populate()
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 286, in _populate
lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 230, in callback
self._callback = get_callable(self._callback_str)
File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 31, in wrapper
result = func(*args)
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 97, in get_callable
mod = import_module(mod_name)
File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/graphite/webapp/graphite/metrics/views.py", line 22, in <module>
from graphite.metrics.search import searcher
File "/opt/graphite/webapp/graphite/metrics/search.py", line 108, in <module>
searcher = IndexSearcher(settings.INDEX_FILE)
File "/opt/graphite/webapp/graphite/metrics/search.py", line 17, in __init__
raise RuntimeError("Couldn't build index file %s" % index_path)
RuntimeError: Couldn't build index file /opt/graphite/storage/index
How can I use the Graphite Events feature.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.