[Koha] Rebuild-zebra stops working very often...
Sonia P.
sossolapro at hotmail.com
Sat Jul 21 23:53:50 NZST 2012
Hello
Thanks for your help.
Now I have got the proper command line (I think) and that's:
perl -I /usr/share/koha/lib /usr/share/koha/bin/migration_tools/batchCheckNonIndexedBiblios.pl -c
If I sudo it, I have got that error:
DBI connect('dbname=koha;host=localhost;port=xxxx','',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /usr/share/koha/lib/C4/Context.pm line 692
Access denied for user 'root'@'localhost' (using password: NO) at /usr/share/koha/lib/C4/Context.pm line 692.
If I don't sudo it, I have got that error:
I/O error : Permission denied
I/O error : Permission denied
Could not create file parser context for file "/etc/koha/sites/library/koha-conf.xml": Permission denied at /usr/lib/perl5/XML/LibXML/SAX/Parser.pm line 49
BEGIN failed--compilation aborted at batchCheckNonIndexedBiblios.pl line 36.
I think it's because I am not the root user... I have r rights on all these lib files, but I can't write on them. And, for some reason, I think that the way that lib and/or script works, it needs me to write things (parser?) in these files.
So I have emailed the root user and asked him to do it. If that works, I will probably ask again your help with the results. If that doesn't work, well...
Thanks again for your help!
Cheers,
Sonia.
> Date: Fri, 20 Jul 2012 10:48:43 +0200
> From: robin at catalyst.net.nz
> To: koha at lists.katipo.co.nz
> Subject: Re: [Koha] Rebuild-zebra stops working very often...
>
> Op 20-07-12 09:29, Sonia P. schreef:
> > << Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl.) at batchCheckNonIndexedBiblios.pl line 36. >>
> >
> > In the script line 36 is << use C4::Context; >>
> >
> > We have put the script here: /usr/share/koha/bin/migration_tools/batchCheckNonIndexedBiblios.pl
> >
> > Does that error mean that things are not located where it should be?
>
> You didn't show what command line you're using to run it, that's the
> most critical thing.
>
> However the problem is simply that you're not providing the path to
> where the C4 directory is. I don't know your system layout, but I'm
> going to guess:
>
> perl -I /usr/share/koha/lib
> /usr/share/koha/bin/migration_tools/batchCheckNonIndexedBiblios.pl
>
> (all one line)
>
> Also, you will have to put KOHA_CONF=/path/to/koha-conf.xml at the start
> of it, inserting the real path.
>
> --
> Robin Sheat
> Catalyst IT Ltd.
> ✆ +64 4 803 2204
> GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
>
>
> _______________________________________________
> 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