By: Kevin Fletcher named 12 Oct 2021 at 2:53 p.m. CDT

23 Responses
Kevin Fletcher gravatar
I am having an issue with Cluster Manager when I go to install Gluu 4.2.1 on the first node. When I go through the install I get the following: ``` Traceback (most recent call last): File "/opt/clustermgr/clustermgr/celery/app/trace.py", line 382, in trace_task R = retval = fun(*args, **kwargs) File "/opt/clustermgr/clustermgr/clustermgr/application.py", line 25, in __call__ return TaskBase.__call__(self, *args, **kwargs) File "/opt/clustermgr/clustermgr/celery/app/trace.py", line 641, in __protected_call__ return self.run(*args, **kwargs) File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 213, in task_install_gluu_server raise Exception(traceback.format_exc()) Exception: Traceback (most recent call last): File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 211, in task_install_gluu_server install_gluu_server(task_id, server_id) File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 722, in install_gluu_server ldapc.connect() File "/opt/clustermgr/clustermgr/clustermgr/core/ldap_functions.py", line 59, in connect return self.conn.bind() File "/opt/clustermgr/clustermgr/ldap3/core/connection.py", line 561, in bind self.open(read_server_info=False) File "/opt/clustermgr/clustermgr/ldap3/strategy/sync.py", line 56, in open BaseStrategy.open(self, reset_usage, read_server_info) File "/opt/clustermgr/clustermgr/ldap3/strategy/base.py", line 139, in open raise exception_history[0][0] LDAPSocketOpenError: socket connection error while opening: [Errno 111] Connection refused ``` Any ideas? Thanks, Kevin Fletcher

