Elasticsearch issue in koha v22.05.06
Hello, We've recently installed Koha (version 22.05.06) and are attempting to enable Elasticsearch for our system. However, we've encountered some difficulties during the configuration process. The problem arises when we attempt to rebuild or perform searches in the OPAC (Online Public Access Catalog). The error message we encounter is as follows: $ export KOHA_CONF=/etc/pnvmkoha/koha-conf.xml $ export PERL5LIB=/usr/share/pnvmkoha/lib $ /usr/share/pnvmkoha/bin/search_tools/rebuild_elasticsearch.pl -v -d [NoNodes] ** No nodes are available: [localhost:9200], called from sub Search::Elasticsearch::Role::Client::Direct::ANON at /usr/share/koha_inst/lib/Koha/SearchEngine/Elasticsearch/Indexer.pm line 421. Here are some key details: *Elastic search : * root@server1:~# curl localhost:9200 { "name" : "YKwcLd8", "cluster_name" : "elasticsearch", "cluster_uuid" : "kKKWjSXJTPeRCCMYDVNdTw", "version" : { "number" : "6.8.23", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "4f67856", "build_date" : "2022-01-06T21:30:50.087716Z", "build_snapshot" : false, "lucene_version" : "7.7.3", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" } *Java version : * root@server1:~# java --version openjdk 11.0.20.1 2023-08-24 OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04) OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing) *koha-conf.xml : * <elasticsearch> <server>localhost:9200</server> <index_name>KOHA__INST</index_name> <!-- See https://metacpan.org/pod/Search::Elasticsearch#cxn_pool --> <cxn_pool>Static</cxn_pool> <!-- See https://metacpan.org/pod/Search::Elasticsearch#trace_to --> <!-- <trace_to>Stderr</trace_to> --> </elasticsearch> <elasticsearch_index_mappings>/etc/koha_inst/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> *Server Details : * Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy Note : We have tried to enabled ES on koha v20.11.06 and its working fine without any error. Please let me know if you need any additional information or if you have any suggestions to resolve this Elasticsearch configuration problem. -- Thanks and Regards, Amar Londhe
Hello, Any solution. Thanks and Regards, Amar Londhe On 18/10/23 4:41 pm, Amar Londhe wrote:
Hello,
We've recently installed Koha (version 22.05.06) and are attempting to enable Elasticsearch for our system. However, we've encountered some difficulties during the configuration process.
The problem arises when we attempt to rebuild or perform searches in the OPAC (Online Public Access Catalog). The error message we encounter is as follows:
$ export KOHA_CONF=/etc/pnvmkoha/koha-conf.xml $ export PERL5LIB=/usr/share/pnvmkoha/lib $ /usr/share/pnvmkoha/bin/search_tools/rebuild_elasticsearch.pl -v -d
[NoNodes] ** No nodes are available: [localhost:9200], called from sub Search::Elasticsearch::Role::Client::Direct::ANON at /usr/share/koha_inst/lib/Koha/SearchEngine/Elasticsearch/Indexer.pm line 421.
Here are some key details:
*Elastic search : *
root@server1:~# curl localhost:9200 { "name" : "YKwcLd8", "cluster_name" : "elasticsearch", "cluster_uuid" : "kKKWjSXJTPeRCCMYDVNdTw", "version" : { "number" : "6.8.23", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "4f67856", "build_date" : "2022-01-06T21:30:50.087716Z", "build_snapshot" : false, "lucene_version" : "7.7.3", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }
*Java version : *
root@server1:~# java --version openjdk 11.0.20.1 2023-08-24 OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04) OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
*koha-conf.xml : *
<elasticsearch> <server>localhost:9200</server> <index_name>KOHA__INST</index_name> <!-- See https://metacpan.org/pod/Search::Elasticsearch#cxn_pool --> <cxn_pool>Static</cxn_pool> <!-- See https://metacpan.org/pod/Search::Elasticsearch#trace_to --> <!-- <trace_to>Stderr</trace_to> --> </elasticsearch>
<elasticsearch_index_mappings>/etc/koha_inst/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings>
*Server Details : *
Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
Note : We have tried to enabled ES on koha v20.11.06 and its working fine without any error.
Please let me know if you need any additional information or if you have any suggestions to resolve this Elasticsearch configuration problem.
-- Thanks and Regards, Amar Londhe
Hi! On Wed, Oct 18, 2023 at 04:41:25PM +0530, Amar Londhe wrote:
We've recently installed Koha (version 22.05.06) and are attempting to enable Elasticsearch for our system. However, we've encountered some difficulties during the configuration process. .. [NoNodes] ** No nodes are available: [localhost:9200], called from sub Search::Elasticsearch::Role::Client::Direct::ANON at /usr/share/koha_inst/lib/Koha/SearchEngine/Elasticsearch/Indexer.pm line 421.
We had a similar issue (and haven't solved it yet). But in a totally other non-Koha project the reason for the same problem (I assume) was that the current Elasticsearch Perl client won't connect to an older Elasticsearch Server (older = before the Licence switch). see here https://opensearch.org/blog/community-clients/ But maybe there are other issues... I hope to get some time this week to take a closer look. Greetings, domm -- Thomas Klausner domm https://domm.plix.at Just another ( Perl | Postgres | Bicycle | Food | Photo | Vinyl ) Hacker Moneglia, Italy, via Puck, 2 day exposure [ 2023-10-14 10:00 > https://domm.plix.at/potd/2023-10-14.html ] Long and good read: http://bit-player.org/2023/ai-and-the-end-of-programming [ 2023-09-14 12:01 > https://domm.plix.at/microblog.html ]
which ES perl client is installed? the newest version that still works with ES7 (which we are using) is https://metacpan.org/release/EZIMUEL/Search-Elasticsearch-7.717/view/lib/Sea... check currently installed version `perl -MSearch::Elasticsearch\ 9999 Search::Elasticsearch version 9999 required--this is only version 7.717.` if necessary, downgrade `cpanm Search::Elasticsearch~"< 8.00"` please let me know if that fixed your issue. cheers david HKS3 (www.koha-support.eu) On Mon, 23 Oct 2023, at 12:32 PM, Thomas Klausner via Koha-devel wrote:
Hi!
On Wed, Oct 18, 2023 at 04:41:25PM +0530, Amar Londhe wrote:
We've recently installed Koha (version 22.05.06) and are attempting to enable Elasticsearch for our system. However, we've encountered some difficulties during the configuration process. .. [NoNodes] ** No nodes are available: [localhost:9200], called from sub Search::Elasticsearch::Role::Client::Direct::ANON at /usr/share/koha_inst/lib/Koha/SearchEngine/Elasticsearch/Indexer.pm line 421.
We had a similar issue (and haven't solved it yet). But in a totally other non-Koha project the reason for the same problem (I assume) was that the current Elasticsearch Perl client won't connect to an older Elasticsearch Server (older = before the Licence switch).
see here https://opensearch.org/blog/community-clients/
But maybe there are other issues...
I hope to get some time this week to take a closer look.
Greetings, domm
-- Thomas Klausner domm https://domm.plix.at Just another ( Perl | Postgres | Bicycle | Food | Photo | Vinyl ) Hacker
Moneglia, Italy, via Puck, 2 day exposure [ 2023-10-14 10:00 > https://domm.plix.at/potd/2023-10-14.html ]
Long and good read: http://bit-player.org/2023/ai-and-the-end-of-programming [ 2023-09-14 12:01 > https://domm.plix.at/microblog.html ] _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/
participants (3)
-
Amar Londhe -
David Schmidt -
Thomas Klausner