Dear Sir/Madam,
I am facing the following issue.
I have an instance of OpenEDX Hawthorn.2 running on Ubuntu 16.04 (hosted on AWS).
The problem is that the discussion forum is not working properly, everything else is OK.
The browser shows me the following:
‘There has been an error on the … servers
We’re sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible. Please email us at … to report any problems or downtime.’
And the console shows:
‘Uncaught ReferenceError: Courseware is not defined
at HTMLDocument. (lms-application.e7bd4b65d083.js:1)
at fire (lms-main_vendor.a04b73033169.js:2)
at Object.fireWith [as resolveWith] (lms-main_vendor.a04b73033169.js:2)
at Function.ready (lms-main_vendor.a04b73033169.js:2)
at HTMLDocument.completed (lms-main_vendor.a04b73033169.js:2)’
The ‘/edx/var/log/lms/edx.log’ shows:
'Mar 30 14:08:27 ubuntu [service_variant=lms][edx.courseware][env:sandbox] ERROR [ubuntu 423] [views.py:575] - Error in /courses/course-v1:AUTH+Prog1+2018_T2/discussion/forum/: user=XXX, effective_user=XXX, course=course-v1:XXX+Prog1+2018_T2
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views/views.py”, line 506, 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 640, 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 294, 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 697, in render_to_fragment
base_context = _create_base_discussion_view_context(request, course_key)
File “/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py”, line 404, 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 119, in perform_request
content=response.text[:100]
CommentClientError: Invalid JSON response for request 7fd630b4-1f6b-42fc-8e88-1910a3725030; first 100 characters: ’
502 Bad Gat' Mar 30 14:08:46 ubuntu [service_variant=lms][openedx.core.djangoapps.catalog.utils][env:sandbox] WARNING [ubuntu 423] [utils.py:66] - Failed to get program UUIDs from the cache.'
The ‘/edx/var/log/supervisor/forum-stderr.log’ shows:
‘/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
ERROR: ElasticSearch configuration validation failed. “rake search:validate_index” failed with the following message: Alias ‘content’ does not exist.’
The ‘/edx/var/log/supervisor/forum-stdout.log’ shows:
‘W, [2020-03-30T14:09:19.789651 #16255] WARN – : NewRelic agent library not installed
W, [2020-03-30T14:09:19.954294 #16255] WARN – : Overwriting existing field _id in class User.
W, [2020-03-30T14:09:19.983714 #16255] WARN – : MONGODB | Unsupported client option ‘max_retries’. It will be ignored.
W, [2020-03-30T14:09:19.983783 #16255] WARN – : MONGODB | Unsupported client option ‘retry_interval’. It will be ignored.
W, [2020-03-30T14:09:19.983813 #16255] WARN – : MONGODB | Unsupported client option ‘timeout’. It will be ignored.
W, [2020-03-30T14:09:19.997302 #16255] WARN – : NewRelic agent library not installed’
The ‘/edx/var/log/nginx/error.log’ shows:
‘2020/03/30 14:08:27 [error] 23624#23624: 3164 connect() to unix:/edx/var/forum/forum.sock failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: forum., request: “GET /api/v1/users/3?complete=True&request_id=7fd630b4-1f6b-42fc-8e88-1910a3725030 HTTP/1.1”, upstream: “http://unix:/edx/var/forum/forum.sock:/api/v1/users/3?complete=True&request_id=7fd630b4-1f6b-42fc-8e88-1910a3725030”, host: “localhost:18080”’
I don’t know if anything else is needed for more information.
I would be grateful if someone could assist me on this in order to get the discussion forum up and running.
Best Regards,
Kostas.