I trust you are all well.
I am having the following error when accessing discussion forums in the
courses. While trying to debug, I noticed the following errors with
regards to the same:
2018-07-18
12:00:22,362 ERROR 30391 [edx.courseware] views.py:459 - Error in
/courses/course-v1:SLBA+Mod_2+2017/discussion/forum/:
user=kelvin-ngunyi, effective_user=kelvin-ngunyi,
course=course-v1:SLBA+Mod_2+2017
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views/views.py", line 438, in get
return super(CourseTabView, self).get(request, course=course, page_context=page_context, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/web_fragments/views.py", line 26, in get
fragment = self.render_to_fragment(request, **kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views/views.py", line 515, in render_to_fragment
return tab.render_to_fragment(request, course, **kwargs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/tabs.py", line 286, in render_to_fragment
return self.fragment_view.render_to_fragment(request, course_id=unicode(
course.id), **kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py", line 636, in render_to_fragment
thread_id=thread_id,
File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py", line 394, in _create_discussion_board_context
context = _create_base_discussion_view_context(request, course_key)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py", line 367, in _create_base_discussion_view_context
user_info = cc_user.to_dict()
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py", line 59, in to_dict
self.retrieve()
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py", line 64, in retrieve
self._retrieve(*args, **kwargs)
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/user.py", line 152, in _retrieve
metric_tags=self._metric_tags,
File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py", line 122, in perform_request
content=response.text[:100]
CommentClientError:
u'Invalid JSON response for request
5503d0a2-f767-4484-9816-b651912ea594; first 100 characters:
\'<html>\r\n<head><title>502 Bad
Gateway</title></head>\r\n<body
bgcolor="white">\r\n<center><h1>502 Bad Gat\''
What could be the reason for this error. When I run sudo /edx/bin/supervisorctl status, the following is the response:
The forums service seems to be restarting several times also. Kindly assist in resolving the above.