Topic on Project:Support desk

Getting "error: ElasticaWrite job failed" Message

5
Timtaytango (talkcontribs)

* MediaWiki version: 1.35.3

* PHP version: 7.4

* Database type and version: mysql 8.0.31


We're getting the below message whenever we run "php maintenance/runJobs.php". The effect being, while the mediawiki page still loads, the contents are not updated. We've tried searching for possible clues to the issues online and did not find anything. Would appreciate any leads, please. Thank you!


cirrusSearchElasticaWrite Special: method=sendData ... t=12 error=ElasticaWrite job failed: Requeued

Bawolff (talkcontribs)

Is ElasticSearch running and configured properly? (Or if you dont want to run elastic search, disable the CirrusSearch extension)

Timtaytango (talkcontribs)

Yes, elasticsearch service is running (version 6.8.22, on ubuntu 20.04). We ran a check on the health and the status shows "green"

Timtaytango (talkcontribs)

I also noticed the following lines in elasticsearch_deprecation.log, consistently being added whenever we run the runJobs php script (not sure if it can be considered a possible cause for the ElasticaWrite job failed messages):


Deprecated field [_retry_on_conflict] used, expected [retry_on_conflict] instead

Ernstkm (talkcontribs)

This may be due to Elasticsearch having run out of disk space for the indexes at one point, and set them to read-only.

I'm not an Elasticsearch expert, but I did run into this before with some other software that uses it, so this was familiar ground once I realized I was having the same issue with CirrusSearch.

The solution in both cases was to free disk space and/or alter the "high water" or "flood-stage" settings in Elasticsearch, then unblock the indexes as prescribed in this Support desk topic. This seems like something that CirrusSearch could detect, and give better error messages about, or even something that Elasticsearch could give better error messages about, but alas. Here we are, googling the error message.

On the topic of the deprecation warnings in elasticsearch_deprecation.log, I wouldn't worry too much about those. That is a warning to the developers of the CirrusSearch extension (that they need to update their code), not you.

Two years too late, but I hope that helps someone. --Ernstkm (talk) 13:14, 4 June 2024 (UTC)

Reply to "Getting "error: ElasticaWrite job failed" Message"