ps-toku-admin says jemalloc is in use but plugin installation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Fix Released
|
High
|
Tomislav Plavcic |
Bug Description
[justin@localhost grub2]$ sudo ps_tokudb_admin --enable -u root
Checking if Percona server is running with jemalloc enabled...
>> Percona server is running with jemalloc enabled.
Checking transparent huge pages status on the system...
>> Transparent huge pages are enabled (should be disabled).
Checking if thp-setting=never option is already set in config file...
>> Option thp-setting=never is not set in the config file.
>> (needed only if THP is not disabled permanently on the system)
Checking TokuDB plugin status...
>> TokuDB plugin is not installed.
Disabling transparent huge pages for the current session...
>> Successfuly disabled transparent huge pages for this session.
Adding thp-setting=never option into /etc/my.cnf
>> Successfuly added thp-setting=never option into /etc/my.cnf
Installing TokuDB engine...
>> Error installing TokuDB plugin. Please check error log.
[justin@localhost grub2]$ sudo cat /var/log/mysqld.log
150216 19:49:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2015-02-16 19:49:13 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_
2015-02-16 19:49:13 2133 [Note] Plugin 'FEDERATED' is disabled.
2015-02-16 19:49:13 2133 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-16 19:49:13 2133 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-16 19:49:13 2133 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-02-16 19:49:13 2133 [Note] InnoDB: Memory barrier is not used
2015-02-16 19:49:13 2133 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-02-16 19:49:13 2133 [Note] InnoDB: Using Linux native AIO
2015-02-16 19:49:13 2133 [Note] InnoDB: Not using CPU crc32 instructions
2015-02-16 19:49:13 2133 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-02-16 19:49:13 2133 [Note] InnoDB: Completed initialization of buffer pool
2015-02-16 19:49:13 2133 [Note] InnoDB: Highest supported file format is Barracuda.
2015-02-16 19:49:13 2133 [Note] InnoDB: 128 rollback segment(s) are active.
2015-02-16 19:49:13 2133 [Note] InnoDB: Waiting for purge to start
2015-02-16 19:49:13 2133 [Note] InnoDB: Percona XtraDB (http://
2015-02-16 19:49:13 2133 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: cacde206-
2015-02-16 19:49:13 2133 [Note] RSA private key file not found: /var/lib/
2015-02-16 19:49:13 2133 [Note] RSA public key file not found: /var/lib/
2015-02-16 19:49:13 2133 [Note] Server hostname (bind-address): '*'; port: 3306
2015-02-16 19:49:13 2133 [Note] IPv6 is available.
2015-02-16 19:49:13 2133 [Note] - '::' resolves to '::';
2015-02-16 19:49:13 2133 [Note] Server socket created on IP: '::'.
2015-02-16 19:49:13 2133 [Note] Event Scheduler: Loaded 0 events
2015-02-16 19:49:13 2133 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.22-72.0' socket: '/var/lib/
2015-02-16 20:04:47 2133 [ERROR] TokuDB is not initialized because jemalloc is not loaded
2015-02-16 20:04:47 2133 [ERROR] Plugin 'TokuDB' init function returned error.
2015-02-16 20:04:47 2133 [ERROR] Plugin 'TokuDB' registration as a STORAGE ENGINE failed.
2015-02-16 20:04:47 2133 [Note] Shutting down plugin 'TokuDB'
All I did was:
sudo yum install Percona-Server-*56*
Then ps-toku-admin --enable -u root
Expected result:
working tokudb after basic RPM setup
tags: | added: pkg tokudb |
Changed in percona-server: | |
status: | Fix Committed → Fix Released |
So this is caused by SElinux. It won't allow the LD_PRELOAD to work. The tool should error out if SElinux is enabled or it should modify the SElinux configuration to allow the database to work.