[MXS-2549] prelink can corrupt maxctrl Created: 2019-06-07  Updated: 2020-12-08  Resolved: 2019-07-02

Status: Closed
Project: MariaDB MaxScale
Component/s: init script
Affects Version/s: 2.3
Fix Version/s: 2.3.9

Type: Bug Priority: Major
Reporter: Richard Stracke Assignee: markus makela
Resolution: Fixed Votes: 2
Labels: None

Sprint: MXS-SPRINT-84

 Description   

Prelink run sceduled on some OS, like red hat,
so maxctrl not working after next run

To reproduce:

Install maxscale (yum or apt-get)

install prelink (yum or apt-get)

sudo /usr/sbin/prelink /usr/bin/maxctrl

Afterwards maxctrl not work anymore.

/usr/bin/maxctrl --version
Pkg: Error reading from file.

or

maxctrl list servers
module.js:471
throw err;

Workaround:

add -b /usr/bin/maxctrl
in
/etc/prelink.conf



 Comments   
Comment by markus makela [ 2019-06-08 ]

MaxScale should probably install a file into /etc/prelink.conf.d/ to prevent it.

Comment by markus makela [ 2019-07-02 ]

Did you reinstall MaxScale after adding that file? The maxctrl executable will be corrupted and can only be fixed by a reinstallation of the package.

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