Not the answer you need?
Register and ask your own question!

Error enabling TokuDB through ps_tokudb_admin

GenryUGenryU EntrantCurrent User Role Beginner
Ubuntu 15.10
Docker 1.9.1
Checking if Percona Server is running with jemalloc enabled...
grep: /proc/820/environ: Permission denied
ERROR: Percona Server is not running with jemalloc, please ...

But if we run check of this process (mysqld in container) through host (not in container), its return ok:
INFO: Percona Server is running with jemalloc enabled

Previous version:
# Check if server is running with jemalloc - if not warn that restart is needed
if [ $ENABLE = 1 ]; then
  printf "Checking if Percona Server is running with jemalloc enabled...\n"
  JEMALLOC_STATUS=$(grep -c jemalloc /proc/${PID_NUM}/environ)
  if [ $JEMALLOC_STATUS = 0 ]; then
    printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
    exit 1
  else
    printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
  fi
fi

Current version of ps_tokudb_admin (with this error?):
# Check if server is running with jemalloc - if not warn that restart is needed
if [ $ENABLE = 1 ]; then
  printf "Checking if Percona Server is running with jemalloc enabled...\n"
  grep -qc jemalloc /proc/${PID_NUM}/environ || ldd $(which mysqld) | grep -qc jemalloc
  JEMALLOC_STATUS=$?
  if [ $JEMALLOC_STATUS = 1 ]; then
    printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
    exit 1
  else
    printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
  fi
fi
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.