[MXS-284] using command history in maxadmin doesn't work on centos 7.1 Created: 2015-07-23  Updated: 2017-09-15  Resolved: 2017-01-16

Status: Closed
Project: MariaDB MaxScale
Component/s: maxadmin
Affects Version/s: 1.2.0
Fix Version/s: 1.4.4

Type: Bug Priority: Minor
Reporter: Jean-Francois Theroux Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File Screen Shot 2015-07-23 at 12.28.12 PM.png    
Issue Links:
Relates
relates to MXS-1419 maxadmin history is missing Closed
Sprint: 2017-25

 Description   

I've installed MaxScale 1.2.0 on Centos 7.1.1503 this morning. I've noticed an issue with maxadmin though: i can't use the up arrow to access old commands that have been typed in.

You can see the attached screenshot to see what happens.

Also, I currently have libedit-3.0-12.20121213cvs.el7.x86_64 installed.



 Comments   
Comment by markus makela [ 2015-09-22 ]

libedit needs to be installed on he build machine in order for the command history to work.

Comment by markus makela [ 2015-11-02 ]

failshell Can you try again with 1.2.1?

Comment by Jean-Francois Theroux [ 2015-11-02 ]

Sadly, I get the same error.

Comment by markus makela [ 2015-11-02 ]

What is the ldd output for your installation's maxadmin?

For comparison, here is one from a CentOS 7 VM with MaxScale 1.2.1:

[root@localhost etc]# ldd /bin/maxadmin
	linux-vdso.so.1 =>  (0x00007fff54f96000)
	libedit.so.0 => /lib64/libedit.so.0 (0x00007f9080f6d000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f9080bab000)
	libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f9080981000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f90811b0000)

The libtinfo.so seems to be provided by ncurses-devel but on the VM the package isn't installed. Can you try installing this package and trying if it fixes your problems?

Comment by Jean-Francois Theroux [ 2015-11-02 ]

[centos@ip-10-148-98-179 ~]$ sudo ldd /bin/maxadmin
linux-vdso.so.1 => (0x00007fffe99fe000)
libc.so.6 => /lib64/libc.so.6 (0x00007f96557ea000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9655bb2000)
[centos@ip-10-148-98-179 ~]$ rpm -qi maxscale
Name : maxscale
Version : 1.2.1
Release : 1
Architecture: x86_64
Install Date: Mon 02 Nov 2015 03:33:56 PM UTC
Group : unknown
Size : 80467684
License : GPLv2
Signature : RSA/SHA1, Thu 01 Oct 2015 02:12:39 PM UTC, Key ID 70e4618a8167ee24
Source RPM : maxscale-1.2.1-1.src.rpm
Build Date : Thu 01 Oct 2015 02:04:37 PM UTC
Build Host : ip-10-84-7-34.eu-west-1.compute.internal
Relocations : (not relocatable)
Vendor : MariaDB Corporation Ab
Summary : MaxScale
Description :
The MariaDB Corporation MaxScale is an intelligent proxy that allows forwarding of
database statements to one or more database servers using complex rules,
a semantic understanding of the database statements and the roles of
the various servers within the backend cluster of databases.

MaxScale is designed to provide load balancing and high availability
functionality transparently to the applications. In addition it provides
a highly scalable and flexible architecture, with plugin components to
support different protocols and routing decisions.

Comment by Jean-Francois Theroux [ 2015-11-02 ]

I installed ncurses-devel and it's stil not working.

Comment by markus makela [ 2015-11-02 ]

Thank you for a quick reply. It seems there is something wrong with the build process for CentOS 7, we'll let you know when we have more information.

Comment by markus makela [ 2016-08-30 ]

Adding readline support for maxadmin is one way to fix this.

Comment by Esa Korhonen [ 2017-01-16 ]

After testing MaxScale 1.4.4 in CentOS 7, it seems MaxAdmin is working as intended. The command history requires that the libedit-devel package is installed when configuring and compiling.

Please upgrade to 1.4.4 and retry.

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