By Aliaksandr Samuseu staff 12 Oct 2021 at 3:12 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Kevin. Have you ensured that all LDAP ports mentioned in [this doc](https://gluu.org/docs/cm/4.2/installation/) are accessible both from CM machine itself, and between the two nodes of the cluster? In particular, TCP ports like 1636, 4444, 8989? You can test with tools like `ncat`, if in doubt. If you try to deploy it on some cloud vm, you may need to check your virtual network's topology and security rules. @Mustafa.Baser is there a known outstanding issue like this, by any chance?

By Devrim Yatar staff 13 Oct 2021 at 8:40 a.m. CDT

Devrim Yatar gravatar
Hi, It seems cluster manager server has no access to port 1636 and 4444 on nodes. Please check your firewall settings. Regards.

By Aliaksandr Samuseu staff 14 Oct 2021 at 3:30 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Kevin. Were you able to find the cause, taking into account suggestions above?

By Kevin Fletcher named 15 Oct 2021 at 3:29 p.m. CDT

Kevin Fletcher gravatar
I am still looking. I the only thing that I have found so far is that I had a typo on the primary DNS. I have gotten past that but I am still getting errors. All firewalls have been turned off and selinux is also disabled. Any other ideas to check???

By Devrim Yatar staff 15 Oct 2021 at 3:34 p.m. CDT

Devrim Yatar gravatar
Hi, Could you send files under `~/.clustermgr4/logs`? Regards.

By Kevin Fletcher named 15 Oct 2021 at 6:12 p.m. CDT

Kevin Fletcher gravatar
Here are all the logs in the log directory.

By Devrim Yatar staff 18 Oct 2021 at 5:03 a.m. CDT

Devrim Yatar gravatar
Hi What I can see from logs is it can't install gluu-server 4.2.1. There seems something wrong with adding gluu yum repository. I will try to identify the issue and will return asap. Regards.

By Devrim Yatar staff 18 Oct 2021 at 9:35 a.m. CDT

Devrim Yatar gravatar
Hi, I have found that ca-certs were outdated. Please execute the following command on nodes and CM server: ``` yum install -y ca-certificates ``` Regards.

By Devrim Yatar staff 18 Oct 2021 at 10:06 a.m. CDT

Devrim Yatar gravatar
Wait, certificates inside container are also outdated. I am trying to solve the issue.

By Devrim Yatar staff 18 Oct 2021 at 11:49 a.m. CDT

Devrim Yatar gravatar
Hi, I solved the issue. Please upgrade cluster manager. Regards.

By Kevin Fletcher named 19 Oct 2021 at 1:12 p.m. CDT

Kevin Fletcher gravatar
So which version of Cluster manager should I be on? I am currently running 4.2-03 That is with a fresh install. Btw was using the rpm version of the install. I also tried the pip install of Cluster Manager and I ran into errors. ``` Collecting psutil==5.7.2 (from clustermgr4==4.2-06) Using cached https://files.pythonhosted.org/packages/aa/3e/d18f2c04cf2b528e18515999b0c8e698c136db78f62df34eee89cee205f1/psutil-5.7.2.tar.gz Complete output from command python setup.py egg_info: /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in psutil setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WAzY9Q/psutil/ You are using pip version 8.1.2, however version 21.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. [root@tlhlxgcm01 ~]# pip install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/00/5f/d6959d6f25f202e3e68e3a53b815af42d770c829c19382d0acbf2c3e2112/pip-21.3.tar.gz (1.7MB) 100% |████████████████████████████████| 1.7MB 606kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-Bll3IC/pip/setup.py", line 7 def read(rel_path: str) -> str: ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Bll3IC/pip/ You are using pip version 8.1.2, however version 21.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. [root@tlhlxgcm01 ~]# pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/00/5f/d6959d6f25f202e3e68e3a53b815af42d770c829c19382d0acbf2c3e2112/pip-21.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-gkKvQM/pip/setup.py", line 7 def read(rel_path: str) -> str: ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gkKvQM/pip/ You are using pip version 8.1.2, however version 21.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. [root@tlhlxgcm01 ~]# pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/00/5f/d6959d6f25f202e3e68e3a53b815af42d770c829c19382d0acbf2c3e2112/pip-21.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-NB8rhM/pip/setup.py", line 7 def read(rel_path: str) -> str: ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NB8rhM/pip/ You are using pip version 8.1.2, however version 21.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. ``` Can you provide me a correct set of instructions to install Cluster Manager on Redhat 7.9?

By Kevin Fletcher named 19 Oct 2021 at 3:32 p.m. CDT

Kevin Fletcher gravatar
Btw: Here are the steps that I am taking to install the Cluster Manager software ``` #Install Epel Release sudo rpm -i https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum clean all #Install Java sudo yum -y install java-1.8.0-openjdk #Install Cluster Manager sudo wget --no-check-certificate https://repo.gluu.org/rhel/Gluu-rhel-7-testing.repo -O /etc/yum.repos.d/Gluu.repo sudo wget --no-check-certificate https://repo.gluu.org/rhel/RPM-GPG-KEY-GLUU -O /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU sudo yum clean all sudo yum -y install clustermgr #Download Key Generator sudo mkdir -p $HOME/.clustermgr4/javalibs sudo wget --no-check-certificate https://ox.gluu.org/maven/org/gluu/oxauth-client/4.2.0.Final/oxauth-client-4.2.0.Final-jar-with-dependencies.jar -O $HOME/.clustermgr4/javalibs/keygen.jar #Cluster Manager Service sudo systemctl enable clustermgr #Start Cluster Manager Service sudo systemctl start clustermgr #Check Cluster Manager Status sudo systemctl status clustermgr ``` I have to do the --no-check-certificate because your Let's Encrypt certificate is expired.

By Devrim Yatar staff 19 Oct 2021 at 3:34 p.m. CDT

Devrim Yatar gravatar
Hi, You need clustermgr4 4.2.post6 ``` pip uninstall clustermgr4 pip install clustermgr4 ``` Regards.

By Devrim Yatar staff 19 Oct 2021 at 3:35 p.m. CDT

Devrim Yatar gravatar
I am asking packager to create a new rpm package.

By Kevin Fletcher named 20 Oct 2021 at 1:50 p.m. CDT

Kevin Fletcher gravatar
Please let me know ASAP when the rpm package is ready. Having to deal with multiple issues relating to pip and python versions are not working out. The binary rpm package would work out best for our environment. This is the rpm version that I have currently: clustermgr.x86_64 4.2.1-42.el7

By Devrim Yatar staff 22 Oct 2021 at 11:50 a.m. CDT

Devrim Yatar gravatar
Hi, I was not successful creating binary package. Though pip works well Let me test if direct update of clustermgr files work on installed package

By Devrim Yatar staff 22 Oct 2021 at 12:12 p.m. CDT

Devrim Yatar gravatar
Okay it worked. Once you installed `clustermgr.x86_64 4.2.1-42.el7`, you can upgrade as follows: ``` rm -rf /opt/clustermgr/clustermgr/clustermgr wget https://github.com/GluuFederation/cluster-mgr/archive/refs/heads/4.2.zip unzip 4.2.zip cp -r cluster-mgr-4.2/clustermgr /opt/clustermgr/clustermgr ``` Regards.

By Devrim Yatar staff 22 Oct 2021 at 12:13 p.m. CDT

Devrim Yatar gravatar
Sorry I forget command `unzip 4.2.zip` after downloading from github. I fixed above.

By Kevin Fletcher named 26 Oct 2021 at 12:56 p.m. CDT

Kevin Fletcher gravatar
Sorry for the delay. I reset the environment again and got further during the install but it failed again. Output: ``` Traceback (most recent call last): File "/opt/clustermgr/clustermgr/celery/app/trace.py", line 382, in trace_task R = retval = fun(*args, **kwargs) File "/opt/clustermgr/clustermgr/clustermgr/application.py", line 25, in __call__ return TaskBase.__call__(self, *args, **kwargs) File "/opt/clustermgr/clustermgr/celery/app/trace.py", line 641, in __protected_call__ return self.run(*args, **kwargs) File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 213, in task_install_gluu_server raise Exception(traceback.format_exc()) Exception: Traceback (most recent call last): File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 211, in task_install_gluu_server install_gluu_server(task_id, server_id) File "/opt/clustermgr/clustermgr/clustermgr/tasks/server.py", line 738, in install_gluu_server ldapc.connect() File "/opt/clustermgr/clustermgr/clustermgr/core/ldap_functions.py", line 59, in connect return self.conn.bind() File "/opt/clustermgr/clustermgr/ldap3/core/connection.py", line 561, in bind self.open(read_server_info=False) File "/opt/clustermgr/clustermgr/ldap3/strategy/sync.py", line 56, in open BaseStrategy.open(self, reset_usage, read_server_info) File "/opt/clustermgr/clustermgr/ldap3/strategy/base.py", line 139, in open raise exception_history[0][0] LDAPSocketOpenError: socket connection error while opening: [Errno 111] Connection refused ``` I am attaching the logs for your review.

By Devrim Yatar staff 27 Oct 2021 at 4:44 a.m. CDT

Devrim Yatar gravatar
Hi, It went well up to ldap connection. Please login to server **tlhlxglu01** and check if ldap is running: `# netstat -lnp | grep 1636` The output should be look like: `tcp6 0 0 :::1636 :::* LISTEN 47809/java` If this is OK, please ensure firewall allows connection to port 4444 and 1636

By Kevin Fletcher named 27 Oct 2021 at 9:21 a.m. CDT

Kevin Fletcher gravatar
LDAP was not running. Both the firewalls and selinux have been turned off from the beginning on all servers. I did not want them messing with the install until I can everything working properly. ``` [root@tlhlxgcm01 ~]# ssh tlhlxglu01 Last login: Tue Oct 26 11:50:55 2021 from tlhlxgcm01.flvc.org [root@tlhlxglu01 ~]# netstat -lnp | grep 1636 [root@tlhlxglu01 ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:firewalld(1) [root@tlhlxglu01 ~]# sestatus SELinux status: disabled ```

By Devrim Yatar staff 27 Oct 2021 at 2:58 p.m. CDT

Devrim Yatar gravatar
Hi, It seems installation was not successful. Can you please send setup logs? Regards

By Mohib Zico Account Admin 21 Nov 2021 at 9:39 p.m. CST

Mohib Zico gravatar
Hello, Please reopen the ticket if required. Thanks!