Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-3346

When using --basedir, mysql/plugin dir needs to be writable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.15, 2.5.7
    • Component/s: Core
    • Labels:
      None
    • Sprint:
      MXS-SPRINT-122

      Description

      # sudo -u maxscale bin/maxscale --basedir=/MARIADB
      alert  : Opening file '/MARIADB/var//mysql/plugin' for writing failed.: Permission denied.
      alert  : MaxScale doesn't have write permission to '/MARIADB/var//mysql/plugin'.
      

      Looking at strace output, access() checks on the plugin dir path only occur when the --basedir option is actually used.

      That's why it's not a problem that the default /var/lib64/mysql/plugin is not writable for the maxscale user when using default paths, esp. when using standard package installs.

      It only becomes a problem when trying to use the binary tarball, and having all paths local for a non-root install ...

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration