Having trouble connecting to LMS discussion forum getting Errors

1,742 views
Skip to first unread message

Juanito

unread,
Apr 5, 2016, 11:17:23 AM4/5/16
to Open edX operations
Hello,

I have two servers setup, one for the apps (lms,cms,forum, etc..), and one for data (mysql & mongodb). Currently, lms and studio are working and talking to the data store server. When I click on forum discussion on lms, it gives me error 500 (THERE HAS BEEN A 500 ERROR...)

Here is lms log

Apr  5 14:58:31 ip-172-16-1-10 [service_variant=lms][django.request][env:sandbox] ERROR [ip-172-16-1-10  4480] [base.py:256] - Internal Server Error: /courses/course-v1:edX+DemoX+Demo_Course/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 138, in _retrieve
    metric_tags=self._metric_tags,
  File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py", line 86, in perform_request
    timeout=5
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))
Apr  5 14:58:31 ip-172-16-1-10 [service_variant=lms][edx.footer][env:sandbox] INFO [ip-172-16-1-10  4480] [api.py:282] - Failed to find footer logo at 'themes/edx.org/images/logo.png', using 'images/logo.png' instead


directly accessing http://forum.mydomain.org gives 502 Bad Gateway and throws this error

nginx log

==> nginx/error.log <==
2016/04/05 15:00:23 [crit] 18999#0: *708 connect() to unix:/edx/var/forum/forum.sock failed (2: No such file or directory) while connecting to upstream, client: 173.184.233.21, server: forum.*, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/favicon.ico", host: "forum. mydomain.org", referrer: "http://forummydomain.org/"

I saw that /edx/var/forum/forum.sock was not there, so for testing I  manually created /edx/var/forum/forum.sock and set permission www-data but I now get connection refused.

==> nginx/error.log <==
2016/04/05 15:11:42 [error] 18999#0: *859 connect() to unix:/edx/var/forum/forum.sock failed (111: Connection refused) while connecting to upstream, client: 173.184.232.9, server: forum.*, request: "GET / HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/", host: "forum.mydomain.org"

==> nginx/error.log <==
2016/04/05 15:11:42 [error] 18999#0: *859 connect() to unix:/edx/var/forum/forum.sock failed (111: Connection refused) while connecting to upstream, client: 173.184.232.9, server: forum.*, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/favicon.ico", host: "forum.mydomain.org", referrer: "http://forum.mydomain.org/"

