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

mariadb_repo_setup package doesn't work with MariaDB 10.6 and Debian 12 Bookworm

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.6.18
    • N/A
    • Server
    • None
    • Debian 12 Bookworm

    Description

      Because of the new mariadb-backup dump format, DDEV needs to install a matching mysql client in its webserver image instead of using the distribution default.

      We would do this with the mariadb_repo_setup package, (see docs which call out doing this with 10.6)

      ddev-webserver is based on Debian 12 Bookworm. mariadb_repo_setup doesn't work with Debian 12 Bookworm.

      This is easy to demonstrate with `docker run -it --rm debian:bookworm bash -c 'apt update && apt install -y curl && curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s – --mariadb-server-version="mariadb-10.6"'`

      The output is
      ```

      1. [info] Checking for script prerequisites.
      2. [error] MariaDB Server version 10.6 is not working.
      3. Please verify that the version is correct.
      4. Not all releases of MariaDB are available on all distributions.
        #
      5. The latest MariaDB Server versions are:
      6. 10.4.34 10.5.25 10.6.18 10.11.8 11.0.6 11.1.5 11.2.4 11.4.2 11.5.1
        #
      7. More information on MariaDB releases is available at:
      8. https://mariadb.com/kb/en/release-notes/
        ```

      Related issue where we're working on resolving this for DDEV is at https://github.com/ddev/ddev/issues/6083

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            The minimum available for bookworm is 10.11, which is what the distro releases https://packages.debian.org/bookworm/mariadb-server

            This is done so that from the mariadb repos isn't doing a downgrade.

            danblack Daniel Black added a comment - The minimum available for bookworm is 10.11, which is what the distro releases https://packages.debian.org/bookworm/mariadb-server This is done so that from the mariadb repos isn't doing a downgrade.
            rfay Randy Fay added a comment -

            A given Debian system may want to connect to a mariadb server of a different version. Recent events have made this very painfully true.

            Is it reasonable to think that a mariadb-client 10.11 will be able to predictably connect/manage to most mariadb-server versions?

            rfay Randy Fay added a comment - A given Debian system may want to connect to a mariadb server of a different version. Recent events have made this very painfully true. Is it reasonable to think that a mariadb-client 10.11 will be able to predictably connect/manage to most mariadb-server versions?
            danblack Daniel Black added a comment -

            Can't think of a case where it wouldn't.

            Sorry I haven't given with ddev as much attention as it deserves. I'll see if I can give it more time next week.

            danblack Daniel Black added a comment - Can't think of a case where it wouldn't. Sorry I haven't given with ddev as much attention as it deserves. I'll see if I can give it more time next week.

            rfay, so what kind of resolution would you expect here?

            We generally don't build or provide MariaDB versions earlier than what distribution natively offers.
            mariadb-client-10.11 should work with all earlier versions.

            Is there anything we can do here?

            serg Sergei Golubchik added a comment - rfay , so what kind of resolution would you expect here? We generally don't build or provide MariaDB versions earlier than what distribution natively offers. mariadb-client-10.11 should work with all earlier versions. Is there anything we can do here?
            rfay Randy Fay added a comment -

            You can close this, thanks for paying attention.

            Assuming that the 10.11 MariaDB clients for Debian 12 Bookworm would be adequate, we implemented them in the ddev-webserver by default.

            A writeup on the chaos caused by the new dump format: https://ddev.com/blog/mariadb-dump-breaking-change/

            rfay Randy Fay added a comment - You can close this, thanks for paying attention. Assuming that the 10.11 MariaDB clients for Debian 12 Bookworm would be adequate, we implemented them in the ddev-webserver by default. A writeup on the chaos caused by the new dump format: https://ddev.com/blog/mariadb-dump-breaking-change/

            Thanks, that helped. I think we can easily fix this to work with MySQL client (which will bring CVE-2024-21096 back, of course).

            Would that be what you need?

            serg Sergei Golubchik added a comment - Thanks, that helped. I think we can easily fix this to work with MySQL client (which will bring CVE-2024-21096 back, of course). Would that be what you need?

            new 10.5 release will use MariaDB-only conditional comments, which are ignored by MySQL client.

            I'm closing this issue as "Not a Bug" because the originally reported problem — mariadb_repo_setup not offering 10.6 for Bookworm — is indeed not a bug.

            serg Sergei Golubchik added a comment - new 10.5 release will use MariaDB-only conditional comments, which are ignored by MySQL client. I'm closing this issue as "Not a Bug" because the originally reported problem — mariadb_repo_setup not offering 10.6 for Bookworm — is indeed not a bug.

            People

              serg Sergei Golubchik
              rfay Randy Fay
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.