Forums | Mahara Community

Support /
elasticsearch error


Bruno Malaval's profile picture
Posts: 6

14 March 2017, 3:54

Hi,

I try to use elasticsearch in mahara, but got always the same error

I install several version of elasticsearch, but error is always the same.

When I activate elasticsearch, index are not build. The error is :
"Indexing cron job is running. Please try again in a few minutes."

In the php log, I found:
Skipping long-running cron job search_elasticsearch_cron

Because I make several try, I found in config table from database, the key :
_cron_lock_search_elasticsearch_cron

I delete this entry, and try to rebuild indexes but this has no effect

When I try to use search, I got :

Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /var/www/html/mahara-16.10/htdocs/lib/elastica/lib/Elastica/Exception/ResponseException.php on line 34

I suppose the second error is normal because indexes are not set

I use mahara 16.10, try elasticsearch 5.2.2 , 2.3.5 , 2.3.1 ... always the same error

I read the doc to install and configure elasticsearch, but it soesn't work.

Thanks for your help

Robert Lyon's profile picture
Posts: 773

14 March 2017, 11:03

Hi Bruno

The Elastica interface (http://elastica.io/) in Mahara is currently only compatible with Elasticsearch 1.7.3

For Ubuntu it can be fetched from https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.deb

Try using that version of Elasticsearch and see how you get on.

There is a wish to make Mahara compatible with later versions of Elasticsearch by updating the Elastica interface - so if you are able to get it working with a newer version that would be awesome!

Cheers

Robert

Bruno Malaval's profile picture
Posts: 6

14 March 2017, 20:53

Hi Robert,

Thanks a lot for your answer, it works.

It seems to be very hard to update on a latest version of Elasticsearch, if we consider versions of Elasticsearch engine, Elastica library and PHP required.

In my case, I would try this on a test server as soon as I have time. We use elasticsearch only for Mahara, so there are no other dependencies. Perhaps I can try to change both (lib and engine). But the lib is in the mahara core, so it we'll be complicated for the next update.

I will tell you if I can make it works.

Have a good day and thanks again.

Bruno

3 results