Re: [Koha] switching from 'standard' to 'dev'
Hi ALL 1. mysql dump of koha 2. reformat the server (debian etch - same as before) 3. reinstall a dev install as user 'koha' -- All dependencies installed except GD (user koha, database koha (mysql grant all to user - koha), zebrauser koha) 4. mysql import -- All my old settings available in the Intranet -- no records are searchable. 5. makes changes to new record.abs (our item records are in the 949 not 952 field --> MARC default framework changes transferred with the SQLdump) 6. reindex --> rebuild_zebra.pl -b -r --> still no records are searchable/indexed but I can get to records different ways (I have about thirty checked-out - (from previous successful 'standard' koha) to my user/patron (brendan gallagher). Here is a copy of last rebuild_zebra.pl that I ran -- Ran this script as root -- first time I ran it I had permission errors and I saw in the koha-mailing-list archives that someone else had similar problems with the fix being to either run as root or chown the correct directories (I wanted to do this quickly so I ran it as root)... 09:49:14-14/08 zebraidx(7396) [log] Merge 73.1% completed; 2 minutes remaining 09:49:20-14/08 zebraidx(7396) [fatal] mf_write: isambD-b error (4) no more space 09:49:20-14/08 zebraidx(7396) [fatal] /home/koha/koha-dev/var/lib/ zebradb/biblios/shadow: max=4294967296 used=4294966912 available=384 09:49:20-14/08 zebraidx(7396) [fatal] Adjust the limits in your zebra.cfg 09:49:20-14/08 zebraidx(7396) [log] bf_write: exit 09:49:20-14/08 zebraidx(7983) [log] zebra_start 2.0.32 /home/koha/koha- dev/etc/zebradb/zebra-biblios.cfg 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-alvis.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-grs-xml.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-grs-marc.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-grs-regx.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-dom.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/ idzebra-2.0/modules/mod-text.so 09:49:20-14/08 zebraidx(7983) [warn] previous transaction didn't reach commit 09:49:20-14/08 zebraidx(7983) [log] enabling shadow spec=/home/koha/ koha-dev/var/lib/zebradb/biblios/shadow:4G 09:49:20-14/08 zebraidx(7983) [log] cache_fname = /home/koha/koha-dev/ var/lib/zebradb/biblios/shadow/cache 09:49:26-14/08 zebraidx(7983) [log] zebra_stop: 5.23 0.01 0.71 I did make some changes to the limit in size on zebra-biblios.cfg --> then ran the indexer (is there something that needs to be restarted (like the zebra-server) before doing this and is that the correct file)... (The records that are in the mysql-koha-database -- were originally imported and indexed on a 'standard' install via the Stage MARCrecords for import from koha intranet and then I haven't been able to reindex since the switch to 'dev' using the already imported records) Thanks for any help... Brendan A. Gallagher On Aug 11, 2008, at 9:25 PM, Joshua Ferraro wrote:
Yea, you'll need to use the new zebra-ctl.sh ... and we've dropped support for zebraqueue daemon, and switched to rebuild_zebra.pl with the -z option run from cron (check the INSTALL file for details). I bet if you restart Zebra you'll be good to go. You can test by running zebrasrv directly:
zebrasrv -c /root/koha-dev/etc/koha-conf.xml
BTW: It's probably best to run Koha as a non-root user. I'd suggest creating a 'koha' user and installing Koha as that user, running zebra as that user, etc.
Cheers,
Josh
Brendan -- Yes, zebra-biblios.cfg is correct. For this case, in my file it would be line 49: shadow: /whatever/dir/biblios/shadow:4G I assume you made that 6G or something similar. And you are right, you would need to restart zebra, like: misc/bin/koha-zebra-ctl.sh restart It sounds like you are pretty close to completion. --Joe Atzberger, LibLime On Thu, Aug 14, 2008 at 2:52 PM, Brendan Gallagher <gallabr@biblio.org>wrote:
Here is a copy of last rebuild_zebra.pl that I ran -- Ran this script as root -- first time I ran it I had permission errors and I saw in the koha-mailing-list archives that someone else had similar problems with the fix being to either run as root or chown the correct directories (I wanted to do this quickly so I ran it as root)...
09:49:14-14/08 zebraidx(7396) [log] Merge 73.1% completed; 2 minutes remaining *09:49:20-14/08 zebraidx(7396) [fatal] mf_write: isambD-b error (4) no more space 09:49:20-14/08 zebraidx(7396) [fatal] /home/koha/koha-dev/var/lib/zebradb/biblios/shadow: max=4294967296 used=4294966912 available=384 09:49:20-14/08 zebraidx(7396) [fatal] Adjust the limits in your zebra.cfg* 09:49:20-14/08 zebraidx(7396) [log] bf_write: exit 09:49:20-14/08 zebraidx(7983) [log] zebra_start 2.0.32 /home/koha/koha-dev/etc/zebradb/zebra-biblios.cfg 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 09:49:20-14/08 zebraidx(7983) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 09:49:20-14/08 zebraidx(7983) [warn] previous transaction didn't reach commit 09:49:20-14/08 zebraidx(7983) [log] enabling shadow spec=/home/koha/koha-dev/var/lib/zebradb/biblios/shadow:4G 09:49:20-14/08 zebraidx(7983) [log] cache_fname = /home/koha/koha-dev/var/lib/zebradb/biblios/shadow/cache 09:49:26-14/08 zebraidx(7983) [log] zebra_stop: 5.23 0.01 0.71
I did make some changes to the limit in size on zebra-biblios.cfg --> then ran the indexer (*is there something that needs to be restarted (like the zebra-server) before doing this and is that the correct file*)...
participants (2)
-
Brendan Gallagher -
Joe Atzberger