Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eloi Cuevas  
View profile  
 More options Mar 22 2012, 1:04 pm
From: Eloi Cuevas <f15m...@gmail.com>
Date: Thu, 22 Mar 2012 10:04:08 -0700 (PDT)
Local: Thurs, Mar 22 2012 1:04 pm
Subject: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

I´m trying to update a project from Haystack 1.X to Haystack 2.0 in order
to use Elasticsearch backend but i am not confident if it´s running
correctly.

*How i have integrated Haystack 2.0 Beta / Elasticsearch*

Installed / Configured modules by following Haystack Official Documentation:

   - Haystack 2.0 BETA Version
   - Elasticsearch v0.18.7 (i haven´t modified the yaml file because i´m
   not developing locally)
   - Pyelasticsearch v0.0.5 from toastdriven (don´t use it from rhec, it
   seems to be incomplete for this purpose)
   - Requests v0.10.6
   - Simplejson v2.4.0

Migrated Haystack Indexes from 1.XX to 2.0 Version as recommends Haystack
Official Documentation:

   - Removed old haystack settings and created HAYSTACK_CONNECTIONS
   targeting elasticSearch, put it as unique and default engine.
   - Used SearchIndex and Indexable for my indexes, added get_model and
   index_queryset functions
   - Removed get_queryset deprecated function and the registration
   statements

  *Issue:*

The point is that unfortunately while i´m trying to rebuild indexes raises
this Error:

> $ python manage.py rebuild_index
> Removing all documents from your index because you said so.
> Failed to clear Elasticsearch index: Non-OK status code returned (404)
> containing 'IndexMissingException[[haystack] missing]'.
> All documents removed.

Despite of that haystack rebuild indexes. I was trying to know more about
this issue but i haven´t found useful information regarding it. Could
anyone give me some clues about this exception?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eloi Cuevas  
View profile  
 More options Mar 23 2012, 6:59 am
From: Eloi Cuevas <f15m...@gmail.com>
Date: Fri, 23 Mar 2012 03:59:17 -0700 (PDT)
Local: Fri, Mar 23 2012 6:59 am
Subject: Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

Today i have run elasticsearch test to know more about this issue...

Test is passed but still has some dodgy lines regarding Non-OK status
errors:

$ django-admin.py test elasticsearch_tests  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eloi Cuevas  
View profile  
 More options Mar 30 2012, 7:47 am
From: Eloi Cuevas <f15m...@gmail.com>
Date: Fri, 30 Mar 2012 04:47:23 -0700 (PDT)
Local: Fri, Mar 30 2012 7:47 am
Subject: Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

More about my Haystack & ES Enviroment:

   - Python 2.6.1
   - Django 1.3.1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Burrows  
View profile  
 More options Mar 30 2012, 9:34 pm
From: Stephen Burrows <stephen.r.burr...@gmail.com>
Date: Fri, 30 Mar 2012 18:34:31 -0700
Local: Fri, Mar 30 2012 9:34 pm
Subject: Re: [django-haystack] Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

Don't worry about those messages; they're annoying, but AFAICT they don't
signal anything bad.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Tran  
View profile  
 More options Aug 3 2012, 1:15 am
From: Kevin Tran <hekevint...@gmail.com>
Date: Thu, 2 Aug 2012 22:15:07 -0700 (PDT)
Local: Fri, Aug 3 2012 1:15 am
Subject: Re: [django-haystack] Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

I am also getting this error. It is a serious problem if you
set SILENTLY_FAIL to False in the Haystack connection settings. In my case
I cannot even rebuild the index because it loudly crashes on this error.

Is this a bug in Haystack? Does anyone know what the real cause of it is?

Below is my traceback.

$ bin/manage rebuild_index

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.
Traceback (most recent call last):
  File "bin/manage", line 42, in <module>
    djangorecipe.manage.main('dje.settings')
  File
"/Users/haitran/.buildout/eggs/djangorecipe-1.1.2-py2.6.egg/djangorecipe/ma nage.py",
line 19, in main
    management.execute_manager(mod)
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ __init__.py",
line 459, in execute_manager
    utility.execute()
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ __init__.py",
line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ base.py",
line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ base.py",
line 232, in execute
    output = self.handle(*args, **options)
  File
"/Users/haitran/.buildout/eggs/django_haystack-2.0.0_beta-py2.6.egg/haystac k/management/commands/rebuild_index.py",
line 14, in handle
    call_command('clear_index', **options)
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ __init__.py",
line 150, in call_command
    return klass.execute(*args, **defaults)
  File
"/Users/haitran/.buildout/eggs/Django-1.4-py2.6.egg/django/core/management/ base.py",
line 232, in execute
    output = self.handle(*args, **options)
  File
"/Users/haitran/.buildout/eggs/django_haystack-2.0.0_beta-py2.6.egg/haystac k/management/commands/clear_index.py",
line 41, in handle
    backend.clear()
  File
"/Users/haitran/.buildout/eggs/django_haystack-2.0.0_beta-py2.6.egg/haystac k/backends/elasticsearch_backend.py",
line 224, in clear
    self.conn.refresh(indexes=[self.index_name])
  File "/Users/haitran/repos/dejacode/enterprise/pyelasticsearch.py", line
412, in refresh
    response = self._send_request('POST', path)
  File "/Users/haitran/repos/dejacode/enterprise/pyelasticsearch.py", line
213, in _send_request
    raise ElasticSearchError("Non-OK status code returned (%d) containing
%r." % (resp.status_code, prepped_response.get('error', prepped_response)))
pyelasticsearch.ElasticSearchError: Non-OK status code returned (404)
containing u'IndexMissingException[[haystack] missing]'.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
houmie  
View profile   Translate to Translated (View Original)
 More options Aug 27 2012, 7:09 am
From: houmie <hou...@gmail.com>
Date: Mon, 27 Aug 2012 04:09:51 -0700 (PDT)
Local: Mon, Aug 27 2012 7:09 am
Subject: Re: [django-haystack] Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

I have the same problem.

I was just trying to do the usage samples on the website:
https://github.com/toastdriven/pyelasticsearch

And I already get this error:

pyelasticsearch.ElasticSearchError: Non-OK status code returned (404) containing 'IndexMissingException[[_all] missing]'

It doesn't seem to be cooked yet.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Tran  
View profile  
 More options Sep 20 2012, 6:37 am
From: Kevin Tran <hekevint...@gmail.com>
Date: Thu, 20 Sep 2012 03:37:20 -0700 (PDT)
Local: Thurs, Sep 20 2012 6:37 am
Subject: Re: [django-haystack] Re: Integrating Haystack 2.0 Beta with Elasticsearch Issue: 'IndexMissingException[[haystack] missing

This was solved in the pull
request https://github.com/toastdriven/django-haystack/pull/647


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »