[Koha-bugs] [Bug 22705] New: Koha tries and fails to connect to local ElasticSearch while configuration points to a remote one
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 15 11:13:06 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22705
Bug ID: 22705
Summary: Koha tries and fails to connect to local ElasticSearch
while configuration points to a remote one
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: julian.maurice at biblibre.com
Target Milestone: ---
Relevant configuration block in $KOHA_CONF:
<elasticsearch>
<server>elasticsearch5</server>
<index_name>koha_master</index_name>
</elasticsearch>
% misc/search_tools/rebuild_elastic_search.pl -v
Indexing biblios
[Cxn] ** [http://127.0.0.1:9200]-[599] Could not connect to '127.0.0.1:9200':
Connection refused, called from sub
Search::Elasticsearch::Role::Client::Direct::__ANON__ at
/home/koha/env/master/src/Koha/SearchEngine/Elasticsearch/Indexer.pm line 382.
With vars: {'status_code' => 599,'request' => {'serialize' => 'std','method' =>
'HEAD','qs' => {},'path' => '/koha_master_biblios','ignore' => [],'body' =>
undef}}
It looks like it is related to the 'Sniff' CxnPool. When I remove this line
https://gitlab.com/koha-community/Koha/blob/7e218b81e6f7e4cf8bb8be3aef547cd1c1aac573/Koha/SearchEngine/Elasticsearch.pm#L146
everything works as expected
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list