[Koha] Problem with cleanup_database.pl

anjoze joseanjos at gmail.com
Fri Nov 4 03:19:51 NZDT 2016


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.


More information about the Koha mailing list