Bug 39097

Summary: [NoNodes] ** No nodes are available: [http://localhost:9200] after upgrading
Product: Koha Reporter: Simon Hohl <simon.hohl>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low    
Version: 24.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Simon Hohl 2025-02-11 15:56:22 UTC
The is already bug #30898, concerning tests. But I have an issue after upgrading to Debian bookworm and Koha 24.11 (from 21.11).

I get the following error:
```
# koha-elasticsearch --rebuild -d -v myinstance
[16419] Checking state of biblios index
[16419] Dropping and recreating biblios index
[NoNodes] ** No nodes are available: [http://localhost:9200], called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /usr/share/koha/lib/Koha/SearchEngine/Elasticsearch/Indexer.pm line 437.Something went wrong rebuilding indexes for myinstance
```

cURL returns:
```
# curl localhost:9200
{
  "name" : "UMcmM90",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Cpb1dvL5S1SFkfJseUMcEQ",
  "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"
}
```

Any pointers towards how to debug this further? This also seems to crash my `/cgi-bin/koha/about.pl`?
Comment 1 Katrin Fischer 2025-02-11 16:37:19 UTC
Hi, this sounds more like a support request/setup issue and as such is better suited for the mailing list or the Mattermost community chat (https://chat.koha-community.org)

Which Elasticsearch version is used? Since 21.11 the requirements changed a bit:
https://wiki.koha-community.org/wiki/System_requirements_and_recommendations
Comment 2 Simon Hohl 2025-02-11 16:43:35 UTC
Ah dang, did not see that wiki page. It's ES6, so that is probably the issue...