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

file_key_management plugin install error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.1.4
    • Fix Version/s: N/A
    • Component/s: Encryption, Plugins
    • Labels:
      None
    • Environment:
      Red Hat Enterprise Linux Server release 6.5

      Description

      I can't install file_key_management, but use same command can install other plugin.

      MariaDB [test]> install soname 'file_key_management';
      ERROR 29 (HY000): File '' not found (Errcode: 2 "No such file or directory")
      

      and the error log says

      150603 13:09:13 [ERROR] Plugin 'file_key_management' init function returned error.
      150603 13:09:13 [ERROR] Plugin 'file_key_management' registration as a ENCRYPTION failed.
      

      I follow the MDEV-7979 suggestion, use --loose

      [root@ ~]# service mysql restart --loose-file-key-management-filename
      Shutting down MySQL..                                      [  OK  ]
      Starting MySQL..                                           [  OK  ]
      

      But I still have error

      MariaDB [test]> install soname 'file_key_management';
      ERROR 29 (HY000): File '--log-error=/var/lib/mysql/test.err' not found (Errcode: 2 "No such file or directory")
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              serg Sergei Golubchik added a comment - - edited

              The command line option --file-key-management-filename (with --loose or without) requires an argument, the file name.

              Show
              serg Sergei Golubchik added a comment - - edited The command line option --file-key-management-filename (with --loose or without) requires an argument, the file name.
              Hide
              Daniel Cheung Daniel Cheung added a comment -

              I'm sorry. I'm not understand the meaning of "requires an argument, the file name."
              I try

              service mysql restart --loose-file-key-management-'file_key_management'
              

              or

              service mysql restart --loose-file-key-management-filename='file_key_management'
              

              I still have error.

              MariaDB [test]> install soname 'file_key_management';
              ERROR 29 (HY000): File '' not found (Errcode: 2 "No such file or directory")
              

              But when I try

              service mysql restart --loose-file-key-management-''
              
              MariaDB [(none)]> show all_plugins;
              +-------------------------------+---------------+---------------------+--------------------------+---------+
              | Name                          | Status        | Type                | Library                  | License |
              +-------------------------------+---------------+---------------------+--------------------------+---------+
              | file_key_management           | DISABLED      | ENCRYPTION          | file_key_management.so   | GPL     |
              +-------------------------------+---------------+---------------------+--------------------------+---------+
              

              file_key_management status change to disable.
              Is it correct or not ?
              I still can't use the encryption
              if it's right, how to change the file_key_management to be active?

              Show
              Daniel Cheung Daniel Cheung added a comment - I'm sorry. I'm not understand the meaning of "requires an argument, the file name." I try service mysql restart --loose-file-key-management-'file_key_management' or service mysql restart --loose-file-key-management-filename='file_key_management' I still have error. MariaDB [test]> install soname 'file_key_management'; ERROR 29 (HY000): File '' not found (Errcode: 2 "No such file or directory" ) But when I try service mysql restart --loose-file-key-management-'' MariaDB [(none)]> show all_plugins; +-------------------------------+---------------+---------------------+--------------------------+---------+ | Name | Status | Type | Library | License | +-------------------------------+---------------+---------------------+--------------------------+---------+ | file_key_management | DISABLED | ENCRYPTION | file_key_management.so | GPL | +-------------------------------+---------------+---------------------+--------------------------+---------+ file_key_management status change to disable. Is it correct or not ? I still can't use the encryption if it's right, how to change the file_key_management to be active?
              Hide
              serg Sergei Golubchik added a comment -

              you need to have

              loose-file-key-management-filename=/path/to/existing/file/with/encryption/keys
              

              in your my.cnf file. And /path/to/existing/file/with/encryption/keys
              should be a valid path to the existing file with encryption keys.

              Without this setting, the file name is empty and the plugin fails to load with
              the error message "File '' not found".

              Show
              serg Sergei Golubchik added a comment - you need to have loose-file-key-management-filename=/path/to/existing/file/with/encryption/keys in your my.cnf file. And /path/to/existing/file/with/encryption/keys should be a valid path to the existing file with encryption keys. Without this setting, the file name is empty and the plugin fails to load with the error message "File '' not found".

                People

                • Assignee:
                  serg Sergei Golubchik
                  Reporter:
                  Daniel Cheung Daniel Cheung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: