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

Robin Sheat robin at catalyst.net.nz
Tue May 7 07:13:37 CEST 2013


Paul schreef op ma 06-05-2013 om 20:02 [-0400]:
> koha at hardy:/usr/share/koha/bin/cronjobs$ ./cleanup_database.pl --zebraqueue 
> 1 -v
> Zebraqueue purge triggered for 1 days.
> 19847 records were deleted.
> Done with zebraqueue purge.
...
> koha at hardy:/usr/share/koha/bin/cronjobs$ ./cleanup_database.pl --zebraqueue 
> 1 -v
> Zebraqueue purge triggered for 1 days.
> 19847 records were deleted.
> Done with zebraqueue purge.

So, it deletes the same records twice? That seems a bit fishy.

> cat /usr/share/koha/misc/koha-install-log | grep KOHA_INSTALLED_VERSION
> KOHA_INSTALLED_VERSION=3.08.10.000

This isn't the best way to see what version you have. Also, there are
only two places in Koha that reference this file: the Makefile and
koha-conf.xml (and nothing refers to the key that is in it, except (I
think) for the Makefile.)

The best way to check is to look in kohaversion.pl, which is in the root
of your koha installation. That tells you about the exact version of the
code that is running. Use:

locate kohaversion.pl

(if you get an error about mlocate or missing files or something, run
'sudo updatedb' first.)

to find it. I suspect you may have more than one, make sure you check
that you are using the same one as both the apache configuration, the
location of the cleanup_database.pl you run, and the paths reflected in
the koha-conf.xml that you are using, which will be revealed by either:

echo $KOHA_CONF

or you'll find it in /etc/koha/koha-conf.xml. Be totally sure you're
looking at the right one.

In a nutshell, the only way this could possibly happen, afaict, is if
something is finding the untarred archive in '/' and running 'make' in
there. This doesn't seem like a thing that anything in Koha would do. In
a quick test, I couldn't make it happen.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20130507/379ab31c/attachment.pgp>


More information about the Koha-devel mailing list