The upstream string looks really weird (http://unix:/edx/var/forum/forum.sock:/) 

Here is my forum nginx conf:

upstream forum_app_server {
  server unix:/edx/var/forum/forum.sock fail_timeout=0;
}

server {

  server_name forum.*;
  listen 80 ;
  client_max_body_size 1M;
  keepalive_timeout 5;

  location / {
    try_files $uri @proxy_to_app;
  }


location @proxy_to_app {
        proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;

    proxy_redirect off;
    proxy_pass http://forum_app_server;
  }
}


I am not sure what is going on, if any have ideas or clues, please help me.

Thanks

Trinh Nguyen

unread,
Apr 5, 2016, 8:16:59 PM4/5/16
to opene...@googlegroups.com
Check to make sure the comment service is running (host/port) or have a look at these variables in your settings :

COMMENTS_SERVICE_URL
COMMENTS_SERVICE_KEY

These are the default:

EDXAPP_COMMENTS_SERVICE_URL:  'http://localhost:18080'
EDXAPP_COMMENTS_SERVICE_KEY:  'password'


Juanito

unread,
Apr 5, 2016, 9:23:10 PM4/5/16
to Open edX operations
Thanks for that tip, it really gave me some hope. 

I did forget to specify the URL,

I ran the playbook again, and verified they are set in /edx/etc/edxapp/{lms,cms}.env.yaml:

COMMENTS_SERVICE_KEY: password
COMMENTS_SERVICE_URL: http://forum.mydomain.org

I still get

==> nginx/error.log <==
2016/04/06 01:03:33 [error] 29653#0: *135 connect() to unix:/edx/var/forum/forum.sock failed (111: Connection refused) while connecting to upstream, client: 173.184.240.9, server: forum.*, request: "GET / HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/", host: "forum.mydomain.org"
==> nginx/error.log <==
2016/04/06 01:03:34 [error] 29653#0: *135 connect() to unix:/edx/var/forum/forum.sock failed (111: Connection refused) while connecting to upstream, client: 173.184.240.9, server: forum.*, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/edx/var/forum/forum.sock:/favicon.ico", host: "forum. mydomain.org", referrer: "http://forum.mydomain.org/"

/edx/bin/supervisorctl status and I see that forum is running

analytics_api                    RUNNING   pid 22831, uptime 0:19:48
certs                            RUNNING   pid 29669, uptime 0:15:18
ecommerce                        RUNNING   pid 20879, uptime 0:20:08
ecomworker                       RUNNING   pid 21006, uptime 0:20:06
edxapp:cms                       RUNNING   pid 19057, uptime 0:21:44
edxapp:lms                       RUNNING   pid 19414, uptime 0:21:33
edxapp_worker:cms_default_1      RUNNING   pid 9764, uptime 0:34:37
edxapp_worker:cms_high_1         RUNNING   pid 10119, uptime 0:34:33
edxapp_worker:cms_low_1          RUNNING   pid 10138, uptime 0:34:30
edxapp_worker:lms_default_1      RUNNING   pid 10154, uptime 0:34:26
edxapp_worker:lms_high_1         RUNNING   pid 10177, uptime 0:34:22
edxapp_worker:lms_high_mem_1     RUNNING   pid 10200, uptime 0:34:18
edxapp_worker:lms_low_1          RUNNING   pid 10226, uptime 0:34:14
forum                            RUNNING   pid 5880, uptime 0:00:19
insights                         RUNNING   pid 25300, uptime 0:16:45
notifier-celery-workers          RUNNING   pid 29730, uptime 0:15:06
notifier-scheduler               RUNNING   pid 29681, uptime 0:15:17
xqueue                           RUNNING   pid 28718, uptime 0:15:35
xqueue_consumer                  RUNNING   pid 28978, uptime 0:15:33

I executed "lsof | grep comments" The only "comment" files that are open are

forum-sup  9303         www-data  cwd       DIR              202,1     4096    5120521 /edx/app/forum/cs_comments_service
ruby       9335         www-data  cwd       DIR              202,1     4096    5120521 /edx/app/forum/cs_comments_service

Here is my list of processes that is listening:

tcp        0      0 127.0.0.1:8110          0.0.0.0:*               LISTEN      25301/python
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      29652/nginx.conf
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      5540/epmd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      864/sshd
tcp        0      0 0.0.0.0:18040           0.0.0.0:*               LISTEN      29652/nginx.conf
tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      5445/beam.smp
tcp        0      0 0.0.0.0:55672           0.0.0.0:*               LISTEN      5445/beam.smp
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1092/master
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      29652/nginx.conf
tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN      19414/python
tcp        0      0 127.0.0.1:8130          0.0.0.0:*               LISTEN      20880/python
tcp        0      0 0.0.0.0:8099            0.0.0.0:*               LISTEN      29652/nginx.conf
tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN      22832/python
tcp        0      0 0.0.0.0:44805           0.0.0.0:*               LISTEN      5445/beam.smp
tcp        0      0 127.0.0.1:8040          0.0.0.0:*               LISTEN      28718/python
tcp        0      0 127.0.0.1:5672          0.0.0.0:*               LISTEN      5445/beam.smp
tcp        0      0 127.0.0.1:4040          0.0.0.0:*               LISTEN      1434/python
tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      954/python
tcp        0      0 0.0.0.0:18090           0.0.0.0:*               LISTEN      29652/nginx.conf
tcp        0      0 127.0.0.1:8010          0.0.0.0:*               LISTEN      19057/python
tcp        0      0 127.0.0.1:9002          0.0.0.0:*               LISTEN      960/python
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      12885/memcached
tcp6       0      0 :::9200                 :::*                    LISTEN      1835/java
tcp6       0      0 :::9300                 :::*                    LISTEN      1835/java
tcp6       0      0 :::22                   :::*                    LISTEN      864/sshd
tcp6       0      0 :::25                   :::*                    LISTEN      1092/master


Any more ideas?
Message has been deleted

Trinh Nguyen

unread,
Apr 5, 2016, 10:27:13 PM4/5/16
to opene...@googlegroups.com
Try to restart the comment service:

supervisorctl restart forum

If it does not work, please check your unicorn process to see if it is running and with what configuration (unicorn.rb or unicorn_tcp.rb).

Then check your forum data dir permissions.




Trinh Nguyen

unread,
Apr 5, 2016, 10:37:34 PM4/5/16
to opene...@googlegroups.com
Forum data dir permissions should be set as following:

Owner: www-data
Group: www-data

Juanito

unread,
Apr 5, 2016, 10:46:30 PM4/5/16
to Open edX operations
Hi Trinh

I restarted forum, and it stopped and started again.

I can see that unicorn.rb is running

www-data  4885 13.2  1.9 315652 75484 ?        Sl   02:35   0:02 ruby /edx/app/forum/cs_comments_service/bin/unicorn -c config/unicorn.rb


My form data dir /edx/var

drwxrwxrwx  2 www-data         www-data      4096 Apr  6 02:38 forum/
-rw-r--r--  1 www-data         www-data         5 Apr  6 02:39 forum/forum_unicorn.pid

forum.sock is not created though. I should not have to manually create it right?

I was browsing through roles/forum/defaults/main.yml and I wasn't sure what these were for:

FORUM_LISTEN_HOST: "0.0.0.0"
FORUM_LISTEN_PORT: "4567"
FORUM_USE_TCP: false


Any ideas?

Thanks so much

Trinh Nguyen

unread,
Apr 6, 2016, 3:02:45 AM4/6/16
to opene...@googlegroups.com
Could you show me the results of:

netstat -anltp | grep LISTEN

and also the logs of comment service.

Juanito

unread,
Apr 6, 2016, 9:55:58 AM4/6/16
to Open edX operations

sudo netstat -anltp | grep LISTEN
tcp        0      0 127.0.0.1:8110          0.0.0.0:*               LISTEN      1486/python
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1003/nginx.conf
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      1293/epmd
tcp        0      0 0.0.0.0:36595           0.0.0.0:*               LISTEN      1325/beam.smp
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      867/sshd
tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      1325/beam.smp
tcp        0      0 0.0.0.0:55672           0.0.0.0:*               LISTEN      1325/beam.smp
tcp        0      0 0.0.0.0:18040           0.0.0.0:*               LISTEN      1003/nginx.conf
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1111/master
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      1003/nginx.conf
tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN      1464/python
tcp        0      0 127.0.0.1:8130          0.0.0.0:*               LISTEN      1479/python
tcp        0      0 0.0.0.0:8099            0.0.0.0:*               LISTEN      1003/nginx.conf
tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN      1458/python
tcp        0      0 127.0.0.1:8040          0.0.0.0:*               LISTEN      1459/python
tcp        0      0 127.0.0.1:5672          0.0.0.0:*               LISTEN      1325/beam.smp
tcp        0      0 127.0.0.1:4040          0.0.0.0:*               LISTEN      1432/python
tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      955/python
tcp        0      0 127.0.0.1:8010          0.0.0.0:*               LISTEN      1465/python
tcp        0      0 127.0.0.1:9002          0.0.0.0:*               LISTEN      961/python
tcp        0      0 0.0.0.0:18090           0.0.0.0:*               LISTEN      1003/nginx.conf
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      992/memcached
tcp6       0      0 :::9200                 :::*                    LISTEN      1850/java
tcp6       0      0 :::9300                 :::*                    LISTEN      1850/java
tcp6       0      0 :::22                   :::*                    LISTEN      867/sshd
tcp6       0      0 :::25                   :::*                    LISTEN      1111/master

I didn't find the logs for forums, in /edx/var/log, but I looks like it's launched by supervisor so I found some logs in 
/edx/var/supervisor/forum-stderr.log

, [2016-04-06T13:04:10.987099 #12831]  INFO -- : Refreshing Gem list
/edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/server_selector/selectable.rb:90:in `select_server': No server is available matching preference: #<Mongo::ServerSelector::Primary:0x000000051e8e80 @options={"mode"=>:primary, "database"=>:cs_comments_service_development, "write"=>{"w"=>1}, "read"=>{"mode"=>:primary}, "max_retries"=>1, "retry_interval"=>0, "timeout"=>0.5, "ssl"=>false}, @tag_sets=[], @server_selection_timeout=30> (Mongo::Error::NoServerAvailable)
        from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:40:in `block in each'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `call'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `read_with_retry'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:39:in `each'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/mongoid-5.0.0/lib/mongoid/query_cache.rb:207:in `each'
        from /edx/app/forum/cs_comments_service/app.rb:141:in `map'
        from /edx/app/forum/cs_comments_service/app.rb:141:in `<top (required)>'
        from config.ru:21:in `require'
        from config.ru:21:in `block in <main>'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
        from config.ru:1:in `new'
        from config.ru:1:in `<main>'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/lib/unicorn.rb:48:in `eval'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/lib/unicorn.rb:48:in `block in builder'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:768:in `call'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:768:in `build_app!'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:137:in `start'
        from /edx/app/forum/.gem/ruby/1.9.1/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
        from /edx/app/forum/cs_comments_service/bin/unicorn:16:in `load'
        from /edx/app/forum/cs_comments_service/bin/unicorn:16:in `<main>'
I, [2016-04-06T13:04:44.759549 #12967]  INFO -- : Refreshing Gem list

Based on Mongo::Error::NoServerAvailable It seems it saying it can't connect to mongodb.

I logged on to my datastore server checked list of mongodb. I am not sure what is supposed to be there but here is the db list, but it looks like cs_comments_service supposed to be there right?

> show databases
admin   0.078GB
edxapp  0.078GB
local   0.078GB
>


I am not sure at what point during the ansible installation it gets created. This is my custom vars related to FORUM, pretty much default except HOSTS

FORUM_MONGO_USER: "cs_comments_service"
FORUM_MONGO_PASSWORD: "password"
FORUM_MONGO_HOSTS:
  - "172.16.2.10"
FORUM_MONGO_TAGS: !!null
FORUM_MONGO_PORT: "27017"
FORUM_MONGO_DATABASE: "cs_comments_service"
FORUM_MONGO_USE_SSL: false



Trinh Nguyen

unread,
Apr 6, 2016, 8:11:35 PM4/6/16
to opene...@googlegroups.com
So then check your mongodb server. Did you try to connect to mongodb at 172.16.2.10 from your edx apps server?

mongo 172.16.2.10:27017/cs_comments_service -u cs_comments_service -p password

The mongodb server should allow remote host to connect:

0.0.0.0:27017

I used to experience a case where the mongodb user had been deleted unknowingly (you can read about it here). I then had to create the user again for my edx instance working.



Nguyễn Trọng Đăng Trình

Juanito

unread,
Apr 6, 2016, 8:31:00 PM4/6/16
to Open edX operations
Yes, I can connect to mongo. I set the mongodb to bind to 0.0.0.0 and opened up the port 27017 on my data machine

mongo 172.16.2.10:27017/cs_comments_service -u cs_comments_service -p password
MongoDB shell version: 2.0.4
cs_comments_service 
>show dbs
admin 0.078125GB
edxapp 0.078125GB
local 0.078125GB
> show users
> show collections

It's odd that cs_comments_service doesn't show up when I execute show dbs.

Anywhere else I should check? :)

Thanks.

Trinh Nguyen

unread,
Apr 6, 2016, 8:38:27 PM4/6/16
to opene...@googlegroups.com
Try to restart mongodb:

sudo service mongod restart

If it does not work, try to remove the lock file and start again:

sudo rm /edx/var/mongo/mongodb/mongod.lock
(default location)

Juanito

unread,
Apr 6, 2016, 9:23:16 PM4/6/16
to Open edX operations
Hey Trinh,

Thanks for those suggestion, but unfortunately nothing changed. When I check the supervisor log for forum, it keeps logging this periodically. Here is a snippet:

`select_server': No server is available matching preference: #<Mongo::ServerSelector::Primary:0x0000000485d348 @options={"mode"=>:primary, "database"=>:cs_comments_service_development, "write"=>{"w"=>1}, "read"=>{"mode"=>:primary}, "max_retries"=>1, "retry_interval"=>0, "timeout"=>0.5, "ssl"=>false}, @tag_sets=[], @server_selection_timeout=30> (Mongo::Error::NoServerAvailable)
from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:40:in `block in each'
from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `call'
from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/retryable.rb:46:in `read_with_retry'
from /edx/app/forum/.gem/ruby/1.9.1/gems/mongo-2.1.1/lib/mongo/collection/view/iterable.rb:39:in `each'
from /edx/app/forum/.gem/ruby/1.9.1/gems/mongoid-5.0.0/lib/mongoid/query_cache.rb:207:in `each'
from /edx/app/forum/cs_comments_service/app.rb:141:in `map'
from /edx/app/forum/cs_comments_service/app.rb:141:in `<top (required)>'
from config.ru:21:in `require'
from config.ru:21:in `block in <main>'
from /edx/app/forum/.gem/ruby/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /edx/app/forum/.gem/ruby/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /edx/app/forum/.gem/ruby/1.9.1/gems/

Not sure _development came from...

Trinh Nguyen

unread,
Apr 6, 2016, 9:43:45 PM4/6/16
to opene...@googlegroups.com
Oke so now check out all of your mongodb configuration:
server-vars.yml
lms/cms.env.json
...


Juanito

unread,
Apr 6, 2016, 10:28:00 PM4/6/16
to Open edX operations
Hey Trinh,

I believe it works now! Thanks so much for helping me troubleshoot.

I was searching for the keyword "cs_comments_service" on /edx/app/forum/cs_comments_service/config/mongoid.yml it appears the database points to cs_comments_service_development when in development, so I went and checked for the forum environment to see what triggers this and I found couple forum variables:

FORUM_SINATRA_ENV: "development"
FORUM_RACK_ENV: "development"

I changed it to production and ran ansible and forum stated working.

I am not sure what those two ENV mean, but for now since it working I'll take a break.

Thanks so much again Trinh

Trinh Nguyen

unread,
Apr 6, 2016, 10:29:27 PM4/6/16
to opene...@googlegroups.com
Oh, that's great Juanito!

Trinh Nguyen

unread,
Apr 6, 2016, 11:02:24 PM4/6/16
to opene...@googlegroups.com
BTW, that the default configuration for cs_comment_service:

Trinh Nguyen

unread,
Apr 6, 2016, 11:14:40 PM4/6/16
to opene...@googlegroups.com
They are settings of SINATRA, the web application framework on which the comment service was built on. You can have a look this for a better understanding: http://www.sinatrarb.com/configuration.html.

Juanito

unread,
Apr 6, 2016, 11:24:31 PM4/6/16
to Open edX operations
Ah, I see. So far forum working great.

Thanks so much again.

Daniel McQuillen

unread,
Jul 14, 2016, 8:03:45 AM7/14/16
to Open edX operations
Thanks Juanito and Trinh for this thread. It helped me a great deal today!

- Daniel

Nishant Dixit

unread,
Aug 3, 2016, 4:54:47 PM8/3/16
to Open edX operations

Daniel McQuillen

unread,
Aug 3, 2016, 6:10:16 PM8/3/16
to opene...@googlegroups.com
Hi Nishant,

Just a thought: have you set FORUM_SINATRA_ENV and FORUM_RACK_ENV variables to "production" in your server-vars.yml?

- Daniel




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniel McQuillen
McQuillen Interactive Pty. Ltd.
Hobart, Australia


--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/lFL-e0YVNbk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/9e226738-73e6-4c57-a2ce-68ed4a20438d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nishant Dixit

unread,
Aug 4, 2016, 9:23:01 AM8/4/16
to Open edX operations
@Juanito, did you had any success when you were installing ecommerce from the ansible-playbook at /var/tmp/configuration/playbook/edx-east/ecommerce.yml
I installed ecommerce the same way but it is not working. Do you have any way to install ecommerce on native installation

Nishant Dixit

unread,
Aug 4, 2016, 9:23:13 AM8/4/16
to Open edX operations, dan...@mcquilleninteractive.com
Hello Daniel

I tried setting those but i couldn't found the "server-vars.yml" file.

Nishant Dixit

unread,
Aug 7, 2016, 3:55:35 AM8/7/16
to Open edX operations
@Juanito, can you help me with this thread - https://groups.google.com/forum/#!topic/openedx-ops/lFL-e0YVNbk


On Thursday, April 7, 2016 at 8:54:31 AM UTC+5:30, Juanito wrote:

Nishant Dixit

unread,
Aug 7, 2016, 6:50:09 AM8/7/16
to Open edX operations
@Trinh, could you take a look at this thread and help me please - https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/openedx-ops/CbC3Jzlnqe0

Nishant Dixit

unread,
Aug 17, 2016, 1:21:30 PM8/17/16
to Open edX operations
@Juanito and also, everybody else. can you please help me with this thread - https://groups.google.com/forum/#!topic/openedx-ops/jsU3dV6SMXc

sha...@vlabs.ac.in

unread,
Aug 18, 2016, 2:48:43 AM8/18/16
to Open edX operations
Hello Trinh,

please can you help, I am also facing forum page issue. here is the log lines from
sudo tail -f /edx/var/log/lms/edx.log
    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 bf285921-4913-4059-939f-3df09ef57a95; 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\''


On Thursday, April 7, 2016 at 7:59:27 AM UTC+5:30, Trinh Nguyen wrote:
Oh, that's great Juanito!

Nishant Dixit

unread,
Aug 26, 2016, 5:16:30 AM8/26/16
to Open edX operations
@Trinh @Juanito Could you please help me out with this - https://groups.google.com/forum/#!search/open$20edx$20ecommerce|sort:relevance/openedx-ops/IUhfmKgzfSc/ZwM9fLS9AwAJ
 
I am stuck for more than 2 months now and i still can't get it working. So, if you guys could take a look at these, it would save me a lot of trouble. BTW Trinh, I follow you on Stack overflow and your answers are great
Reply all
Reply to author
Forward
0 new messages