[MXS-3767] connector_plugindir does not pick up the default location. Created: 2021-09-16  Updated: 2021-10-04  Resolved: 2021-09-21

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 6.1.1
Fix Version/s: 6.1.2

Type: Bug Priority: Major
Reporter: Allen Lee (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

CENTOS 7



 Description   

User reported the plugin directory isn't picked as default location so throws the following error:

Connection to [rnpans401]:9611 failed. Error 1045: Plugin dialog could not be loaded: /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin/dialog.so: cannot open shared object file: No such file or directory

To workaround the issue,

[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com
 
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb
[root@host1 ~]# mkdir /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin
[root@host1 ~]#
[root@host1 ~]# cp /usr/lib64/mysql/plugin/dialog.so /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin
[root@host1 ~]#
[root@host1 ~]#
[root@host1 ~]# chmod 755 /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin/*
[root@host1 ~]# ls -lrht /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin/dialog.so
-rwxr-xr-x 1 root root 11K Sep 14 07:40 /home/timofey_turenko_mariadb_com/MaxScale/_build/connector-c/install/lib/mariadb/plugin/dialog.so

Then, error went away.



 Comments   
Comment by markus makela [ 2021-09-16 ]

This seems to be a regression in certain components as the compile time default is used. MaxScale should always pass the plugin directory to the connector whenever it opens a connection as the compile time one is always wrong.

Generated at Thu Feb 08 04:23:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.