http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478 --- Comment #28 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Jonathan Druart from comment #27)
Looks better with these new packages. Continuing debugging...
Catmandu::Importer::MARC was missing, I installed it using cpanm: $ sudo cpanm Catmandu::Importer::MARC
Catmandu::Importer::MARC is provided by libcatmandu-marc-perl which is in Jessie already.
Now I got: $ perl rebuild_elastic_search.pl 1 to 115 is displayed Committing...
And nothing else...
$ ps aux | grep elasticsearch returns nothing $ sudo service elasticsearch start $ ps aux | grep elasticsearch returns nothing
That's not really my code's fault :) you may need to configure elasticsearch before it starts. Don't forget to change the clustername in /etc/elasticsearch/elasticsearch.yml, otherwise you may have it clustering with other ES instances on the same network. This said, it shouldn't just sit there if the daemon isn't available, I've added a note to look into that.
$ curl -X GET http://localhost:9200/ curl: (7) Failed to connect to localhost port 9200: Connection refused
Yep, that there is your issue. $ curl -X GET http://koha-es:9200/ { "status" : 200, "name" : "koha-es", "version" : { "number" : "1.3.7", "build_hash" : "3042293e4b219dfb855a4e6c64241c530d1abeb0", "build_timestamp" : "2014-12-16T13:59:32Z", "build_snapshot" : false, "lucene_version" : "4.9" }, "tagline" : "You Know, for Search" }
Editing /etc/init.d/elasticsearch, I found the binary: /usr/share/elasticsearch/bin/elasticsearch $ cd /usr/share/elasticsearch $ slog4j:WARN No appenders could be found for logger (node). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.udo bin/elasticsearch
$ apt-cache show elasticsearch Package: elasticsearch Version: 1.0.3+dfsg-5
$ apt-cache policy elasticsearch elasticsearch: Installed: 1.3.7 Candidate: 1.3.7 Version table: *** 1.3.7 0 500 http://packages.elasticsearch.org/elasticsearch/1.3/debian/ stable/main amd64 Packages 100 /var/lib/dpkg/status
Should I installed another version? Something is missing in my jvm configuration? Something to do in the elasticsearch config?
Try the one from the official repo, I'm not sure what differences are in the debian provided version. It might just be you need some log4j stuff, but I can only guess. http://www.elasticsearch.org/blog/apt-and-yum-repositories/ -- You are receiving this mail because: You are watching all bug changes.