<div dir="ltr">Dood, just:<div>- launch a clean VBox with Debian 8 or Ubuntu 16.04</div><div>- install mysql-server (in Ubuntu 16.04 install mariadb-server)</div><div>- Add the repo, install koha-common</div><div>- $ sudo koha-create --create-db test_library</div><div><br></div><div>And that's all of it. It is working for everyone else, so please try to write some more detailed install/setup steps so we understand what's going on.</div><div><br></div><div>PS: if this was a dev box, you need <a href="https://github.com/mkfifo/koha-gitify">https://github.com/mkfifo/koha-gitify</a></div></div><br><div class="gmail_quote"><div dir="ltr">El jue., 29 sept. 2016 a las 9:31, Rodrigo Santellan (<<a href="mailto:rsantellan@gmail.com">rsantellan@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>David,<br><br></div>I tried running the Kohadevbox but I have fail because I'm behind a proxy and the provisioning fails and I can't start up the machine.<br><br></div>So my next step was to create a empty Vagrant with the box: bento/ubuntu-16.04 and run post install scripts. <br><br></div>The default version installed on ubuntu 16.04 is:<br><br>idzebra-2.0:<br>  Installed: 2.0.59-1<br>  Candidate: 2.0.59-1<br><br></div>I have successfully run the searches with Elasticsearch. Now I have to see if I'm missing something or not because using Elasticsearch instead of Zebra!<br><br></div>Thanks for your help!<br><div><br><div>Regards<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 28, 2016 at 10:04 PM, David Cook <span dir="ltr"><<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, if you're having issues with Zebra, you can try posting to this list,<br>
as there are a number of us who can probably help you.<br>
<br>
I see that you posted before about trying to see how many biblios are<br>
indexed in Zebra, and that you had a problem using _ALLRECORDS. Did you have<br>
any other problems? Were you able to successfully perform other Zebra<br>
searches?<br>
<br>
I admit that the error "[114] Unsupported Use attribute -- v2 addinfo<br>
'_ALLRECORDS'" is rather difficult to figure out. Usually, if you see that<br>
114 code, it means that a particular index hasn't been created yet within<br>
the Zebra database*. However, since you're using the special index<br>
_ALLRECORDS, it should be created.<br>
<br>
It looks like you're using Zebra 2.0.44. That should support _ALLRECORDS.<br>
I'm on Zebra 2.0.60, and this is the output I see:<br>
<br>
Z> find @attr 1=_ALLRECORDS @attr 2=103 ""<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a success.<br>
Number of hits: 956, setno 2<br>
SearchResult-1: term= cnt=956<br>
records returned: 0<br>
Elapsed: 0.010064<br>
<br>
I just tried It on a Debian server running Zebra 2.0.44 and I see this<br>
output:<br>
Z> find @attr 1=_ALLRECORDS @attr 2=103 ""<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a success.<br>
Number of hits: 14882, setno 1<br>
SearchResult-1: term= cnt=14882<br>
records returned: 0<br>
Elapsed: 0.028209<br>
<br>
Even if I delete all the records in my database, I still see:<br>
<br>
Z> find @attr 1=_ALLRECORDS @attr 2=103 ""<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a success.<br>
Number of hits: 0, setno 1<br>
SearchResult-1: term= cnt=0<br>
records returned: 0<br>
Elapsed: 0.007409<br>
<br>
Your Zebra database "biblios" appears to be created otherwise you'd see:<br>
<br>
Z> find @attr 1=_ALLRECORDS @attr 2=103 ""<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a bloomin' failure.<br>
Number of hits: 0, setno 1<br>
Result Set Status: none<br>
records returned: 0<br>
Diagnostic message(s) from database:<br>
    [109] Database unavailable -- v2 addinfo 'biblios'<br>
Elapsed: 0.001682<br>
<br>
Hmm... my best guess is that somehow your Zebra install has been corrupted<br>
maybe. I'm not really sure. This is a very bizarre error.<br>
<br>
How did you install Koha and Zebra? I notice the home directory for a<br>
vagrant user... is this a Kohadevbox?<br>
<br>
<br>
<br>
<br>
<br>
<br>
*<br>
In this particular database, I've only ever had 1 record, and it contained<br>
very little data. It contained a title, so the following search works:<br>
Z> find @attr 1=4 "test"<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a success.<br>
Number of hits: 0, setno 5<br>
SearchResult-1: term=test cnt=0<br>
records returned: 0<br>
Elapsed: 0.002783<br>
<br>
However, the record never contained an author, so the following search fails<br>
with that Error 114:<br>
Z> find @attr 1=1 "Bob"<br>
Sent searchRequest.<br>
Received SearchResponse.<br>
Search was a bloomin' failure.<br>
Number of hits: 0, setno 6<br>
Result Set Status: none<br>
records returned: 0<br>
Diagnostic message(s) from database:<br>
    [114] Unsupported Use attribute -- v2 addinfo '1'<br>
Elapsed: 0.000289<br>
<br>
David Cook<br>
Systems Librarian<br>
Prosentient Systems<br>
72/330 Wattle St<br>
Ultimo, NSW 2007<br>
Australia<br>
<br>
Office: 02 9212 0899<br>
Direct: 02 8005 0595<br>
<div><div><br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">koha-devel-bounces@lists.koha-community.org</a> [mailto:<a href="mailto:koha-devel-" target="_blank">koha-devel-</a><br>
> <a href="mailto:bounces@lists.koha-community.org" target="_blank">bounces@lists.koha-community.org</a>] On Behalf Of Chris Cormack<br>
> Sent: Thursday, 29 September 2016 6:53 AM<br>
> To: Rodrigo Santellan <<a href="mailto:rsantellan@gmail.com" target="_blank">rsantellan@gmail.com</a>><br>
> Cc: koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br>
> Subject: Re: [Koha-devel] Elasticsearch not searching.<br>
><br>
> * Rodrigo Santellan (<a href="mailto:rsantellan@gmail.com" target="_blank">rsantellan@gmail.com</a>) wrote:<br>
> > Chris I will install Elastic 1.7 and try again!! It should be on the<br>
> > wiki or the bugzilla issue that tracks the elasticsearch development.<br>
> ><br>
> > Thank a lot for the quick response!<br>
><br>
> You could also follow this bug<br>
><br>
> <a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17255" rel="noreferrer" target="_blank">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17255</a><br>
><br>
> It may be that with the new packages there, it might work already.<br>
> It hasnt been tested yet though<br>
><br>
> Chris<br>
><br>
> ><br>
> > On Wed, Sep 28, 2016 at 5:43 PM, Chris Cormack <<a href="mailto:chrisc@catalyst.net.nz" target="_blank">chrisc@catalyst.net.nz</a>><br>
> wrote:<br>
> ><br>
> >     Hi Rodrigo<br>
> ><br>
> >     ElasticSearch in Koha currently only works with Elastic 1.7<br>
> >     We are working on upgrading it to working the latest version but<br>
there<br>
> >     were some non backward compatible changes. That is what you are<br>
> bumping<br>
> >     into<br>
> ><br>
> >     Support in Koha is still experimental, but it once we upgrade it<br>
should be<br>
> >     more<br>
> >     solid.<br>
> ><br>
> >     You could try installing 1.7 and seeing how you go<br>
> ><br>
> >     Chris<br>
> ><br>
> ><br>
> >     * Rodrigo Santellan (<a href="mailto:rsantellan@gmail.com" target="_blank">rsantellan@gmail.com</a>) wrote:<br>
> >     > Hi,<br>
> >     ><br>
> >     > I have installed Elasticsearch after giving up on Zebra. I have<br>
follow<br>
> >     the the<br>
> >     > wiki: <a href="https://wiki.koha-community.org/wiki/Elasticsearch#" rel="noreferrer" target="_blank">https://wiki.koha-community.org/wiki/Elasticsearch#</a><br>
> >     Install_elasticsearch<br>
> >     > and installed latest Elasticsearch through the official<br>
repository.<br>
> >     ><br>
> >     > My installed version is:<br>
> >     > curl -XGET 'localhost:9200'<br>
> >     > {<br>
> >     >   "name" : "Her",<br>
> >     >   "cluster_name" : "elasticsearch",<br>
> >     >   "cluster_uuid" : "yuU4XtZwT1WtK1SH-3Xofw",<br>
> >     >   "version" : {<br>
> >     >     "number" : "2.4.1",<br>
> >     >     "build_hash" : "c67dc32e24162035d18d6fe1e952c4cbcbe79d16",<br>
> >     >     "build_timestamp" : "2016-09-27T18:57:55Z",<br>
> >     >     "build_snapshot" : false,<br>
> >     >     "lucene_version" : "5.5.2"<br>
> >     >   },<br>
> >     >   "tagline" : "You Know, for Search"<br>
> >     > }<br>
> >     ><br>
> >     > I have run the script perl<br>
misc/search_tools/<a href="http://rebuild_elastic_search.pl" rel="noreferrer" target="_blank">rebuild_elastic_search.pl</a> -v<br>
> >     -d<br>
> >     > like the documentation says and I have this error:<br>
> >     > Failed to parse mapping [data]: analyzer on field [Local-number]<br>
must<br>
> be<br>
> >     set<br>
> >     > when search_analyzer is set<br>
> >     ><br>
> >     > The log on the elasticsearch.log is<br>
> >     ><br>
> >     > [2016-09-28 20:27:55,272][DEBUG][action.admin.indices.create]<br>
[Her]<br>
> >     > [koha_dev_biblios] failed to create<br>
> >     > MapperParsingException[Failed to parse mapping [data]: analyzer on<br>
> field<br>
> >     > [Local-number] must be set when search_analyzer is set]; nested:<br>
> >     > MapperParsingException[analyzer on field [Local-number] must be<br>
set<br>
> when<br>
> >     > search_analyzer is set];<br>
> >     >         at org.elasticsearch.index.mapper.MapperService.merge<br>
> >     > (MapperService.java:291)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute<br>
> >     > (MetaDataCreateIndexService.java:317)<br>
> >     >         at<br>
org.elasticsearch.cluster.ClusterStateUpdateTask.execute<br>
> >     > (ClusterStateUpdateTask.java:45)<br>
> >     >         at<br>
> >     > org.elasticsearch.cluster.service.InternalClusterService.<br>
> >     runTasksForExecutor<br>
> >     > (InternalClusterService.java:468)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run<br>
> >     > (InternalClusterService.java:772)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$<br>
> >     TieBreakingPrioritizedRunnable.runAndClean<br>
> >     > (PrioritizedEsThreadPoolExecutor.java:231)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$<br>
> >     TieBreakingPrioritizedRunnable.run<br>
> >     > (PrioritizedEsThreadPoolExecutor.java:194)<br>
> >     >         at java.util.concurrent.ThreadPoolExecutor.runWorker<br>
> >     > (ThreadPoolExecutor.java:1142)<br>
> >     >         at java.util.concurrent.ThreadPoolExecutor$Worker.run<br>
> >     > (ThreadPoolExecutor.java:617)<br>
> >     >         at java.lang.Thread.run(Thread.java:745)<br>
> >     > Caused by: MapperParsingException[analyzer on field [Local-number]<br>
> must<br>
> >     be set<br>
> >     > when search_analyzer is set]<br>
> >     >         at<br>
> >     > org.elasticsearch.index.mapper.core.TypeParsers.<br>
> >     parseAnalyzersAndTermVectors<br>
> >     > (TypeParsers.java:234)<br>
> >     >         at<br>
org.elasticsearch.index.mapper.core.TypeParsers.parseTextField<br>
> >     > (TypeParsers.java:250)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.index.mapper.core.StringFieldMapper$TypeParser.parse<br>
> >     > (StringFieldMapper.java:165)<br>
> >     >         at<br>
> >     > org.elasticsearch.index.mapper.object.ObjectMapper$<br>
> >     TypeParser.parseProperties<br>
> >     > (ObjectMapper.java:309)<br>
> >     >         at<br>
> >     > org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.<br>
> >     parseObjectOrDocumentTypeProperties<br>
> >     > (ObjectMapper.java:222)<br>
> >     >         at<br>
> >     ><br>
> org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.pars<br>
> e<br>
> >     > (RootObjectMapper.java:139)<br>
> >     >         at<br>
org.elasticsearch.index.mapper.DocumentMapperParser.parse<br>
> >     > (DocumentMapperParser.java:118)<br>
> >     >         at<br>
org.elasticsearch.index.mapper.DocumentMapperParser.parse<br>
> >     > (DocumentMapperParser.java:99)<br>
> >     >         at org.elasticsearch.index.mapper.MapperService.parse<br>
> >     > (MapperService.java:549)<br>
> >     >         at org.elasticsearch.index.mapper.MapperService.merge<br>
> >     > (MapperService.java:319)<br>
> >     >         at org.elasticsearch.index.mapper.MapperService.merge<br>
> >     > (MapperService.java:289)<br>
> >     >         ... 9 more<br>
> >     ><br>
> >     > I'm again at a loss, I believe the problem is on the method:<br>
> >     > get_elasticsearch_mappings in Koha::ElasticSearch but I don't know<br>
> how to<br>
> >     > follow it.!<br>
> >     ><br>
> >     > Regards and thank for any help!!<br>
> >     ><br>
> >     > Rodrigo<br>
> ><br>
> >     > _______________________________________________<br>
> >     > Koha-devel mailing list<br>
> >     > <a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
> >     ><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
> >     > website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
> >     > git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
> >     > bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
> ><br>
> ><br>
> >     --<br>
> >     Chris Cormack<br>
> >     Catalyst IT Ltd.<br>
> >     <a href="tel:%2B64%204%20803%202238" value="+6448032238" target="_blank">+64 4 803 2238</a><br>
> >     PO Box 11-053, Manners St, Wellington 6142, New Zealand<br>
> ><br>
> ><br>
><br>
> > _______________________________________________<br>
> > Koha-devel mailing list<br>
> > <a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
> > <a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
> > website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a> git :<br>
> > <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a> bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
><br>
><br>
> --<br>
> Chris Cormack<br>
> Catalyst IT Ltd.<br>
> <a href="tel:%2B64%204%20803%202238" value="+6448032238" target="_blank">+64 4 803 2238</a><br>
> PO Box 11-053, Manners St, Wellington 6142, New Zealand<br>
<br>
<br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(117,117,117);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:12.8px">Tomás Cohen Arazi</div><div style="color:rgb(117,117,117);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:12.8px">Theke Solutions (<a href="http://theke.io/">https://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B2F3C15F</div></div></div>