This discussion could not be loaded. Refresh the page and try again

I deployed openEdx with tutor, whenever I try to open lecture page as admin or user, I am getting the errorr given in title as a pop-up. Here are the logs below.

tutor_local-lms-1                        | 2023-04-08 10:11:05,894 INFO 27 [tracking] [user 8] [ip ipaddress] logger.py:41 - {"name": "/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline", "context": {"course_id": "course-v1:Res4city+EC101+2023_T1", "course_user_tags": {}, "user_id": 8, "path": "/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline", "org_id": "Res4city", "enterprise_uuid": ""}, "username": "mcan", "session": "25a60efef41b837794a1ce3ab0813736", "ip": "ipaddress", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0", "host": "mooc.res4city.eu", "referer": "https://mooc.res4city.eu/xblock/block-v1:Res4city+EC101+2023_T1+type@vertical+block@Unidad1Subsection2Vertical1?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {\"page\": [\"1\"], \"sort_key\": [\"activity\"], \"sort_order\": [\"desc\"], \"ajax\": [\"1\"]}, \"POST\": {}}", "time": "2023-04-08T10:11:05.893681+00:00", "event_type": "/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline", "event_source": "server", "page": null}
tutor_local-lms-1                        | 2023-04-08 10:11:05,945 ERROR 27 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
tutor_local-lms-1                        | Traceback (most recent call last):
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
tutor_local-lms-1                        |     response = get_response(request)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
tutor_local-lms-1                        |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-lms-1                        |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
tutor_local-lms-1                        |     return func(*args, **kwds)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
tutor_local-lms-1                        |     return view_func(request, *args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 206, in wrapped_view
tutor_local-lms-1                        |     return view_func(request, course_key, *args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 219, in inline_discussion
tutor_local-lms-1                        |     user_info = cc_user.to_dict()
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 62, in to_dict
tutor_local-lms-1                        |     self.retrieve()
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 67, in retrieve
tutor_local-lms-1                        |     self._retrieve(*args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py", line 152, in _retrieve
tutor_local-lms-1                        |     response = utils.perform_request(
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py", line 65, in perform_request
tutor_local-lms-1                        |     response = requests.request(
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request
tutor_local-lms-1                        |     return session.request(method=method, url=url, **kwargs)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 573, in request
tutor_local-lms-1                        |     prep = self.prepare_request(req)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 484, in prepare_request
tutor_local-lms-1                        |     p.prepare(
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 368, in prepare
tutor_local-lms-1                        |     self.prepare_url(url, params)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 439, in prepare_url
tutor_local-lms-1                        |     raise MissingSchema(
tutor_local-lms-1                        | requests.exceptions.MissingSchema: Invalid URL '/api/v1/users/8': No scheme supplied. Perhaps you meant http:///api/v1/users/8?
tutor_local-lms-1                        | 2023-04-08 10:11:06,001 ERROR 27 [django.request] [user 8] [ip ipaddress] log.py:224 - Internal Server Error: /courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline
tutor_local-lms-1                        | Traceback (most recent call last):
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
tutor_local-lms-1                        |     response = get_response(request)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
tutor_local-lms-1                        |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-lms-1                        |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py", line 75, in inner
tutor_local-lms-1                        |     return func(*args, **kwds)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
tutor_local-lms-1                        |     return view_func(request, *args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 206, in wrapped_view
tutor_local-lms-1                        |     return view_func(request, course_key, *args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./lms/djangoapps/discussion/views.py", line 219, in inline_discussion
tutor_local-lms-1                        |     user_info = cc_user.to_dict()
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 62, in to_dict
tutor_local-lms-1                        |     self.retrieve()
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 67, in retrieve
tutor_local-lms-1                        |     self._retrieve(*args, **kwargs)
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py", line 152, in _retrieve
tutor_local-lms-1                        |     response = utils.perform_request(
tutor_local-lms-1                        |   File "/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py", line 65, in perform_request
tutor_local-lms-1                        |     response = requests.request(
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request
tutor_local-lms-1                        |     return session.request(method=method, url=url, **kwargs)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 573, in request
tutor_local-lms-1                        |     prep = self.prepare_request(req)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/sessions.py", line 484, in prepare_request
tutor_local-lms-1                        |     p.prepare(
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 368, in prepare
tutor_local-lms-1                        |     self.prepare_url(url, params)
tutor_local-lms-1                        |   File "/openedx/venv/lib/python3.8/site-packages/requests/models.py", line 439, in prepare_url
tutor_local-lms-1                        |     raise MissingSchema(
tutor_local-lms-1                        | requests.exceptions.MissingSchema: Invalid URL '/api/v1/users/8': No scheme supplied. Perhaps you meant http:///api/v1/users/8?
tutor_local-caddy-1                      | {"level":"error","ts":1680948666.119746,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"ipaddress","remote_port":"25122","proto":"HTTP/2.0","method":"GET","host":"mooc.res4city.eu","uri":"/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline?page=1&sort_key=activity&sort_order=desc&ajax=1","tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"mooc.res4city.eu"}},"user_id":"","duration":0.246608998,"size":3036,"status":500}
tutor_local-lms-1                        | [pid: 27|app: 0|req: 978/2482] 172.18.0.4 () {56 vars in 3507 bytes} [Sat Apr  8 10:11:05 2023] GET /courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline?page=1&sort_key=activity&sort_order=desc&ajax=1 => generated 9432 bytes in 245 msecs (HTTP/1.1 500) 7 headers in 523 bytes (1 switches on core 0)

What I understand is, website trying to make an api call without http tag. Is there anythingh I can do to fix this? Thanks in advance.

Hi @mcan

The forum plugins is disable? you may can check it with command

tutor plugins list | grep forum

if its disable, re-enable it then initialise application and restart Open edX with command

tutor plugins enable forum
tutor config save
tutor local init
tutor restart openedx
1 Like
tutor plugins list | grep forum

command you given outputs:
forum installed 15.1.1

After that, I used

tutor plugins enable forum

and

tutor config save

commands with no problem but when I try to run

tutor local init

I get there is no such command init error. also

tutor restart openedx

is missing local after tutor too. In the end, I just run restart command with tutor but nothing changed. I think I will reboot the platform and try again.

I rebooted and still getting error, but it seems logs changed. Here is the new logs.

tutor_local-lms-1 | 2023-04-08 18:33:40,260 INFO 7 [tracking] [user 9] [ip 78.180.24.205] logger.py:41 - {“name”: “/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline”, “context”: {“course_id”: “course-v1:Res4city+EC101+2023_T1”, “course_user_tags”: {}, “user_id”: 9, “path”: “/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline”, “org_id”: “Res4city”, “enterprise_uuid”: “”}, “username”: “mcan1”, “session”: “4fcc4a77983f4d1a52099cc5deaa7b16”, “ip”: “78.180.24.205”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0”, “host”: “mooc.res4city.eu”, “referer”: “https://mooc.res4city.eu/xblock/block-v1:Res4city+EC101+2023_T1+type@vertical+block@Unidad1Subsection2Vertical1?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view”, “accept_language”: “en-US,en;q=0.5”, “event”: “{"GET": {"page": ["1"], "sort_key": ["activity"], "sort_order": ["desc"], "ajax": ["1"]}, "POST": {}}”, “time”: “2023-04-08T18:33:40.260045+00:00”, “event_type”: “/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline”, “event_source”: “server”, “page”: null}
tutor_local-lms-1 | 2023-04-08 18:33:40,318 ERROR 7 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 174, in _new_conn
tutor_local-lms-1 | conn = connection.create_connection(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py”, line 72, in create_connection
tutor_local-lms-1 | for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/socket.py”, line 918, in getaddrinfo
tutor_local-lms-1 | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
tutor_local-lms-1 | socket.gaierror: [Errno -3] Temporary failure in name resolution
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 703, in urlopen
tutor_local-lms-1 | httplib_response = self._make_request(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
tutor_local-lms-1 | conn.request(method, url, **httplib_request_kw)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 239, in request
tutor_local-lms-1 | super(HTTPConnection, self).request(method, url, body=body, headers=headers)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1256, in request
tutor_local-lms-1 | self._send_request(method, url, body, headers, encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1302, in _send_request
tutor_local-lms-1 | self.endheaders(body, encode_chunked=encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1251, in endheaders
tutor_local-lms-1 | self._send_output(message_body, encode_chunked=encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1011, in _send_output
tutor_local-lms-1 | self.send(msg)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 951, in send
tutor_local-lms-1 | self.connect()
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 205, in connect
tutor_local-lms-1 | conn = self._new_conn()
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 186, in _new_conn
tutor_local-lms-1 | raise NewConnectionError(
tutor_local-lms-1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/adapters.py”, line 489, in send
tutor_local-lms-1 | resp = conn.urlopen(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 787, in urlopen
tutor_local-lms-1 | retries = retries.increment(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/util/retry.py”, line 592, in increment
tutor_local-lms-1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
tutor_local-lms-1 | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘forum’, port=4567): Max retries exceeded with url: /api/v1/users/9?complete=True&request_id=b301d0a0-046e-472e-bb1a-53399cf7215b (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 47, in inner
tutor_local-lms-1 | response = get_response(request)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 181, in _get_response
tutor_local-lms-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py”, line 75, in inner
tutor_local-lms-1 | return func(*args, **kwds)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py”, line 21, in _wrapped_view
tutor_local-lms-1 | return view_func(request, *args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./lms/djangoapps/discussion/views.py”, line 206, in wrapped_view
tutor_local-lms-1 | return view_func(request, course_key, *args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./lms/djangoapps/discussion/views.py”, line 219, in inline_discussion
tutor_local-lms-1 | user_info = cc_user.to_dict()
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py”, line 62, in to_dict
tutor_local-lms-1 | self.retrieve()
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py”, line 67, in retrieve
tutor_local-lms-1 | self._retrieve(*args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py”, line 152, in _retrieve
tutor_local-lms-1 | response = utils.perform_request(
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py”, line 65, in perform_request
tutor_local-lms-1 | response = requests.request(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/api.py”, line 59, in request
tutor_local-lms-1 | return session.request(method=method, url=url, **kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/sessions.py”, line 587, in request
tutor_local-lms-1 | resp = self.send(prep, **send_kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/sessions.py”, line 701, in send
tutor_local-lms-1 | r = adapter.send(request, **kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/adapters.py”, line 565, in send
tutor_local-lms-1 | raise ConnectionError(e, request=request)
tutor_local-lms-1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘forum’, port=4567): Max retries exceeded with url: /api/v1/users/9?complete=True&request_id=b301d0a0-046e-472e-bb1a-53399cf7215b (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
tutor_local-lms-1 | 2023-04-08 18:33:40,359 ERROR 7 [django.request] [user 9] [ip 78.180.24.205] log.py:224 - Internal Server Error: /courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 174, in _new_conn
tutor_local-lms-1 | conn = connection.create_connection(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/util/connection.py”, line 72, in create_connection
tutor_local-lms-1 | for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/socket.py”, line 918, in getaddrinfo
tutor_local-lms-1 | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
tutor_local-lms-1 | socket.gaierror: [Errno -3] Temporary failure in name resolution
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 703, in urlopen
tutor_local-lms-1 | httplib_response = self._make_request(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 398, in _make_request
tutor_local-lms-1 | conn.request(method, url, **httplib_request_kw)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 239, in request
tutor_local-lms-1 | super(HTTPConnection, self).request(method, url, body=body, headers=headers)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1256, in request
tutor_local-lms-1 | self._send_request(method, url, body, headers, encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1302, in _send_request
tutor_local-lms-1 | self.endheaders(body, encode_chunked=encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1251, in endheaders
tutor_local-lms-1 | self._send_output(message_body, encode_chunked=encode_chunked)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 1011, in _send_output
tutor_local-lms-1 | self.send(msg)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/http/client.py”, line 951, in send
tutor_local-lms-1 | self.connect()
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 205, in connect
tutor_local-lms-1 | conn = self._new_conn()
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connection.py”, line 186, in _new_conn
tutor_local-lms-1 | raise NewConnectionError(
tutor_local-lms-1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/adapters.py”, line 489, in send
tutor_local-lms-1 | resp = conn.urlopen(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 787, in urlopen
tutor_local-lms-1 | retries = retries.increment(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/urllib3/util/retry.py”, line 592, in increment
tutor_local-lms-1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
tutor_local-lms-1 | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘forum’, port=4567): Max retries exceeded with url: /api/v1/users/9?complete=True&request_id=b301d0a0-046e-472e-bb1a-53399cf7215b (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
tutor_local-lms-1 |
tutor_local-lms-1 | During handling of the above exception, another exception occurred:
tutor_local-lms-1 |
tutor_local-lms-1 | Traceback (most recent call last):
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 47, in inner
tutor_local-lms-1 | response = get_response(request)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 181, in _get_response
tutor_local-lms-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tutor_local-lms-1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py”, line 75, in inner
tutor_local-lms-1 | return func(*args, **kwds)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py”, line 21, in _wrapped_view
tutor_local-lms-1 | return view_func(request, *args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./lms/djangoapps/discussion/views.py”, line 206, in wrapped_view
tutor_local-lms-1 | return view_func(request, course_key, *args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./lms/djangoapps/discussion/views.py”, line 219, in inline_discussion
tutor_local-lms-1 | user_info = cc_user.to_dict()
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py”, line 62, in to_dict
tutor_local-lms-1 | self.retrieve()
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/models.py”, line 67, in retrieve
tutor_local-lms-1 | self._retrieve(*args, **kwargs)
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/user.py”, line 152, in _retrieve
tutor_local-lms-1 | response = utils.perform_request(
tutor_local-lms-1 | File “/openedx/edx-platform/./openedx/core/djangoapps/django_comment_common/comment_client/utils.py”, line 65, in perform_request
tutor_local-lms-1 | response = requests.request(
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/api.py”, line 59, in request
tutor_local-lms-1 | return session.request(method=method, url=url, **kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/sessions.py”, line 587, in request
tutor_local-lms-1 | resp = self.send(prep, **send_kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/sessions.py”, line 701, in send
tutor_local-lms-1 | r = adapter.send(request, **kwargs)
tutor_local-lms-1 | File “/openedx/venv/lib/python3.8/site-packages/requests/adapters.py”, line 565, in send
tutor_local-lms-1 | raise ConnectionError(e, request=request)
tutor_local-lms-1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘forum’, port=4567): Max retries exceeded with url: /api/v1/users/9?complete=True&request_id=b301d0a0-046e-472e-bb1a-53399cf7215b (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f60ae80ca60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
tutor_local-lms-1 | [pid: 7|app: 0|req: 25/50] 172.18.0.7 () {56 vars in 3519 bytes} [Sat Apr 8 18:33:40 2023] GET /courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline?page=1&sort_key=activity&sort_order=desc&ajax=1 => generated 9434 bytes in 242 msecs (HTTP/1.1 500) 7 headers in 523 bytes (1 switches on core 0)
tutor_local-caddy-1 | {“level”:“error”,“ts”:1680978820.4833422,“logger”:“http.log.access.log0”,“msg”:“handled request”,“request”:{“remote_ip”:“78.180.24.205”,“remote_port”:“25452”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“mooc.res4city.eu”,“uri”:“/courses/course-v1:Res4city+EC101+2023_T1/discussion/forum/res4city11_2/inline?page=1&sort_key=activity&sort_order=desc&ajax=1”,“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4865,“proto”:“h2”,“server_name”:“mooc.res4city.eu”}},“user_id”:“”,“duration”:0.244707847,“size”:3037,“status”:500}
tutor_local-mongodb-1 | 2023-04-08T18:33:55.212+0000 I NETWORK [listener] connection accepted from 172.18.0.2:50276 #151 (7 connections now open)
tutor_local-mongodb-1 | 2023-04-08T18:33:55.217+0000 I NETWORK [conn151] end connection 172.18.0.2:50276 (6 connections now open)
tutor_local-forum-1 | W, [2023-04-08T18:33:59.093711 #18] WARN – : Overwriting existing field _id in class User.
tutor_local-forum-1 | W, [2023-04-08T18:33:59.202649 #18] WARN – : MONGODB | Unsupported client option ‘max_retries’. It will be ignored.
tutor_local-forum-1 | W, [2023-04-08T18:33:59.202725 #18] WARN – : MONGODB | Unsupported client option ‘retry_interval’. It will be ignored.
tutor_local-forum-1 | W, [2023-04-08T18:33:59.202750 #18] WARN – : MONGODB | Unsupported client option ‘timeout’. It will be ignored.
tutor_local-mongodb-1 | 2023-04-08T18:33:59.206+0000 I NETWORK [listener] connection accepted from 172.18.0.2:50290 #152 (7 connections now open)
tutor_local-mongodb-1 | 2023-04-08T18:33:59.207+0000 I NETWORK [conn152] received client metadata from 172.18.0.2:50290 conn152: { driver: { name: “mongo-ruby-driver|Mongoid”, version: “2.18.1|7.5.1” }, os: { type: “linux”, name: “linux”, architecture: “x86_64” }, platform: “mongoid-7.5.1, Ruby 3.0.4, x86_64-linux, x86_64-pc-linux-gnu, M|” }
tutor_local-mongodb-1 | 2023-04-08T18:33:59.210+0000 I NETWORK [listener] connection accepted from 172.18.0.2:50292 #153 (8 connections now open)
tutor_local-mongodb-1 | 2023-04-08T18:33:59.210+0000 I NETWORK [conn153] received client metadata from 172.18.0.2:50292 conn153: { driver: { name: “mongo-ruby-driver|Mongoid”, version: “2.18.1|7.5.1” }, os: { type: “linux”, name: “linux”, architecture: “x86_64” }, platform: “mongoid-7.5.1, Ruby 3.0.4, x86_64-linux, x86_64-pc-linux-gnu, A|” }
tutor_local-forum-1 | ERROR: ElasticSearch configuration validation failed. “rake search:validate_indices” failed with the following message: [404] {“error”:{“root_cause”:[{“type”:“index_not_found_exception”,“reason”:“no such index [comments]”,“resource.type”:“index_or_alias”,“resource.id”:“comments”,“index_uuid”:“na”,“index”:“comments”}],“type”:“index_not_found_exception”,“reason”:“no such index [comments]”,“resource.type”:“index_or_alias”,“resource.id”:“comments”,“index_uuid”:“na”,“index”:“comments”},“status”:404}
tutor_local-mongodb-1 | 2023-04-08T18:33:59.224+0000 I NETWORK [conn153] end connection 172.18.0.2:50292 (7 connections now open)
tutor_local-mongodb-1 | 2023-04-08T18:33:59.227+0000 I NETWORK [conn152] end connection 172.18.0.2:50290 (6 connections now open)
tutor_local-forum-1 exited with code 101

Hi @mcan

Can you tried run this command?

tutor local quickstart --non-interactive
1 Like

With Olive (version 15 of Tutor), it should be:

tutor local do init

2 Likes

@mcan welcome to the community

please specify which version of a tutor you used and face this problem so others can give you answers according to you.
tutor --version
Check which version you used

if you use the tutor version 15.0.0 and above so it is Olive release
tutor local do init
tutor local launch
tutor local start -d
you need to use but if a version is 14.0.0 and below you can use

tutor local init
tutor local quickstart
tutor local start -d

and here is the git discussion forum repo it may help

1 Like

Well, I found out the problem. One index about elasicsearch related to discussions was missing. I solved this issue by system pruning docker, re-launch the platform and type

bundle exec rake search:initialize

inside elasticsearch docker. It seems one of the indexes did not get created somehow.