[Koha] Problem with cleanup_database.pl

Tomas Cohen Arazi tomascohen at gmail.com
Fri Nov 4 07:50:25 NZDT 2016


The right way to run that, is by entering a koha-shell:

$ sudo koha-shell instance_name
$ your_command

Regards

El jue., 3 nov. 2016 a las 11:20, anjoze (<joseanjos at gmail.com>) escribió:

> Hi. I'm trying to execute *cleanup_database.pl* because my database is to
> big
> and slow.
>
> My koha installation is a normal installation like this:
> https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
>
> When I run: *sudo perl /usr/share/koha/bin/cronjobs/cleanup_database.pl*
> I have lots of this message:
> / unable to locate Koha configuration file koha-conf.xml at
> /usr/share/koha/lib/C4/Context.pm line 354/
> and, in the end:
> / Can't call method "config" on unblessed reference at
> /usr/share/koha/lib/Koha/Database.pm line 56./
>
> I've set environment variables like this:
> /KOHA_CONF=/etc/koha/sites/koha/koha-conf.xml
> PERL5LIB=/usr/share/koha/lib//
>
> Didn't work.
> Any suggestion? Thanks in advance.
>
>
>
> -----
> Koha version:   16.05.05
>        - -
> José Anjos
> --
> View this message in context:
> http://koha.1045719.n5.nabble.com/Problem-with-cleanup-database-pl-tp5909474.html
> Sent from the Koha-general mailing list archive at Nabble.com.
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F


More information about the Koha mailing list