Bug #76345 mysql-cluster auto-installer fails to work on RHEL7.1
Submitted: 16 Mar 2015 23:03 Modified: 15 Apr 2015 9:46
Reporter: Steven Jones Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Cluster: Cluster/J Severity:S1 (Critical)
Version:7.4.4 OS:Linux (rhel7.1 64bit)
Assigned to: CPU Architecture:Any
Tags: auto-installer fails to run cannot bind to port 8081

[16 Mar 2015 23:03] Steven Jones
Description:
output as below.

===========
bash-4.2$ cd ~/
bash-4.2$ pwd
/var/lib/mysql
bash-4.2$ /usr/bin/ndb_setup.py
Running out of install dir: /usr/bin
Starting web server on port 8081
deathkey=206426
Traceback (most recent call last):
  File "/usr/share/mysql/mcc/request_handler.py", line 537, in main
    httpsrv = ConfiguratorServer(srvopts)
  File "/usr/share/mysql/mcc/request_handler.py", line 420, in __init__
    SocketServer.TCPServer.__init__(self, (opts['server'], opts['port']), ConfiguratorHandler)
  File "/usr/lib64/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
bash-4.2$
===========

How to repeat:
every time

Suggested fix:
no idea
[16 Mar 2015 23:22] Steven Jones
MySQL-Cluster-server-gpl-7.4.4-1.el7.x86_64.rpm
[17 Mar 2015 10:29] MySQL Verification Team
Hello Steven Jones,

Thank you for the report.
I didn't see this issue on OL7.
Could you please confirm with netstat etc whether the port 8081 is already in use e.g netstat -an |grep 8081?  

Thanks,
Umesh
[17 Mar 2015 20:01] Steven Jones
bash-4.2$ netstat -an |grep 22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     16223    @ISCSIADM_ABSTRACT_NAMESPACE
unix  3      [ ]         STREAM     CONNECTED     22313    
unix  3      [ ]         STREAM     CONNECTED     28522    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     25822    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     27422    
unix  3      [ ]         STREAM     CONNECTED     22314    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     29822    
bash-4.2$ netstat -an |grep 8081
bash-4.2$ id
uid=990(mysql) gid=988(mysql) groups=988(mysql),125800001(ipausers) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
bash-4.2$
[15 Apr 2015 9:46] MySQL Verification Team
There must be some other issue at your end since it works even with latest python-paramiko

// installed python-paramiko-1.15.1-1.el7.noarch from epel

[root@localhost Downloads]# rpm -qa|grep python-paramiko
python-paramiko-1.15.1-1.el7.noarch
[root@localhost Downloads]# 

// Also, no issues even with the root/mysql user

[root@localhost Downloads]# /usr/bin/ndb_setup.py
Running out of install dir: /usr/bin
Starting web server on port 8081
deathkey=151896
The application should now be running in your browser.
(Alternatively you can navigate to http://localhost:8081/welcome.html to start it)
^C^C received, shutting down web server
[root@localhost Downloads]# su mysql
bash-4.2$ /usr/bin/ndb_setup.py
Running out of install dir: /usr/bin
Starting web server on port 8081
deathkey=284846
The application should now be running in your browser.
(Alternatively you can navigate to http://localhost:8081/welcome.html to start it)
No protocol specified
No protocol specified
Error: cannot open display: :0

Imho Bug #76345 and Bug #76360 are related, and have posted the test results which applies here too. may be we can close one of as duplicate and continue in one.

If you can provide more information, feel free to add it to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.