Reindexing Zebra Because there are no results found in opac and intranet search
I tried to rebuild zebra using the command: sudo koha-rebuild-zebra -f -v mylibrary The result shows: Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/mylibrary/biblios Zebra authorities directory = /var/lib/koha/mylibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== Records exported: 7922 ==================== REINDEXING zebra ==================== 18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8862) [fatal] Could not select database biblios errCode=109 18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8863) [fatal] Could not select database biblios errCode=109 ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/mylibrary/biblios Zebra authorities directory = /var/lib/koha/mylibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ==================== Records exported: 0 ==================== REINDEXING zebra ==================== skipping biblios ==================== CLEANING ==================== Whats wrong with reindexing Zebra? How will I fix it? -- View this message in context: http://koha.1045719.n5.nabble.com/Reindexing-Zebra-Because-there-are-no-resu... Sent from the Koha-general mailing list archive at Nabble.com.
Owen, you're up. I tried to rebuild zebra using the command: sudo koha-rebuild-zebra -f -v mylibrary The result shows: Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/mylibrary/biblios Zebra authorities directory = /var/lib/koha/mylibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== Records exported: 7922 ==================== REINDEXING zebra ==================== 18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8862) [fatal] Could not select database biblios errCode=109 18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8863) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/shadow..LCK [No such file or directory] 18:04:12-13/11 zebraidx(8863) [fatal] Could not select database biblios errCode=109 ==================== CLEANING ==================== Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/mylibrary/biblios Zebra authorities directory = /var/lib/koha/mylibrary/authorities Koha directory = /usr/share/koha/intranet/cgi-bin Lockfile = /var/lock/koha/mylibrary/rebuild/rebuild..LCK BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ ==================== exporting authority ==================== Records exported: 0 ==================== REINDEXING zebra ==================== skipping biblios ==================== CLEANING ==================== Whats wrong with reindexing Zebra? How will I fix it? -- View this message in context: http://koha.1045719.n5.nabble.com/Reindexing-Zebra-Because-there-are-no-resu... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Greetings, Check the permissions on your directories. They shouldn't be root. They are generally of the form {instance}-koha. For example, we have a kohademo instance on a server. Perhaps something as simple as: $ sudo chown -vR kohademo-koha.kohademo-koha /var/lib/koha/kohademo may fix it. CHANGE kohademo TO YOUR INSTANCE NAME. Check your permissions. $ cd /var/lib/koha $ ls -laR .: total 12 drwxr-xr-x 3 root root 4096 Aug 29 02:43 . drwxr-xr-x 35 root root 4096 Aug 29 02:42 .. drwxr-xr-x 5 kohademo-koha kohademo-koha 4096 Oct 31 05:06 kohademo ./kohademo: total 24 drwxr-xr-x 5 kohademo-koha kohademo-koha 4096 Oct 31 05:06 . drwxr-xr-x 3 root root 4096 Aug 29 02:43 .. drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 authorities -rw------- 1 kohademo-koha kohademo-koha 15 Oct 31 05:08 .bash_history drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 biblios drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 plugins ./kohademo/authorities: total 24 drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 5 kohademo-koha kohademo-koha 4096 Oct 31 05:06 .. drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 key drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 register drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 shadow drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 tmp ./kohademo/authorities/key: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/authorities/register: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/authorities/shadow: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/authorities/tmp: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/biblios: total 24 drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 5 kohademo-koha kohademo-koha 4096 Oct 31 05:06 .. drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Nov 14 17:30 key drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Nov 14 17:30 register drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Sep 24 02:55 shadow drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 tmp ./kohademo/biblios/key: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Nov 14 17:30 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/biblios/register: total 304 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Nov 14 17:30 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. -rw-r--r-- 1 kohademo-koha kohademo-koha 114688 Nov 14 17:30 dict-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 8192 Nov 14 17:30 gmatch-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 56448 Nov 14 17:30 isambA-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 33152 Nov 14 17:30 isambB-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 33792 Nov 14 17:30 isambC-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 0 Nov 14 17:30 isambD-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 7980 Nov 14 17:30 recdA-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 55122 Nov 14 17:30 recdB-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 248 Nov 14 17:30 reci-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort10-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort103-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort107-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort123-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort15-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort32-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort36-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort42-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort46-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort50-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort54-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort61-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort73-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort77-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort90-0.mf -rw-r--r-- 1 kohademo-koha kohademo-koha 384 Nov 14 17:30 sort95-0.mf ./kohademo/biblios/shadow: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Sep 24 02:55 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/biblios/tmp: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 6 kohademo-koha kohademo-koha 4096 Aug 29 02:43 .. ./kohademo/plugins: total 8 drwxr-xr-x 2 kohademo-koha kohademo-koha 4096 Aug 29 02:43 . drwxr-xr-x 5 kohademo-koha kohademo-koha 4096 Oct 31 05:06 .. GPML, Mark Tompsett
Alyssa Enganio Gono schreef op do 13-11-2014 om 19:06 [-0700]:
18:04:12-13/11 zebraidx(8862) [warn] zebra_lock_create fail fname=/var/lock/koha/mylibrary/biblios/norm..LCK [No such file or directory]
It looks like something's happened to your directories. These are created when koha-create is run, but maybe something has removed them. Run: sudo koha-create-dirs mylibrary this should put them back, and may fix any permission problems. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (4)
-
Alyssa Enganio Gono -
Arslan Farooq -
Mark Tompsett -
Robin Sheat