By: Praveen Srinivasan user 26 Apr 2022 at 1:55 a.m. CDT

4 Responses
Praveen Srinivasan gravatar
Hi, Trying to install GLUU cluster manager by following https://gluu.org/docs/cm/installation/ document for 4.3 (in ubuntu 20.04). When I start the cluster manager it is throwing below error. Attached the complete logs below. ``` ==> gunicorn_error.log <== [2022-04-26 06:52:56 +0000] [52039] [INFO] Starting gunicorn 20.1.0 [2022-04-26 06:52:56 +0000] [52039] [INFO] Listening at: http://127.0.0.1:5000 (52039) [2022-04-26 06:52:56 +0000] [52039] [INFO] Using worker: sync [2022-04-26 06:52:56 +0000] [52041] [INFO] Booting worker with pid: 52041 [2022-04-26 06:52:56 +0000] [52042] [INFO] Booting worker with pid: 52042 [2022-04-26 06:52:57 +0000] [52041] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 821, in read_response response = self._parser.read_response(disable_decoding=disable_decoding) File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 320, in read_response raw = self._buffer.readline() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 251, in readline self._read_from_socket() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 194, in _read_from_socket data = self._sock.recv(socket_read_size) ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker worker.init_process() File "/usr/local/lib/python3.8/dist-packages/gunicorn/workers/base.py", line 134, in init_process self.load_wsgi() File "/usr/local/lib/python3.8/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load return self.load_wsgiapp() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.8/dist-packages/gunicorn/util.py", line 359, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/local/bin/clusterapp.py", line 15, in <module> from clustermgr.application import create_app, init_celery File "/usr/local/lib/python3.8/dist-packages/clustermgr/application.py", line 9, in <module> from clustermgr.extensions import db, csrf, migrate, wlogger, \ File "/usr/local/lib/python3.8/dist-packages/clustermgr/extensions.py", line 24, in <module> Config.CLUSTERMGR_REDIS = Redis(os.path.join(Config.DATA_DIR, 'redis.db')) File "/usr/local/lib/python3.8/dist-packages/redislite/client.py", line 395, in __init__ self._wait_for_server_start() File "/usr/local/lib/python3.8/dist-packages/redislite/client.py", line 217, in _wait_for_server_start self.ping() File "/usr/local/lib/python3.8/dist-packages/redis/commands/core.py", line 1053, in ping return self.execute_command("PING", **kwargs) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1218, in execute_command return conn.retry.call_with_retry( File "/usr/local/lib/python3.8/dist-packages/redis/retry.py", line 48, in call_with_retry fail(error) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1222, in <lambda> lambda error: self._disconnect_raise(conn, error), File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1208, in _disconnect_raise raise error File "/usr/local/lib/python3.8/dist-packages/redis/retry.py", line 45, in call_with_retry return do() File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1219, in <lambda> lambda: self._send_command_parse_response( File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1195, in _send_command_parse_response return self.parse_response(conn, command_name, **options) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1234, in parse_response response = connection.read_response() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 827, in read_response raise ConnectionError(f"Error while reading from {hosterr}" f" : {e.args}") redis.exceptions.ConnectionError: Error while reading from connection : (104, 'Connection reset by peer') [2022-04-26 06:52:57 +0000] [52041] [INFO] Worker exiting (pid: 52041) [2022-04-26 06:52:57 +0000] [52042] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 821, in read_response response = self._parser.read_response(disable_decoding=disable_decoding) File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 320, in read_response raw = self._buffer.readline() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 251, in readline self._read_from_socket() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 194, in _read_from_socket data = self._sock.recv(socket_read_size) ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker worker.init_process() File "/usr/local/lib/python3.8/dist-packages/gunicorn/workers/base.py", line 134, in init_process self.load_wsgi() File "/usr/local/lib/python3.8/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load return self.load_wsgiapp() File "/usr/local/lib/python3.8/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.8/dist-packages/gunicorn/util.py", line 359, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/local/bin/clusterapp.py", line 15, in <module> from clustermgr.application import create_app, init_celery File "/usr/local/lib/python3.8/dist-packages/clustermgr/application.py", line 9, in <module> from clustermgr.extensions import db, csrf, migrate, wlogger, \ File "/usr/local/lib/python3.8/dist-packages/clustermgr/extensions.py", line 24, in <module> Config.CLUSTERMGR_REDIS = Redis(os.path.join(Config.DATA_DIR, 'redis.db')) File "/usr/local/lib/python3.8/dist-packages/redislite/client.py", line 395, in __init__ self._wait_for_server_start() File "/usr/local/lib/python3.8/dist-packages/redislite/client.py", line 217, in _wait_for_server_start self.ping() File "/usr/local/lib/python3.8/dist-packages/redis/commands/core.py", line 1053, in ping return self.execute_command("PING", **kwargs) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1218, in execute_command return conn.retry.call_with_retry( File "/usr/local/lib/python3.8/dist-packages/redis/retry.py", line 48, in call_with_retry fail(error) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1222, in <lambda> lambda error: self._disconnect_raise(conn, error), File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1208, in _disconnect_raise raise error File "/usr/local/lib/python3.8/dist-packages/redis/retry.py", line 45, in call_with_retry return do() File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1219, in <lambda> lambda: self._send_command_parse_response( File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1195, in _send_command_parse_response return self.parse_response(conn, command_name, **options) File "/usr/local/lib/python3.8/dist-packages/redis/client.py", line 1234, in parse_response response = connection.read_response() File "/usr/local/lib/python3.8/dist-packages/redis/connection.py", line 827, in read_response raise ConnectionError(f"Error while reading from {hosterr}" f" : {e.args}") redis.exceptions.ConnectionError: Error while reading from connection : (104, 'Connection reset by peer') [2022-04-26 06:52:57 +0000] [52042] [INFO] Worker exiting (pid: 52042) [2022-04-26 06:52:57 +0000] [52039] [WARNING] Worker with pid 52042 was terminated due to signal 15 [2022-04-26 06:52:57 +0000] [52039] [INFO] Shutting down: Master [2022-04-26 06:52:57 +0000] [52039] [INFO] Reason: Worker failed to boot. ```

