[Koha] Zebra problems

All Saints Cathedral Library ascleg at yahoo.co.uk
Sun Nov 16 12:10:12 NZDT 2014


 
Hi David and Robin, 

Thank you very much for your replies. 
I am using Marc21.  Since I still have not figured out how to see my
records I'm trying Robin's suggestions first.

Stopping and starting the zebra daemon
with
sudo
/etc/init.d/koha-common stop
sudo /etc/init.d/koha-common start
doesn't seem to make any difference.

I've tried rebuilding zebra several
times with several very similar commands as suggested in various
earlier koha problem letters.  The output looks about the same each
time.

library at cathlibcomputer
~ $ sudo koha-rebuild-zebra --full -v cathlib 
[sudo] password
for library: 
Zebra
configuration information 
================================ 
Zebra biblio
directory      = /var/lib/koha/cathlib/biblios 
Zebra authorities
directory = /var/lib/koha/cathlib/authorities 
Koha directory     = /usr/share/koha/intranet/cgi-bin 
Lockfile           = /var/lock/koha/cathlib/rebuild/rebuild..LCK 
BIBLIONUMBER in :  090$c 
BIBLIOITEMNUMBER
in : 090$d 
================================ 
skipping
authorities 
==================== 
exporting biblio 
==================== 
1..............................................................................101............................................................................201............................................................................301............................................................................401............................................................................501............................................................................601............................................................................701............................................................................801............................................................................901............................................................................1001...........................................................................1101...........................................................................1201...............
............................................................1301...........................................................................1401...........................................................................1501...........................................................................1601...........................................................................1701...........................................................................1801...........................................................................1901...........................................................................2001...........................................................................2101...........................................................................2201...........................................................................2301...........................................................................2401..................................
.........................................2501...........................................................................2601...........................................................................2701...........................................................................2801...........................................................................2901...........................................................................3001...........................................................................3101...........................................................................3201...........................................................................3301..............................error
retrieving biblio 3518 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
.error retrieving
biblio 3519 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 
.error retrieving
biblio 3520 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 
3401...........................error
retrieving biblio 3615 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
.error retrieving
biblio 3616 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 
.error retrieving
biblio 3617 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 

and so on until 

7101.................................error
retrieving biblio 7418 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
.error retrieving
biblio 7419 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 
.......error
retrieving biblio 7426 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
.error retrieving
biblio 7427 at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl
line 679. 
..............................error
retrieving biblio 7457 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
.....error
retrieving biblio 7462 at
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 679. 
7201................... 
Records exported:
7066 
==================== 
REINDEXING zebra 
==================== 
22:59:58-15/11
zebraidx(3976) [warn] Record didn't contain match fields in
(bib1,Local-number) 
==================== 
CLEANING 
==================== 
Zebra
configuration information 
================================ 
Zebra biblio
directory      = /var/lib/koha/cathlib/biblios 
Zebra authorities
directory = /var/lib/koha/cathlib/authorities 
Koha directory     = /usr/share/koha/intranet/cgi-bin 
Lockfile           = /var/lock/koha/cathlib/rebuild/rebuild..LCK 
BIBLIONUMBER in :  090$c 
BIBLIOITEMNUMBER
in : 090$d 
================================ 
Skipping
rebuild/update because flock failed on
/var/lock/koha/cathlib/rebuild/rebuild..LCK: Resource temporarily
unavailable 
==================== 
CLEANING 
==================== 

Suspecting permission issues I followed
the procedures given in the  Koha Wiki “Fix Zebra Permissions” to
no avail.  Perhaps the permission issues are at a higher level.  On
the install log I see that Koha, Mysql, Zebra all have different
users and passwords, and the root user name and password is different
again.  Could that cause the problem?  How can I change them?

The  ls -laR command (from Mark
Thompsett's letter to the mailing list  on Nov. 14th) gives:

library at cathlibcomputer
/var/lib/koha $ ls -laR 
.: 
total 16 
drwxr-xr-x  4
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 70 root root         4096 Nov 11 11:40 .. 
drwxr-xr-x  5
cathlib-koha cathlib-koha 4096 Oct 28 11:37 cathlib 
drwxr-xr-x  5
cathlib-koha cathlib-koha 4096 Oct 28 11:52 library 
./cathlib: 
total 20 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 4
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 authorities 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 biblios 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 plugins 
./cathlib/authorities: 
total 24 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 key 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 register 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 shadow 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 tmp 
./cathlib/authorities/key: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/authorities/register: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/authorities/shadow: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/authorities/tmp: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/biblios: 
total 24 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Nov 15 22:59 key 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Nov 15 22:59 register 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 shadow 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 tmp 
./cathlib/biblios/key: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Nov 15 22:59 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/biblios/register: 
total 56 
drwxr-xr-x 2
cathlib-koha cathlib-koha  4096 Nov 15 22:59 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha  4096 Oct 28 11:37 .. 
-rw-r--r-- 1
cathlib-koha cathlib-koha  8192 Nov 15 22:59 dict-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha  4096 Nov 15 22:59 gmatch-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha 33664 Nov 15 22:59 isambA-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha     0 Nov 15 22:59 isambB-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha     0 Nov 15 22:59 isambC-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha     0 Nov 15 22:59 isambD-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha  7718 Nov 15 22:59 recdA-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha 13343 Nov 15 22:59 recdB-0.mf 
-rw-r--r-- 1
cathlib-koha cathlib-koha   212 Nov 15 22:59 reci-0.mf 
./cathlib/biblios/shadow: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/biblios/tmp: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./cathlib/plugins: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:37 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:37 .. 
./library: 
total 20 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 4
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 authorities 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 biblios 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 plugins 
./library/authorities: 
total 24 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 key 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 register 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 shadow 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 tmp 
./library/authorities/key: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/authorities/register: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/authorities/shadow: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/authorities/tmp: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/biblios: 
total 24 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 key 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 register 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 shadow 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 tmp 
./library/biblios/key: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/biblios/register: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/biblios/shadow: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/biblios/tmp: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 6
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 
./library/plugins: 
total 8 
drwxr-xr-x 2
cathlib-koha cathlib-koha 4096 Oct 28 11:52 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 4096 Oct 28 11:52 .. 

Using the ls command to see the
permissions on  /var/lock/koha/cathlib/rebuild/rebuild..LCK
:

library at cathlibcomputer
/var/lock/koha/cathlib/rebuild $ ls -laR 
.: 
total 0 
drwxr-xr-x 2
cathlib-koha cathlib-koha  60 Nov 15 22:00 . 
drwxr-xr-x 5
cathlib-koha cathlib-koha 100 Nov 15 22:00 .. 
-rw-r--r-- 1
cathlib-koha cathlib-koha   0 Nov 16 00:30 rebuild..LCK 

Sincerely,
Helen




On Saturday, 15 November 2014, 21:45, All Saints Cathedral Library <ascleg at yahoo.co.uk> wrote:
 





On Monday, 10 November 2014, 6:12, Robin Sheat <robin at catalyst.net.nz> wrote:
 


All Saints Cathedral Library schreef op ma 03-11-2014 om 16:17 [+0000]:
> Hello All,
>  
> Recently we replaced our Koha 3.06 with a new install of Koha 3.16 on Linux Mint 13  XFCE via Ubuntu
 packages.  Since the upgrade, searching for books, both from the old database and recently entered, in both the staff client and the opac yields only books in the reservoir in the staff section.  

First thing to try is to make sure you have the zebra daemon running:

sudo /etc/init.d/koha-common stop
sudo /etc/init.d/koha-common start

See if that helps.

> In the terminal it looks like Zebra is working, with errors for some, but not all, records:

How are you rebuilding zebra? The way to do it with packages is:

sudo koha-rebuild-zebra --full -v cathlib

If you don't do it this way, you may get permission issues. If you
already have permission issues, let us know and we'll show you how
 to
fix them.

> When I investigated the path all the files seemed to be there, but the /usr/ bin/ zebraidx file is, according to gedit, “corrupted”.  Is that the problem?  What should be in it?  Can I remove it and download a single replacement file? What would the commands be?

gedit can't open this file as it's not a text file, it's a program, and
so gedit just throws up its hands and gives up.


> I have also noticed that ' libmarc-xml-perl_1.0.1-1_all.deb ' is sitting in my home directory.  Where does it belong?  If I download it again as in the Koha wiki Koha on Ubuntu packages – long, I get a message “Permission denied”.

No, that's safe to ignore as it won't do anything, harmful or otherwise.

There's a reasonable chance that this info will get you going, if not
paste the output of things here (including the commands you used) and
we'll take another look.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF

_______________________________________________
Koha mailing list  http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list