Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5433

Issue with installing TokuBackup on Percona-server docker image(s)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: On Hold
    • Priority: Medium
    • Resolution: Reopened
    • Affects Version/s: 5.6.43-84.3, 5.7.25-28, 8.0.13-4
    • Fix Version/s: None
    • Component/s: Packaging, TokuBackup, TokuDB
    • Environment:
    • Story Points:
      2

      Description

      We have an issue when trying to install TokuBackup when using docker image for any newer version than percona/percona-server:5.6.28

      In the current version we use (percona/percona-server:5.6.28), if docker image is provided as is, this issue is also present, but there is a hack, that changes entrypoint.sh in the container to run as mysqld_safe, but this is not applicable to later versions, because this script is changed and default user is not root any more.

      Here are the details for replicating this issue we are having:

      • Start container initially with latest Percona 5.6 version docker image:
      sudo docker run --name percona -e INIT_TOKUDB=1 -e MYSQL_ROOT_PASSWORD=root -d percona/percona-server:5.6.43
      
      • List out running docker containers:
      sudo docker ps
      

      Output:

      CONTAINER ID        IMAGE                            COMMAND           CREATED                 STATUS                       PORTS                 NAMES
      6ac229de8a42        percona/percona-server:5.6.43   "/docker-entrypoint.…"   37 seconds ago      Up 36 seconds       3306/tcp            percona
      
      
      • Enable TokuBackup
      sudo docker exec -u root percona sh -c "ps_tokudb_admin --enable-backup -u root -proot"
      

      Output:

      Checking if Percona Server is running with jemalloc enabled...
      WARNING: The file /proc/1/environ is not readable so impossible to check LD_PRELOAD for jemalloc.
               Possibly running inside container so assuming jemalloc is preloaded and continuing...
               If there will be an error during plugin installation try to restart mysql service and run this script again.
       
      Checking transparent huge pages status on the system...
      INFO: Transparent huge pages are currently disabled on the system.
       
      Checking if thp-setting=never option is already set in config file...
      INFO: Option thp-setting=never is set in the config file.
       
      Checking if preload-hotbackup option is already set in config file...
      INFO: Option preload-hotbackup is not set in the config file.
       
      Checking TokuDB engine plugin status...
      INFO: TokuDB engine plugin is installed.
       
      Checking TokuBackup plugin status...
      INFO: TokuBackup plugin is not installed.
       
      Adding preload-hotbackup option into /etc/my.cnf
      INFO: Successfully added preload-hotbackup option into /etc/my.cnf
      PLEASE RESTART MYSQL SERVICE AND RUN THIS SCRIPT AGAIN TO FINISH INSTALLATION!
      
      
      • Restarting docker container
      sudo docker restart percona
      sudo docker ps
      

      Output:

      CONTAINER ID        IMAGE                            COMMAND                        CREATED                STATUS                   PORTS                 NAMES
      6ac229de8a42        percona/percona-server:5.6.43   "/docker-entrypoint.…"   7 minutes ago       Up 14 seconds       3306/tcp            percona
      
      • Run ps_tokudb_admin --enable-backup once again per instructions
      sudo docker exec -u root percona sh -c "ps_tokudb_admin --enable-backup -u root -proot"
      

      Output:

      Checking if Percona Server is running with jemalloc enabled...
      WARNING: The file /proc/1/environ is not readable so impossible to check LD_PRELOAD for jemalloc.
               Possibly running inside container so assuming jemalloc is preloaded and continuing...
               If there will be an error during plugin installation try to restart mysql service and run this script again.
       
      Checking transparent huge pages status on the system...
      INFO: Transparent huge pages are currently disabled on the system.
       
      Checking if thp-setting=never option is already set in config file...
      INFO: Option thp-setting=never is set in the config file.
       
      Checking if preload-hotbackup option is already set in config file...
      INFO: Option preload-hotbackup is set in the config file.
       
      Checking TokuDB engine plugin status...
      INFO: TokuDB engine plugin is installed.
       
      Checking TokuBackup plugin status...
      INFO: TokuBackup plugin is not installed.
       
      Checking if Percona Server is running with libHotBackup.so preloaded...
      WARNING: The file /proc/1/environ is not readable so impossible to check LD_PRELOAD for libHotBackup.so.
               Possibly running inside container so assuming libHotBackup.so is preloaded and continuing.
               If there will be an error during plugin installation try to restart mysql service and run this script again.
       
      Installing TokuBackup plugin...
      ERROR: Failed to install TokuBackup plugin. Please check error log.
      
      • sudo docker logs percona (in attached file)

      We've also tried newer major versions as well (5.7, 8) but to no avail, still having this issue

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                evgeniy.patlan Evgeniy Patlan
                Reporter:
                omladinacm Dragan Marčeta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: