I've moved our ElasticSearch server to an another machine, which is running Ubuntu 20.04 and where were installed the package default-jre
, which contains Java 11 and the package elasticsearch-6.5.4.deb
. The MediaWiki's version is 1.34 and the port 9200 is forwarded via SSH.
Then I've rebuild the search index according to the instructions provided in the README file. Everything went well.
Unfortunately when I tried to use the search feature of the wiki, by the web interface, I received the message: We could not complete your search due to a temporary problem. Please try again later.
After a while, I found the ElasticSearch service is dead, with the following reason:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely...
So in order to get ElasticSearch operational I've switched to Java 8 (reference) by using the following commands:
sudo apt install openjdk-8-jre-headless sudo apt install openjdk-8-jdk-headless sudo update-alternatives --config java sudo update-alternatives --config javac sudo systemctl restart elasticsearch.service curl 'http://127.0.0.1:9200' # do a test
Now everything works great!
I do not know which is the trouble maker Extension:CirrusSearch
or the ElasticSearch
service, but I think it will be meaningful to include some additional information of the compatibility with the different Java versions.
Regards! Spas Spasov