[Koha-devel] Major surprise - "automatic" upgrade

Paul paul.a at aandc.org
Tue May 7 18:18:42 CEST 2013


At 11:40 AM 5/7/2013 +0000, Marcel de Rooy wrote:
> > To reproduce upgrade, restore db; sftp [...] koha-3.08.05.tar.gz and
> > koha-3.08.10.tar.gz /home/paul; "untar" koha-3.08.10.tar.gz in /home/paul/;
> > cp koha-3.08.10.tar.gz to /
>
>Hey: untar 3.8.10 and copy 3.8.10 to root ??
>
> > koha at hardy:/$ ls -l /
> > drwxrwxr-x  42 koha     koha         4096 Feb 23 05:09 koha-3.08.10
>
>Paul: If I read well what you are doing here, you are restoring your 
>database to 3.8.5 and your code to 3.8.10 !!

Marcel - thanks for your comments.

The 3.8.10 "code" is the installation tarball -- not a /usr/share/koha 
functional system.

>The 3.8.10 script cleanup_database does not complain about that; it does 
>not really care about the exact version.

There is/was no 3.8.10 script cleanup_database in the tarball. I used 
/usr/share/koha/bin/cronjobs/cleanup_database.pl in the fully working 
3.8.5. Surely this script (no diff, btw, between 3.8.5 and 3.8.10) is 
created from the tarball during install/upgrade.

>It gets a db handle. It runs.
>But if you go to OPAC or staff, of course Koha will complain. The newer 
>code sees the older database..
>
>Mystery solved?

Respectfully, no.  Where did the "newer code" come from without running 
Makefile.pl, make, make install as a "sudoer"?  I was simply running 
cleanup_database.pl as user=koha without sudo privileges.

Again thanks for your interest and best regards,
Paul



More information about the Koha-devel mailing list