By Michael Schwartz Account Admin 26 Apr 2022 at 3:39 a.m. CDT

Michael Schwartz gravatar
Cluster Manager support is only available for customers with a commercial contact.

By Praveen Srinivasan user 26 Apr 2022 at 4:52 a.m. CDT

Praveen Srinivasan gravatar
Hi @Michael.Schwartz and @Davin.Cooke, I have sent mail to discuss about the commercial contract.

By Michael Schwartz Account Admin 26 Apr 2022 at 5:08 a.m. CDT

Michael Schwartz gravatar
Just scanning the error message, I see something about Redis. Have you setup Redis? This would be needed to share session info across the cluster (or you can use LDAP if you're ok with slightly slower).

By Praveen Srinivasan user 26 Apr 2022 at 7:23 a.m. CDT

Praveen Srinivasan gravatar
Hi Michael, I've tried to install redislite from this link and executed redis-server https://github.com/GluuFederation/redislite/archive/master.zip I've also installed below command found cluster manager issue raised from another ticket. `pip3 install --upgrade MarkupSafe==2.1.0` After that also I am getting below error. ``` Creating clustermgr data directory Upgrading Database Traceback (most recent call last): File "/usr/local/bin/clusterapp.py", line 27, in &lt;module&gt; app = create_app() File "/usr/local/lib/python3.8/dist-packages/clustermgr/application.py", line 71, in create_app from clustermgr.views.index import index File "/usr/local/lib/python3.8/dist-packages/clustermgr/views/index.py", line 18, in &lt;module&gt; from clustermgr.forms import AppConfigForm, SchemaForm, \ File "/usr/local/lib/python3.8/dist-packages/clustermgr/forms.py", line 251, in &lt;module&gt; class SignUpForm(FlaskForm): File "/usr/local/lib/python3.8/dist-packages/clustermgr/forms.py", line 260, in SignUpForm license_confirm = BooleanField(jinja2.Markup('Check here to indicate that you have read and agree to the terms of the <a href="https://github.com/GluuFederation/cluster-mgr/blob/master/LICENSE">GLUU-SUPPORT license</a>') , validators=[DataRequired()]) AttributeError: module 'jinja2' has no attribute 'Markup' Starting Celery Worker celery multi v5.2.6 (dawn-chorus) &gt; Starting nodes... Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.8/dist-packages/celery/__main__.py", line 19, in &lt;module&gt; main() File "/usr/local/lib/python3.8/dist-packages/celery/__main__.py", line 13, in main maybe_patch_concurrency() File "/usr/local/lib/python3.8/dist-packages/celery/__init__.py", line 146, in maybe_patch_concurrency concurrency.get_implementation(pool) File "/usr/local/lib/python3.8/dist-packages/celery/concurrency/__init__.py", line 28, in get_implementation return symbol_by_name(cls, ALIASES) File "/usr/local/lib/python3.8/dist-packages/kombu/utils/imports.py", line 56, in symbol_by_name module = imp(module_name, package=package, **kwargs) File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "&lt;frozen importlib._bootstrap&gt;", line 1014, in _gcd_import File "&lt;frozen importlib._bootstrap&gt;", line 991, in _find_and_load File "&lt;frozen importlib._bootstrap&gt;", line 975, in _find_and_load_unlocked File "&lt;frozen importlib._bootstrap&gt;", line 671, in _load_unlocked File "&lt;frozen importlib._bootstrap_external&gt;", line 848, in exec_module File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.8/dist-packages/celery/concurrency/prefork.py", line 19, in &lt;module&gt; from .asynpool import AsynPool File "/usr/local/lib/python3.8/dist-packages/celery/concurrency/asynpool.py", line 29, in &lt;module&gt; from billiard.compat import buf_t, isblocking, setblocking ImportError: cannot import name 'buf_t' from 'billiard.compat' (/usr/local/lib/python3.8/dist-packages/billiard/compat.py) &gt; worker@user: * Child terminated with exit code 1 FAILED Starting Celery Beat Usage: celery [OPTIONS] COMMAND [ARGS]... Try 'celery --help' for help. Error: Invalid value for '-A' / '--app': Unable to load celery application. Module 'jinja2' has no attribute 'markup' Starting Gunicorn Web Server ```