Discussion forum page issue in all courses

614 views
Skip to first unread message

sha...@vlabs.ac.in

unread,
Aug 17, 2016, 10:03:36 AM8/17/16
to Open edX operations
Hello EdX team,


Installed Open edX platform on ubuntu 14.04 with dogwood.3 release.

When I click on Discussion tab of any course on Open edX platform, It is showing 500 error .


Here are the logs from  lms/edx.log and  nginx

sudo tail -f /edx/var/log/edx.log

Aug 17 09:17:48 ip-172-31-17-157 [service_variant=lms][django.request][env:sandbox] ERROR [ip-172-31-17-157  2410] [base.py:256] - Internal Server Error: /courses/course-v1:IIIT-Hyderabad+CSE01+Anytime/discussion/forum
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
    return func(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/forum/views.py", line 183, in wrapped_view
    return view_func(request, course_key, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/forum/views.py", line 234, in forum_form_discussion
    user_info = user.to_dict()
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py", line 60, in to_dict
    self.retrieve()
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py", line 65, in retrieve
    self._retrieve(*args, **kwargs)
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/user.py", line 151, in _retrieve
    metric_tags=self._metric_tags,
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py", line 117, in perform_request
    content=response.text[:100]
CommentClientError: u'Comments service returned invalid JSON for request d7871e5d-9bba-4f9c-a872-28f7846d500c; 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\''


sudo tail -f /edx/var/log/nginx/error.log
2016/08/17 09:17:48 [crit] 1170#1170: *282 connect() to unix:/edx/var/forum/forum.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: forum.*, request: "GET /api/v1/users/5?complete=True&request_id=d7871e5d-9bba-4f9c-a872-28f7846d500c HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/api/v1/users/5?complete=True&request_id=d7871e5d-9bba-4f9c-a872-28f7846d500c", host: "localhost:18080"

I created forum.sock manually, given www-data ownership permissions and tried still the problem exist.

Please help in how to enable enable forum (discussion) page for every course.

Apssdc Gov

unread,
Mar 9, 2017, 5:54:28 AM3/9/17
to Open edX operations
facing same Issue have can you help me out 

adms

unread,
Mar 10, 2017, 1:30:34 AM3/10/17
to Open edX operations
I would suggest check the connection between mongo and discussion page. I had faced this issue and I change my password from mongo db.

amira reda

unread,
Jul 13, 2018, 11:15:55 AM7/13/18
to Open edX operations

Did you solve it?

Murad Shukurlu

unread,
Jan 15, 2020, 5:32:54 AM1/15/20
to Open edX operations
I am faceing with this error also.How you find any solution?

TDOE LMS

unread,
May 31, 2020, 10:18:11 PM5/31/20
to Open edX operations
This thread has instructions that fixed the issue for me. 

Reply all
Reply to author
Forward
0 new messages