[MXS-2081] Unable to execute maxctrl commands in RHEL 6 - Maxscale 2.2.9 Created: 2018-10-05  Updated: 2020-08-25  Resolved: 2018-11-22

Status: Closed
Project: MariaDB MaxScale
Component/s: Packaging
Affects Version/s: 2.2.9
Fix Version/s: 2.2.17

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

Red Hat Enterprise Linux 6.9


Sprint: MXS-SPRINT-69, MXS-SPRINT-70

 Description   

We are unable to execute maxctrl commands in RHEL 6.9 servers. Please help to check.

$ ps -ef | grep /usr/bin/maxscale
... 15972 1 0 Oct02 ? 00:25:26 /usr/bin/maxscale --user=...

$ maxctrl list servers
module.js:471
throw err;
^

Error: Cannot find module '/home/maxscale/list'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:432:7)
at startup (bootstrap_node.js:192:9)
at bootstrap_node.js:547:3

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)



 Comments   
Comment by markus makela [ 2018-11-15 ]

Try if these steps produce a working maxctrl:

wget https://downloads.mariadb.com/MaxScale/2.2.16/centos/7/x86_64/maxscale-2.2.16.centos.7.tar.gz
tar -axf maxscale-2.2.16.centos.7.tar.gz
maxscale-2.2.16.centos.7/bin/maxctrl help

Comment by markus makela [ 2018-11-15 ]

Could not reproduce with CentOS 6 with either RHEL or CentOS packages for versions 2.2.9 and 2.2.16. Both versions on both OSes worked as expected.

Comment by markus makela [ 2018-11-22 ]

Turns out that on some systems when an RPM is installed it is stripped by default. To prevent this, the packaging had to be modified.

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