Discussion forum strange error

321 views
Skip to first unread message

Dhastha

unread,
Jan 25, 2018, 10:33:38 AM1/25/18
to edx-...@googlegroups.com
I have installed forum services on 3 machines. and installed one proxy server for forum. Its working fine on user creation, but If I post something on Discussion I am getting

Your request could not be processed. Refresh the page and try again.


It actually posted post in back. But error comes in front.



If I test forum installation

curl -v -X GET --header "X-Edx-Api-Key: password" "http://10.0.0.7:18080/selftest"

* Connected to 10.0.0.7 (10.0.0.7) port 18080 (#0)
> GET /selftest HTTP/1.1
> User-Agent: curl/7.47.0
> Accept: */*
> X-Edx-Api-Key: password
>
< HTTP/1.1 200 OK
< Server: nginx/1.12.2
< Date: Thu, 25 Jan 2018 15:26:16 GMT
< Content-Type: application/json;charset=utf-8
< Content-Length: 754
< Connection: keep-alive
< Vary: Accept-Encoding
< Status: 200 OK
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Content-Language: en-US
<
* Connection #0 to host 10.0.0.7 left intact
{"db":[{"hosts":["10.0.0.4:27017","10.0.0.5:27017","10.0.0.6:27017"],"setName":"rs0","setVersion":3,"ismaster":true,"secondary":false,"primary":"10.0.0.4:27017","me":"10.0.0.4:27017","electionId":"7fffffff0000000000000003","maxBsonObjectSize":16777216,"maxMessageSizeBytes":48000000,"maxWriteBatchSize":1000,"localTime":"2018-01-25T15:26:16Z","maxWireVersion":4,"minWireVersion":0,"ok":1.0}],"es":{"cluster_name":"elasticsearch","status":"green","timed_out":false,"number_of_nodes":3,"number_of_data_nodes":3,"active_primary_shards":21,"active_shards":42,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"number_of_pending_tasks":0},"last_post_created":"2018-01-25T12:11:15Z","total_posts":4,"total_users":1,"elapsed_time":0.024070365}

 
And the /edx/var/log/lms/edx.log 

Jan 25 15:16:18 skcluster2 [service_variant=lms][root][env:sandbox] ERROR [skcluster2  2787] [exceptions.py:17] - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
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/views/decorators/http.py", line 45, in inner
    return func(request, *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/base/views.py", line 183, in wrapper
    return func(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/base/views.py", line 384, in create_comment
    return _create_comment(request, CourseKey.from_string(course_id), thread_id=thread_id)
  File "/edx/app/edxapp/edx-platform/lms/djangoapps/django_comment_client/base/views.py", line 356, in _create_comment
    comment.save()
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py", line 150, in save
    metric_action='model.insert'
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py", line 111, in perform_request
    raise CommentClient500Error(response.text)
CommentClient500Error: u'<h1>Internal Server Error</h1>'


I reinstalled and restarted forum, nothing helps.

I am using ginkgo.2 version

--




Cheers,

Dhasthagheer
IT Consultant

Dhastha

unread,
Jan 29, 2018, 2:28:52 PM1/29/18
to edx-...@googlegroups.com
Am I missing anything here? Could anyone please point me to the location of relevant logs in case I am missing it?

@Ned - Could you please give me your opinion on this?
Any help regarding pointing to the concerned people would be truly appreciated. 

Trinh Nguyen

unread,
Jan 29, 2018, 7:43:14 PM1/29/18
to edx-...@googlegroups.com
Hi Dhasthagheer,

You could try to look at these logs:

/edx/var/log/supervisor/forum-stdout.log
/edx/var/log/supervisor/forum-stderr.log

Hope that will help,


Trinh Nguyen | Founder




--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CALJ7LH9BQ8H-wkbEorb7Ofbnd0rR6e7r1rJty14MA%3DwFMz7eUg%40mail.gmail.com.

Dhastha

unread,
Jan 29, 2018, 9:28:50 PM1/29/18
to edx-...@googlegroups.com
I am getting following error in /edx/var/log/supervisor/forum-stderr.log

Elasticsearch::Transport::Transport::Errors::BadRequest - [400] {"error":"ElasticsearchIllegalArgumentException[Alias [content] has more than one indices associated with it [[content_20180117123248692, content_20180117123246596]], can't execute a single index op]","status":400}:



Dhastha

unread,
Jan 29, 2018, 10:26:50 PM1/29/18
to edx-...@googlegroups.com
I soled it. It is elastic search cluster configuration issue.

Trinh Nguyen

unread,
Jan 30, 2018, 12:14:43 AM1/30/18
to edx-...@googlegroups.com

amira reda

unread,
Jul 13, 2018, 8:27:22 AM7/13/18
to General Open edX discussion
how did youo solve it please?

Sergen Ucar

unread,
Aug 29, 2018, 7:49:54 AM8/29/18
to General Open edX discussion
Hello Dhastha, How did you solve this problem because I take this error sometimes.

30 Ocak 2018 Salı 04:26:50 UTC+1 tarihinde Dhastha Gheer yazdı:

Nicola Tonon

unread,
Sep 11, 2018, 10:02:29 AM9/11/18
to General Open edX discussion
Same problem here. Can you give us some hints on how you solved it?

amira reda

unread,
Sep 11, 2018, 11:09:01 AM9/11/18
to edx-...@googlegroups.com
reinitialize the elastic search

You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/a3e144e7-54ec-4371-b3f0-d7a383b281fd%40googlegroups.com.

amira reda

unread,
Sep 11, 2018, 11:22:39 AM9/11/18
to edx-...@googlegroups.com

On Tue, Sep 11, 2018 at 4:02 PM Nicola Tonon <bic...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/a3e144e7-54ec-4371-b3f0-d7a383b281fd%40googlegroups.com.

Lupus Furyo

unread,
Sep 11, 2018, 11:44:49 AM9/11/18
to edx-...@googlegroups.com
Hai Amira and Dhastha,
Thanks a lot for posting the solution to this problem. I was looking for one for past two days after the same problem occurred on one my test-servers (a WMware guest) running ginkgo.master.

Best, lupus


Véronique Sebastien

unread,
Jul 10, 2019, 9:37:19 AM7/10/19
to General Open edX discussion
Hi everyone,

I have exactly the same problem.
Could you please make it public, or copy the different steps here ?
Thanks in advance for your help.

Antoine

unread,
Jul 30, 2019, 6:45:42 AM7/30/19
to General Open edX discussion

We've installed the Ruby development environment on the machine, but there's a version mismatch. Any idea how this can be solved?


So we are currently stuck at this point.

Véronique Sebastien

unread,
Mar 26, 2020, 4:04:23 AM3/26/20
to General Open edX discussion
Same for me.
I tried installing a lot of "Ruby-stuff" to run rake search:initialize, but it still fails...

Lupus Furyo

unread,
Mar 28, 2020, 10:02:09 PM3/28/20
to edx-...@googlegroups.com
Hi Véronique,
edX groups on Google have been closed for months. You should join their forum elsewhere.
Regarding your problem, I am not sure why one would instal any additional "Ruby-stuff" on Open edX server - hopefully that did not mess up your env.

You could try:

sudo -H -u forum bash
source forum_env
bin/rake search:initialize --trace
bin/rake search:rebuild_index[true,200,2]

Best, Lupus

--
***Please note! This Google Group has been deprecated - visit https://discuss.openedx.org/
---
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to edx-code+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/bd81d6a0-cdcb-4bab-bc76-8d9c65857d36%40googlegroups.com.

JITHIN SHA

unread,
Mar 28, 2020, 11:02:56 PM3/28/20
to edx-...@googlegroups.com
Hello Lupus,

It would be great, if you could site the forums edx uses now, so all of them can rejoin there. I also have done a project with openedx, which was customized by me. But sometimes, when some issues occur, it good to post in the groups or forums, wherever it usually is.

Thanks
J



--
JITHINSHA
ജിതിന്‍ഷാ കെ എസ്

ODS_steel

unread,
Mar 29, 2020, 2:46:28 AM3/29/20
to General Open edX discussion


On Sunday, 29 March 2020 04:02:56 UTC+1, JITHIN SHA wrote:
Hello Lupus,

It would be great, if you could site the forums edx uses now, so all of them can rejoin there. I also have done a project with openedx, which was customized by me. But sometimes, when some issues occur, it good to post in the groups or forums, wherever it usually is.

Thanks
J

To unsubscribe from this group and stop receiving emails from it, send an email to edx-...@googlegroups.com.

--
***Please note! This Google Group has been deprecated - visit https://discuss.openedx.org/
---
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to edx-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages