Illustration of connected portfolio elements

Portfolios for your
learning community

Try out Mahara

Create portfolios

Using Mahara, students and staff create their personal learning stories by uploading evidence of activities they have participated in, and embedding publicly accessible content they have previously put online. They can write reflections on their experiences that frame this evidence, map it to competencies or registration requirements, and provide necessary context.

Mahara can be used for many different portfolio purposes, such as study, professional development, work-integrated learning, assessment, showcase and presentation, and employability.

Learn about the portfolio options

Illustration of a person with their portfolio
Illustration of a paper airplane representing sharing

Share work

Mahara allows portfolios to be shared flexibly with one person, a specific group of people, or the entire world. Access can be further restricted to a particular time frame or just within an assessment task.

Find out about sharing portfolios

Engage with others

Mahara makes it easy to comment and give feedback. Portfolios can also be submitted to learning management systems via LTI (Learning Tools Interoperability) for marking.

Groups in Mahara allow people to create portfolios collaboratively and engage in forum discussions.

Learn about collaborating in Mahara

Illustration of a group of people collaborating
Illustration of a podcast logo

Listen to portfolio stories

In our podcast 'Create. Share. Engage.' portfolio practitioners, researchers, learning designers, and portfolio authors share their journey. Learn how they navigate the many different facets of portfolios in general, and Mahara specifically.

Listen on the podcast website or in your favourite app

Mahara Community

elasticsearch error

Bruno Malaval's profile picture
Bruno Malaval
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
Robert Lyon
Posts: 822
14 March 2017, 11:03

Re: elasticsearch error

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
Bruno Malaval
Posts: 6
14 March 2017, 20:53

Re: elasticsearch error

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