[Koha-bugs] [Bug 24292] Upgrade failed, from 19.05 to 19.11 on Ubuntu 19.10: Can't load Unaccent.so

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 15 08:00:10 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24292

--- Comment #9 from Rudolf Byker <rudolfbyker at gmail.com> ---
It failed suring "sudo apt upgrade" on a Debian system. That's how I always
update Koha (and everything else):

Setting up koha-common (19.11.01-1) ...
Installing new version of config file /etc/init.d/koha-common ...
Installing new version of config file /etc/koha/koha-conf-site.xml.in ...
Installing new version of config file /etc/koha/plack.psgi ...
Upgrading database schema for rsc
Upgrade to 19.06.00.000 done (Wingardium Leviosa!)
Upgrade to 19.06.00.001 done (Bug 22960: Fix typo in syspref description)
Upgrade to 19.06.00.002 done (Bug 10215: Increase the size of opacnote and
librariannote for table subscriptionhistory)
Upgrade to 19.06.00.003 done (Bug 22867: UniqueItemFields preference value
should be pipe-delimited)
Upgrade to 19.06.00.004 done (Bug 22770: Fix typo in language description for
el in German)
Upgrade to 19.06.00.005 done (Bug  9834: Add the reserves.item_level_hold
column)
Can't load
'/usr/lib/x86_64-linux-gnu/perl5/5.28/auto/Text/Unaccent/Unaccent.so' for
module Text::Unaccent:
/usr/lib/x86_64-linux-gnu/perl5/5.28/auto/Text/Unaccent/Unaccent.so: undefined
symbol: unac_debug_callback at
/usr/lib/x86_64-linux-gnu/perl/5.28/DynaLoader.pm line 187.
 at /usr/share/koha/lib/Koha/Patron.pm line 26.
Compilation failed in require at /usr/share/koha/lib/Koha/Patron.pm line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patron.pm line
26.
Compilation failed in require at /usr/share/koha/lib/Koha/Patrons.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Patrons.pm line
30.
Compilation failed in require at
/usr/share/koha/lib/Koha/Checkouts/ReturnClaim.pm line 27.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Checkouts/ReturnClaim.pm line 27.
Compilation failed in require at
/usr/share/koha/lib/Koha/Checkouts/ReturnClaims.pm line 26.
BEGIN failed--compilation aborted at
/usr/share/koha/lib/Koha/Checkouts/ReturnClaims.pm line 26.
Compilation failed in require at /usr/share/koha/lib/Koha/Checkout.pm line 27.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Checkout.pm line
27.
Compilation failed in require at /usr/share/koha/lib/Koha/Checkouts.pm line 25.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Checkouts.pm line
25.
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 37.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 37.
Compilation failed in require at /usr/share/koha/lib/C4/Output.pm line 34.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Output.pm line 34.
Compilation failed in require at /usr/share/koha/lib/Koha/Plugins.pm line 29.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Plugins.pm line
29.
Compilation failed in require at
/usr/share/koha/intranet/cgi-bin/installer/data/mysql/updatedatabase.pl line
18792.
dpkg: error processing package koha-common (--configure):
 installed koha-common package post-installation script subprocess returned
error exit status 2
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u2) ...
Errors were encountered while processing:
 koha-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

So some DB updates have definitely already run. But, I think I figured out how
to salvage it.

As root:

# Install the module
cpan Text::Unaccent::PurePerl
# Edit the perl source, replacing 'Text::Unaccent' with
'Text::Unaccent::PurePerl'
nano /usr/share/koha/lib/Koha/Patron.pm
# Reconfigure failed packages
dpkg --configure --pending

One of the DB updates said: "misc/batchRebuildBiblioTables.pl should be run to
populate the fields introduced in bug 11529. It may take some time for larger
databases." I'm not sure if this should be run manually, but I tried anyway,
without success.

My production DB seems to be working again. I hope this helps someone.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list