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

Issue upgrading on Debian stretch from 10.1 to 10.2

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

            faust Faustin Lammler added a comment - - edited

            PR created https://github.com/MariaDB/server/pull/2068, it should go to 10.3+ as explained by Anel.

            faust Faustin Lammler added a comment - - edited PR created https://github.com/MariaDB/server/pull/2068 , it should go to 10.3+ as explained by Anel.

            I don't see any problems with this PR?

            illuusio Tuukka Pasanen added a comment - I don't see any problems with this PR?

            serg, otto, I think that fix for https://github.com/MariaDB/server/commit/fb7c1b9415c9a8b0dc2e86ae44f0e7a2634e5d7e is wrong and as a proof, I created the test script how PID namespace works and result.
            I suggested proper solution how to find right PID of host pidnamespace in PR https://github.com/MariaDB/server/pull/2076.
            I have tested on Ubuntu bionic (as said couldn't find a problem), but is visible with Debian.
            Can you please review?

            anel Anel Husakovic added a comment - serg , otto , I think that fix for https://github.com/MariaDB/server/commit/fb7c1b9415c9a8b0dc2e86ae44f0e7a2634e5d7e is wrong and as a proof, I created the test script how PID namespace works and result . I suggested proper solution how to find right PID of host pidnamespace in PR https://github.com/MariaDB/server/pull/2076 . I have tested on Ubuntu bionic (as said couldn't find a problem), but is visible with Debian. Can you please review?
            anel Anel Husakovic added a comment - This should be fixed with https://github.com/MariaDB/server/commit/794bebf9ee18de4138c4d2c93853d49ff3af7f12
            anel Anel Husakovic added a comment - Fixed with https://github.com/MariaDB/server/commit/794bebf9ee18de4138c4d2c93853d49ff3af7f12

            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.