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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.4.15, 2.5.7
    • Core
    • None
    • 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

            markus makela markus makela
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.