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

upgrade to systemd can failed with different datadir in config file

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.1.21
    • 10.5
    • Packaging
    • Debian Jessie, RPM based distros too.

    Description

      MariaDB systemd file enforce
      ProtectHome=true
      That prevent to start mysqld if the datadir is set to /home/mysql/data

      mariadb-service-convert does not search en enforce
      ProtectHome=false
      if datadir is set to non allowed path

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment - - edited

            Can apply to upgrades from MySQL <= 5.7 too.

            Some postinst script that detects config settings that write to /home and others (includes MDEV-10399)

            • datadir=/home/* -> and disabled ProtectHome

            and drop like adding an extra file like:

            https://mariadb.com/kb/en/systemd/#configuring-access-to-home-directories

            Consider ProtectSystem directories, probably with a warning.

            danblack Daniel Black added a comment - - edited Can apply to upgrades from MySQL <= 5.7 too. Some postinst script that detects config settings that write to /home and others (includes MDEV-10399 ) datadir=/home/* -> and disabled ProtectHome and drop like adding an extra file like: https://mariadb.com/kb/en/systemd/#configuring-access-to-home-directories Consider ProtectSystem directories , probably with a warning.
            danblack Daniel Black added a comment -

            MDEV-25177 improves the error message to hopefully be able to determine the cause a bit better.

            danblack Daniel Black added a comment - MDEV-25177 improves the error message to hopefully be able to determine the cause a bit better.

            People

              Unassigned Unassigned
              stephane@skysql.com VAROQUI Stephane
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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