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

Monitor fails PAM authentication with error: Plugin dialog could not be loaded

    XMLWordPrintable

Details

    Description

      I enabled PAM authentication in MaxScale 2.3.3, and I'm now seeing GaleraMon fail because it can't load dialog.so. For example:

      2019-01-26 03:56:11   error  : [Galera-Monitor] Failed to connect to server 'C1N1' ([172.30.0.249]:3306) when checking monitor user credentials and permissions: Plugin dialog could not be loaded: /var/lib/plugin/dialog.so: cannot open shared object file: No such file or directory
      2019-01-26 03:56:11   error  : [Galera-Monitor] Failed to connect to server 'C1N2' ([172.30.0.32]:3306) when checking monitor user credentials and permissions: Plugin dialog could not be loaded: /var/lib/plugin/dialog.so: cannot open shared object file: No such file or directory
      

      Is the MaxScale package supposed to include a file /var/lib/plugin/dialog.so? It does not seem to:

      [ec2-user@ip-172-30-0-106 ~]$ rpm -q maxscale
      maxscale-2.3.3-1.x86_64
      [ec2-user@ip-172-30-0-106 ~]$ rpm -ql maxscale | grep dialog
      [ec2-user@ip-172-30-0-106 ~]$ ls -l /var/lib/plugin/dialog.so
      ls: cannot access /var/lib/plugin/dialog.so: No such file or directory
      

      I know that the MariaDB-common package includes a dialog.so file, but that is not in /var/lib/plugin either:

      [ec2-user@ip-172-30-0-106 ~]$ ls -l /usr/lib64/mysql/plugin/dialog.so
      -rwxr-xr-x. 1 root root 47656 Jan  4 10:53 /usr/lib64/mysql/plugin/dialog.so
      [ec2-user@ip-172-30-0-106 ~]$ rpm -qf /usr/lib64/mysql/plugin/dialog.so
      MariaDB-common-10.3.12-1.el7.centos.x86_64
      

      Is the maxscale package supposed to install its own dialog.so, or is it supposed to have a dependency on the MariaDB-common package, and load the dialog.so plugin from /usr/lib64/mysql/plugin/?

      I was able to workaround the problem with:

      [ec2-user@ip-172-30-0-106 ~]$ sudo mkdir -p /var/lib/plugin
      [ec2-user@ip-172-30-0-106 ~]$ sudo install --mode=0755 /usr/lib64/mysql/plugin/dialog.so /var/lib/plugin/
      [ec2-user@ip-172-30-0-106 ~]$ sudo systemctl restart maxscale
      

      Attachments

        Issue Links

          Activity

            People

              esa.korhonen Esa Korhonen
              GeoffMontee Geoff Montee (Inactive)
              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.