[Koha] Cannot find records created in KoHa
Michael Kuhn
mik at adminkuhn.ch
Wed Jun 5 13:40:23 NZST 2019
Hi Patric
>> Reading your original e-mail again: "I just created my first record
>> with some items. Among other things I filled in the field "Number
>> (ISBN)” with 100.100.
>>
>> Using the advanced catalog search I’m trying to find my record, but
>> nothing is found:
>>
>> No results match your search for 'nb: 100.100'."
>>
>> Can you search (and find) something else than "nb: 100.100" and you
>> will find the record or won't you find it at all, not even if you
>> search for author name, for example?
>
> No, this didn’t work neither.
It seems like you don't have an index that you could search. You should
probably build one.
>> If you don't find anything at all: Did you ever successfully create
>> the Zebra index? Maybe you got some user permissions problem - test
>> it with:
>>
>> # INSTANZ=yourKohaInstance
>> # ls -al /var/lib/koha/$INSTANZ/{authorities,biblios}/*
>> # ls -al /var/lock/koha/$INSTANZ/{authorities,biblios,rebuild}
>>
>> All these directories and files need to be owned by Linux user
>> "$INSTANZ-koha" and "$INSTANZ-koha”.
>
> These rights seem to be correct, same user and group as the daemons.
As I see in your last post you only have three processes running:
1445 ? S 0:00 daemon --name=ausleihe-test-koha-zebra
--pidfiles=/var/run/koha/ausleihe-test/
--errlog=/var/log/koha/ausleihe-test/zebra-error.log
--output=/var/log/koha/ausleihe-test/zebra-output.log --verbose=1
--respawn --delay=30 --user=ausleihe-test-koha.ausleihe-test-koha --
/usr/bin/zebrasrv -v none,fatal,warn -k 1024 -f
/etc/koha/sites/ausleihe-test/koha-conf.xml
1447 ? S 0:00 \_ /usr/bin/zebrasrv -v none,fatal,warn -k
1024 -f /etc/koha/sites/ausleihe-test/koha-conf.xml
1688 ? S 0:00 daemon --name=ausleihe-test-koha-indexer
--errlog=/var/log/koha/ausleihe-test/indexer-error.log
--stdout=/var/log/koha/ausleihe-test/indexer.log
--output=/var/log/koha/ausleihe-test/indexer-output.log
--pidfiles=/var/run/koha/ausleihe-test/ --verbose=1 --respawn --delay=30
--user=ausleihe-test-koha.ausleihe-test-koha --
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -daemon -sleep 5
I don't know the command you got these lines from, but however "ps -ef |
grep zebra" gives the following in my Koha demo installation:
sandkas+ 651 1 0 Jun01 ? 00:00:00 daemon
--name=sandkasten-koha-zebra --pidfiles=/var/run/koha/sandkasten/
--errlog=/var/log/koha/sandkasten/zebra-error.log
--output=/var/log/koha/sandkasten/zebra-output.log --verbose=1 --respawn
--delay=30 --user=sandkasten-koha.sandkasten-koha -- /usr/bin/zebrasrv
-v none,fatal,warn -f /etc/koha/sites/sandkasten/koha-conf.xml
sandkas+ 653 651 0 Jun01 ? 00:00:01 /usr/bin/zebrasrv -v
none,fatal,warn -f /etc/koha/sites/sandkasten/koha-conf.xml
sandkas+ 1205 1 0 Jun01 ? 00:00:00 daemon
--name=sandkasten-koha-indexer
--errlog=/var/log/koha/sandkasten/indexer-error.log
--stdout=/var/log/koha/sandkasten/indexer.log
--output=/var/log/koha/sandkasten/indexer-output.log
--pidfiles=/var/run/koha/sandkasten/ --verbose=1 --respawn --delay=30
--user=sandkasten-koha.sandkasten-koha --
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -daemon -sleep 5
sandkas+ 1206 1205 0 Jun01 ? 00:00:45 /usr/bin/perl
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -daemon -sleep 5
sandkas+ 16720 653 0 18:51 ? 00:00:00 /usr/bin/zebrasrv -v
none,fatal,warn -f /etc/koha/sites/sandkasten/koha-conf.xml
As you see there are two processes more than in your installation. Maybe
you should just restart Zebra or if you don't know how, restart all of
Koha (including Zebra), or restart your host with everything (including
Koha, Zebra and the rest).
> I just saw that somebody introduced some frameworks that do not
> include the field "000 - Record Label”. This field is needed to
> create a correct record in koha, right?
The following MARC fields are "mandatory" by default: LEADER ("000" in
the Koha framework) 003 008 040$c 245$a 942$c - in the framework they
are marked with a very small red asterisk. Whatever "mandatory" means:
I tried to destroy a framework like you have one - exporting the
standard framework, importing it as a new framework TEST, then deleting
the MARC LEADER ("000"). In Koha menu "Administration > MARC
Bibliographic framework test" it still says for this mutilated
framework: "Configuration OK, you don't have errors in your MARC
parameters table". This seems like some kind of higher nonsense to me.
Interestingly enough even without the "mandatory" MARC LEADER ("000") in
the framework a test record can be saved - it will then just insert some
default values (as can be seen in the "MARC view"). However, as said,
such a record can be saved and also be searched. See
http://koha.adminkuhn.ch/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=469
(but only until about 04:00 AM tomorrow)
So the mutilated framework is probably not the initial reason for your
problem. Still, I wouldn't ever advise to delete the MARC LEADER in any
framework. As I wrote above, I assume you don't have a (correct) Zebra
index at all.
Hope this helps.
Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
More information about the Koha
mailing list