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

15 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 Mustafa Baser staff 13 Oct 2021 at 8:40 a.m. CDT

Mustafa Baser 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 Mustafa Baser staff 15 Oct 2021 at 3:34 p.m. CDT

Mustafa Baser 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 Mustafa Baser staff 18 Oct 2021 at 5:03 a.m. CDT

Mustafa Baser 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 Mustafa Baser staff 18 Oct 2021 at 9:35 a.m. CDT

Mustafa Baser 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 Mustafa Baser staff 18 Oct 2021 at 10:06 a.m. CDT

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

By Mustafa Baser staff 18 Oct 2021 at 11:49 a.m. CDT

Mustafa Baser 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 Mustafa Baser staff 19 Oct 2021 at 3:34 p.m. CDT

Mustafa Baser gravatar
Hi, You need clustermgr4 4.2.post6 ``` pip uninstall clustermgr4 pip install clustermgr4 ``` Regards.

By Mustafa Baser staff 19 Oct 2021 at 3:35 p.m. CDT

Mustafa Baser 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