[MDEV-26321] plugin_dir inconditionally defaults to "/usr" despite being set Created: 2021-08-09  Updated: 2021-08-09

Status: Open
Project: MariaDB Server
Component/s: Configuration
Affects Version/s: 10.3.29
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bilel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: configuration, plugin-dir
Environment:

Debian 10.10.0 amd 64 / mariadb-server 10.3.29-0+deb10u1


Attachments: PNG File 2021-08-09_04h35_13.png     PNG File 2021-08-09_04h36_14.png    

 Description   

Whereas plugin_dir being natively set to `/usr/lib/x86_64-linux-gnu/mariadb19/plugin` (confirmed by the output of the command show variables like 'plugin_dir';), adding any plugin in the section [mariadb] of the file _ /etc/mysql/mariadb.conf.d/50-server.cnf_ file and then running mysql_install_db results in the following error in the logs /var/log/mysql/error.log :

Can't open shared library '/usr/file_key_management.so (errno: 22, cannot open shared object file: No such file or directory)

The expected behavior would be to look into /usr/lib/x86_64-linux-gnu/mariadb19/plugin since this value is correctly (and by default) set.

To dig more, I tried to manually set the plugin_dir value in my.cnf and the result is the same.

The only (dirty) workaround I found at the moment is to copy all *.so from /usr/lib/x86_64-linux-gnu/mariadb19/plugin to /usr/


Generated at Thu Feb 08 09:44:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.