Replacing the value of EDXAPP_CELERY_PASSWORD by the value of REDIS_PASSWORD before launching the native.sh script on a new server allowed me to install the demo course and reach the same point I am having trouble with right now.
TASK [forum : initialize elasticsearch]
There seems to be references to a previous version of ROOT being already initialized or previously defined in a few places under /edx/app/forum/cs_comments_service/lib/tasks/{deep_search.rake, flags.rake, kpis.rake) and /edx/app/forum/cs_comments_service/models/constants.rb
I am guessing this is an issue with multiple SINATRA_ENV being defined somewhere…
There are 2 instances of SINATRA_ENV in the configuration repo.
docker/build/forum/ansible_overrides.yml: FORUM_ **SINATRA_ENV** : "staging"
playbooks/roles/forum/defaults/main.yml: FORUM_ **SINATRA_ENV** : "development"
I will try again by modifying
FORUM_RACK_ENV: "development"
FORUM_SINATRA_ENV: "development"
devstack: "false"
in docker/build/forum/ansible_overrides.yml
UPDATE: That did not change a thing… There are also warning about COURSE_ID that I did not notice before.
UPDATE 2: I am wondering if the WARNING we got early in the native.sh process could be a part of the problem? I am no Mongo or forum expert.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/edxapp/defaults/main.yml, line 16, column 1, found a
duplicate dict key (EDXAPP_ENABLE_SPECIAL_EXAMS). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (RACK_ENV). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (SINATRA_ENV). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (SEARCH_SERVER). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (SEARCH_SERVER_ES7). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (MONGOHQ_URL). Using last defined value only.
[WARNING]: While constructing a mapping from
/var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 84, column 3, found a
duplicate dict key (MONGOID_AUTH_MECH). Using last defined value only.