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

auth_gssapi_client.so plugin cannot be loaded

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.2.10
    • 10.2.11
    • Plugins, Server
    • None
    • Fedora - All

    Description

      When I try to load a auth_gssapi_client.so plugin:

      $ mysql -u user -h db.example.com --plugin-dir=/usr/lib64/mariadb/plugin/ akonadi
       
      ERROR 2059 (HY000): Plugin auth_gssapi_client could not be loaded: not a plugin
      

      The server side registers the auth_gssapi plugin properly, but the client side doesn't work

      More info here

      Attachments

        Activity

          mschorm Michal Schorm added a comment -

          Possible duplicate of MDEV-9321 ?

          mschorm Michal Schorm added a comment - Possible duplicate of MDEV-9321 ?

          updated the description to copy the most relevant part from the redhat bugzilla

          serg Sergei Golubchik added a comment - updated the description to copy the most relevant part from the redhat bugzilla
          mschorm Michal Schorm added a comment -

          Actually, I copied the /var/log output, because I was also able to reproduce it following way:

          $ cat /etc/my.cnf.d/auth_gssapi.cnf
          [mariadb]
          plugin-load-add=auth_gssapi_client.so
          

          loaded by the configuration

          $ sudo systemctl restart mariadb
          $ mysql
          MariaDB [(none)]>
          

          lead to original error:

          2017-11-23 21:31:52 140340318318016 [ERROR] Can't find symbol '_mysql_plugin_interface_version_' in library
          2017-11-23 21:31:52 140340318318016 [ERROR] Couldn't load plugins from 'auth_gssapi_client.so'.
          

          I didn't manage to reproduce this one a s the mysql started normally:

          $ mysql --plugin-dir=/usr/lib64/mariadb/plugin/
          ERROR 2059 (HY000): Plugin auth_gssapi_client could not be loaded: not a plugin
          

          However, the amount of plugins loaded ("show plugins" query) remained the same if '--plugin-dir' used or not. (There are about 40 plugins in that directory)

          mschorm Michal Schorm added a comment - Actually, I copied the /var/log output, because I was also able to reproduce it following way: $ cat /etc/my .cnf.d /auth_gssapi .cnf [mariadb] plugin-load-add=auth_gssapi_client.so loaded by the configuration $ sudo systemctl restart mariadb $ mysql MariaDB [(none)]> lead to original error: 2017-11-23 21:31:52 140340318318016 [ERROR] Can 't find symbol ' _mysql_plugin_interface_version_' in library 2017-11-23 21:31:52 140340318318016 [ERROR] Couldn 't load plugins from ' auth_gssapi_client.so'. – I didn't manage to reproduce this one a s the mysql started normally: $ mysql --plugin- dir = /usr/lib64/mariadb/plugin/ ERROR 2059 (HY000): Plugin auth_gssapi_client could not be loaded: not a plugin However, the amount of plugins loaded ("show plugins" query) remained the same if '--plugin-dir' used or not. (There are about 40 plugins in that directory)

          Yes, and your reproducing was invalid — you tried to load a client plugin into the server, and correctly got an error that the client plugin does not contain the symbol that only server plugins have. This was very clear from the error log, so I've replaced the description using the text from your link, merely to avoid this bug report being immediately closed as "not a bug".

          I didn't try to repeat it yet, but it looks plausible, not something that can be rejected outright.

          serg Sergei Golubchik added a comment - Yes, and your reproducing was invalid — you tried to load a client plugin into the server , and correctly got an error that the client plugin does not contain the symbol that only server plugins have. This was very clear from the error log, so I've replaced the description using the text from your link, merely to avoid this bug report being immediately closed as "not a bug". I didn't try to repeat it yet, but it looks plausible, not something that can be rejected outright.
          wlad Vladislav Vaintroub added a comment - - edited

          I noticed this bug a while ago already, and fixed in C/C master branch https://github.com/MariaDB/mariadb-connector-c/commit/85d150eec156275c6468b5de490a65b1e069007c

          I forgot however that connectors master branch is not used in server build anymore. I cherry-picked this commit into 10.2-server branch.

          wlad Vladislav Vaintroub added a comment - - edited I noticed this bug a while ago already, and fixed in C/C master branch https://github.com/MariaDB/mariadb-connector-c/commit/85d150eec156275c6468b5de490a65b1e069007c I forgot however that connectors master branch is not used in server build anymore. I cherry-picked this commit into 10.2-server branch.

          People

            Unassigned Unassigned
            mschorm Michal Schorm
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.