P
P
Pavel Solovyov2014-03-19 12:51:38
Django
Pavel Solovyov, 2014-03-19 12:51:38

Why does Django haystack stop Elasticsearch?

I use django + haystack + elasticsearch. Installed on a production server (Ubuntu 12.04 64 bit). After the reboot, I run ./manage.py update_index - the indexes will update normally. I go to the search, start searching, it also works fine, but after that, if I run the index update command again, elasticsearch stops and an error occurs:
Indexing 14 posts
ERROR:root:Error updating core using default
Traceback (most recent call last):
File " /usr/local/lib/python2.7/dist-packages/haystack/management/commands/update_index.py", line 221, in handle_label
...
I restart elasticsearch, the search works back, but you can't do updates after the server is restarted update can be done again. Who faced?
PS on the locale, of course, everything works :) the libraries are installed exactly the same from requirements.txt

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Solovyov, 2014-03-19
@pavel_salauyou

The problem was the lack of memory when updating indexes.

Z
zxmd, 2014-03-19
@zxmd

What is the ES version?

Z
zxmd, 2014-03-19
@zxmd

The case is similar to yours:
stackoverflow.com/questions/17608100/haystack-inde...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question