Discussion not working on Juniper release

Hello guys, hope you are doing great!

I’ve deployed open edx Juniper.master release on aws, and The discussion page is saying

There has been an error on the Platform_name servers
We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible. Please email us at platform@gmail.com to report any problems or downtime.

  • and console in the browser is giving this error:
lms-application.0e3fae472a20.js:1 Uncaught ReferenceError: Courseware is not defined
    at HTMLDocument.<anonymous> (lms-application.0e3fae472a20.js:1)
    at fire (lms-main_vendor.3c3c9a2604d6.js:2)
    at Object.fireWith [as resolveWith] (lms-main_vendor.3c3c9a2604d6.js:2)
    at Function.ready (lms-main_vendor.3c3c9a2604d6.js:2)
    at HTMLDocument.completed (lms-main_vendor.3c3c9a2604d6.js:2)
  • When I check the /edx/var/log/lms/edx.log:
During handling of the above exception, another exception occurred:
  4821	
  4822	Traceback (most recent call last):
  4823	  File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views/views.py", line 609, in get
  4824	    return super(CourseTabView, self).get(request, course=course, page_context=page_context, **kwargs)
  4825	  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/web_fragments/views.py", line 25, in get
  4826	    fragment = self.render_to_fragment(request, **kwargs)
  4827	  File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views/views.py", line 771, in render_to_fragment
  4828	    return tab.render_to_fragment(request, course, **kwargs)
  4829	  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/tabs.py", line 300, in render_to_fragment
  4830	    return self.fragment_view.render_to_fragment(request, course_id=six.text_type(course.id), **kwargs)
  4831	  File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py", line 723, in render_to_fragment
  4832	    base_context = _create_base_discussion_view_context(request, course_key)
  4833	  File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py", line 423, in _create_base_discussion_view_context
  4834	    user_info = cc_user.to_dict()
  4835	  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 62, in to_dict
  4836	    self.retrieve()
  4837	  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/models.py", line 67, in retrieve
  4838	    self._retrieve(*args, **kwargs)
  4839	  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/user.py", line 159, in _retrieve
  4840	    metric_tags=self._metric_tags,
  4841	  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/django_comment_common/comment_client/utils.py", line 72, in perform_request
  4842	    timeout=config.connection_timeout
  4843	  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/requests/api.py", line 61, in request
  4844	    return session.request(method=method, url=url, **kwargs)
  4845	  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/requests/sessions.py", line 530, in request
  4846	    resp = self.send(prep, **send_kwargs)
  4847	  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/requests/sessions.py", line 643, in send
  4848	    r = adapter.send(request, **kwargs)
  4849	  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/requests/adapters.py", line 514, in send
  4850	    raise SSLError(e, request=request)
  4851	requests.exceptions.SSLError: HTTPSConnectionPool(host='mydomain.com', port=18080): Max retries exceeded with url: /api/v1/users/19?complete=True&request_id=17fca3ff-d9c9-4655-befe-73c541db5dbe (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:645)'),))
  4852	Oct 26 09:48:14 ip-172-31-36-42 [service_variant=lms][django.request][env:sandbox] ERROR [ip-172-31-36-42  16528] [user None] [log.py:228] - Internal Server Error: /courses/course-v1:Training+GD101+2020B1/discussion/forum/
  • What is the problem?

Best Regards.

Do you have configured your instance using HTTPS ?

Hi @Herve_siyou , Yes I have.
I used this https://blog.lawrencemcdaniel.com/open-edx-ssl-encryption/ blog to add ssl encryption using Let’s encrypt.

Did you tried this solution: https://blog.lawrencemcdaniel.com/open-edx-ssl-encryption/#comment-8771 ?

Thanks for pointing out , I’ll try it now.

Port 18080

Oh, i see you are running on DevStack Mode, i’m not sure to be able to help more than that, may be you should put the discussion in
Development

It turns out, I didn’t configure domain name for the forum.When I configured domain name forum.mydomain.com , It was solved.
Thanks @Herve_siyou

1 Like