Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15718

Issue upgrading on Debian stretch from 10.1 to 10.2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.14
    • 10.2.44
    • Packaging
    • Debian 9.4 (stretch)

    Description

      Hi,

      Following the upgrade guidelines (https://mariadb.com/kb/en/library/upgrading-from-mariadb-101-to-mariadb-102/), I hit this issue when upgrading from 10.1 to 10.2 on Debian 9.4 :

      Preparing to unpack .../mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb ...
      /var/lib/mysql: found previous version 10.1
      Failed to stop mysql.service: Unit mysql.service not loaded.
      invoke-rc.d: initscript mysql, action "stop" failed.
      invoke-rc.d returned 5
      There is a MySQL server running, but we failed in our attempts to stop it.
      Stop it yourself and try again!
      dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb (--unpack):
       subprocess new pre-installation script returned error exit status 1
      Selecting previously unselected package mariadb-client.
      Preparing to unpack .../mariadb-client_10.2.14+maria~stretch_all.deb ...
      Unpacking mariadb-client (10.2.14+maria~stretch) ...
      Selecting previously unselected package mariadb-server.
      Preparing to unpack .../mariadb-server_10.2.14+maria~stretch_all.deb ...
      Unpacking mariadb-server (10.2.14+maria~stretch) ...
      Errors were encountered while processing:
       /var/cache/apt/archives/mariadb-server-10.2_10.2.14+maria~stretch_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      

      Debian dpkg preinst checks if mysql is running using pgrep mariadb-server-10.2.preinst but in my case I'm using prometheus/mysqld_exporter and the actual pgrep match it too.

      So I suggest using "pgrep -x mysqld" instead of "pgrep mysql"

      Regards,

      Puckel_

      Attachments

        Issue Links

          Activity

            People

              otto Otto Kekäläinen
              puckel Matthieu Roisil
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.