Skip to content

Instantly share code, notes, and snippets.

@madAndroid
Created August 13, 2013 10:48
Show Gist options
  • Save madAndroid/6220015 to your computer and use it in GitHub Desktop.
Save madAndroid/6220015 to your computer and use it in GitHub Desktop.
WARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'.
Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.
Are you sure you wish to continue? [y/N] y
Removing all documents from your index because you said so.
All documents removed.
Indexing 10 posts
ERROR:root:Error updating wall using default
Traceback (most recent call last):
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 221, in handle_label
self.update_backend(label, using)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 267, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 89, in do_update
backend.update(index, current_qs)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/backends/elasticsearch_backend.py", line 161, in update
prepped_data = index.full_prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/indexes.py", line 204, in full_prepare
self.prepared_data = self.prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/indexes.py", line 195, in prepare
self.prepared_data[field.index_fieldname] = field.prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 154, in prepare
return self.convert(super(CharField, self).prepare(obj))
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 75, in prepare
return self.prepare_template(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 131, in prepare_template
t = loader.select_template(template_names)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/template/loader.py", line 186, in select_template
raise TemplateDoesNotExist(', '.join(not_found))
TemplateDoesNotExist: search/indexes/wall/post_text.txt
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/__init__.py", line 397, in execute_from_command_line
utility.execute()
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/__init__.py", line 390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/base.py", line 240, in run_from_argv
self.execute(*args, **options.__dict__)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/base.py", line 283, in execute
output = self.handle(*args, **options)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/rebuild_index.py", line 16, in handle
call_command('update_index', **options)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
return klass.execute(*args, **defaults)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/base.py", line 283, in execute
output = self.handle(*args, **options)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 195, in handle
return super(Command, self).handle(*items, **options)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/core/management/base.py", line 383, in handle
label_output = self.handle_label(label, **options)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 221, in handle_label
self.update_backend(label, using)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 267, in update_backend
do_update(backend, index, qs, start, end, total, self.verbosity)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/management/commands/update_index.py", line 89, in do_update
backend.update(index, current_qs)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/backends/elasticsearch_backend.py", line 161, in update
prepped_data = index.full_prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/indexes.py", line 204, in full_prepare
self.prepared_data = self.prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/indexes.py", line 195, in prepare
self.prepared_data[field.index_fieldname] = field.prepare(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 154, in prepare
return self.convert(super(CharField, self).prepare(obj))
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 75, in prepare
return self.prepare_template(obj)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/haystack/fields.py", line 131, in prepare_template
t = loader.select_template(template_names)
File "/srv/django/dev_twiglet/lib/python2.7/site-packages/django/template/loader.py", line 186, in select_template
raise TemplateDoesNotExist(', '.join(not_found))
django.template.base.TemplateDoesNotExist: search/indexes/wall/post_text.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment