Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-3849

Upgrade from 5.7.20 to 5.7.21 fails on xenial

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.21-20
    • Fix Version/s: 5.7.24-26
    • Component/s: Packaging
    • Labels:
      None

      Description

      It seems the pre-installation script fails, however it doesn't provide any debug output:

      Preparing to unpack .../percona-server-server-5.7_5.7.21-20-1.xenial_amd64.deb ...
      ................
      dpkg: error processing archive /var/cache/apt/archives/percona-server-server-5.7_5.7.21-20-1.xenial_amd64.deb (--unpack):
      subprocess new pre-installation script returned error exit status 1
      
      
      * Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
      * Run the following commands to create these functions:
      
      mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
      mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
      mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
      
      * See http://www.percona.com/doc/percona-server/5.7/management/udf_percona_toolkit.html for more details
      
      
      Errors were encountered while processing:
      /var/cache/apt/archives/percona-server-server-5.7_5.7.21-20-1.xenial_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      Extracting the script and running it manually returns an error code of 1, again with no output. Looking at the script I notice that there are a few things that look fishy:

      • Hard coded path for datadir and other directories
      • Hard-coded check for /etc/init.d/mysql, Ubuntu Xenial uses systemd.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                evgeniy.patlan Evgeniy Patlan
                Reporter:
                nilsmzalando Nils Meyer
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h