Forums Database Name Change in Development

156 views
Skip to first unread message

Robert Raposa

unread,
Mar 8, 2017, 9:28:56 AM3/8/17
to edx-...@googlegroups.com
TL;DR  A change was made for development versions of Forums (edx/cs_comments_service) (e.g. on devstack) to use the mongo database name 'cs_comments_service' in place of 'cs_comments_service_development'.  Hopefully no one is running Production and development from the same mongo instance.  This change does not affect Ficus.

Longer
We've added configuration of additional authorization to mongo in ansible that required having the development database for cs_comments_service be more consistent with that of other environments (e.g. production).  

If you update your cs_comments_service code, it will create the new database the next time you start it.  This means all of your old data will go away in discussions on your devstack.

Again, these changes do not affect Ficus.  

If you were building a recent devstack and saw the following error, you can try again***:
  1. ==> default: TASK [forum : update supervisor configuration] *********************************
  2. ==> default: skipping: [localhost]
  3. ==> default
  4. ==> default: TASK [forum : initialize elasticsearch] ****************************************
  5. ==> default: fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/edx/app/forum/cs_comments_service/bin/rake", "search:initialize"], "delta": "0:00:05.514543", "end": "2017-03-06 21:00:31.101816", "failed": true, "rc": 1, "start": "2017-03-06 21:00:25.587273", "stderr": "/edx/app/forum/cs_comments_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT\n/edx/app/forum/cs_comments_service/lib/tasks/kpis.rake:7: warning: already initialized constant ROOT\n/edx/app/forum/cs_comments_service/models/constants.rb:2: warning: already initialized constant COURSE_ID\nrake aborted!\nMongo::Error::OperationFailure: not authorized for query on cs_comments_service_development.blocked_hash (13)
*** Note that there are other issues on fresh devstacks of the master branch right now, so don't update until consulting the dev channel.

--

Robert Raposa

edX | Software Architect  | rra...@edx.org  

141 Portland Street, 9th floor

Cambridge, MA 02139

http://www.edx.org

http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566

Pierre Mailhot

unread,
Mar 8, 2017, 5:28:43 PM3/8/17
to General Open edX discussion
That's very interesting because under native (or fullstack) I have been using cs_comments_service for a few releases now because it would not connect to cs_comments_service_development.
I even had to change RACK_ENV and SINATRA_DEV to "production" instead of development in forum_env because the default were "development".
Reply all
Reply to author
Forward
0 new messages