Rebuild:indices error after tutor image open edx command

I was able to successfully:

  • install tutor
  • activate e-commerce plugin
  • activate the indigo theme

However, after the tutor image openedx command, I run tutor local quickstart command, but I get this error.

It was able to build cms and lms successfully, but suddenly it pops this error while :

Initialising forum...
docker-compose -f /home/hackbio/.local/share/tutor/env/local/docker-compose.yml                                                                                         -f /home/hackbio/.local/share/tutor/env/local/docker-compose.prod.yml --project-                                                                                        name tutor_local -f /home/hackbio/.local/share/tutor/env/local/docker-compose.jo                                                                                        bs.yml run --rm forum-job sh -e -c bundle exec rake search:initialize
bundle exec rake search:rebuild_indices
Creating tutor_local_forum-job_run ... done
Waiting for mongodb/elasticsearch...
2021/07/21 01:03:46 Waiting for: tcp://mongodb:27017
2021/07/21 01:03:46 Waiting for: http://elasticsearch:9200
2021/07/21 01:03:46 Connected to tcp://mongodb:27017
2021/07/21 01:03:46 Received 200 from http://elasticsearch:9200
/openedx/cs_comments_service/lib/tasks/db.rake:28: warning: already initialized                                                                                         constant COURSE_ID
/openedx/cs_comments_service/models/constants.rb:2: warning: previous definition                                                                                         of COURSE_ID was here
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: already init                                                                                        ialized constant ROOT
/openedx/cs_comments_service/lib/tasks/flags.rake:6: warning: previous definitio                                                                                        n of ROOT was here
/openedx/cs_comments_service/lib/tasks/kpis.rake:7: warning: already initialized                                                                                         constant ROOT
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: previous def                                                                                        inition of ROOT was here
W, [2021-07-21T01:03:50.390761 #18]  WARN -- : Overwriting existing field _id in                                                                                         class User.
W, [2021-07-21T01:03:50.431056 #18]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'max_retries'. It will be ignored.
W, [2021-07-21T01:03:50.431136 #18]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'retry_interval'. It will be ignored.
W, [2021-07-21T01:03:50.431177 #18]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'timeout'. It will be ignored.
I, [2021-07-21T01:03:52.047318 #18]  INFO -- : New indices ["comments_2021072101                                                                                        0350460", "comment_threads_20210721010350460"] are created.
I, [2021-07-21T01:03:52.233007 #18]  INFO -- : Alias [comments] now points to in                                                                                        dex [comments_20210721010350460].
I, [2021-07-21T01:03:52.396723 #18]  INFO -- : Alias [comment_threads] now point                                                                                        s to index [comment_threads_20210721010350460].
/openedx/cs_comments_service/lib/tasks/db.rake:28: warning: already initialized                                                                                         constant COURSE_ID
/openedx/cs_comments_service/models/constants.rb:2: warning: previous definition                                                                                         of COURSE_ID was here
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: already init                                                                                        ialized constant ROOT
/openedx/cs_comments_service/lib/tasks/flags.rake:6: warning: previous definitio                                                                                        n of ROOT was here
/openedx/cs_comments_service/lib/tasks/kpis.rake:7: warning: already initialized                                                                                         constant ROOT
/openedx/cs_comments_service/lib/tasks/deep_search.rake:7: warning: previous def                                                                                        inition of ROOT was here
W, [2021-07-21T01:03:56.145334 #36]  WARN -- : Overwriting existing field _id in                                                                                         class User.
W, [2021-07-21T01:03:56.184242 #36]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'max_retries'. It will be ignored.
W, [2021-07-21T01:03:56.184340 #36]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'retry_interval'. It will be ignored.
W, [2021-07-21T01:03:56.184403 #36]  WARN -- : MONGODB | Unsupported client opti                                                                                        on 'timeout'. It will be ignored.
I, [2021-07-21T01:03:57.676751 #36]  INFO -- : New indices ["comments_2021072101                                                                                        0356197", "comment_threads_20210721010356197"] are created.
I, [2021-07-21T01:03:57.710077 #36]  INFO -- : Catch up from 2021-07-21 00:58:56                                                                                         UTC complete.
rake aborted!
Elasticsearch::Transport::Transport::ServerError: [429] {"error":{"root_cause":[                                                                                        {"type":"cluster_block_exception","reason":"index [comments_20210721010350460] b                                                                                        locked by: [TOO_MANY_REQUESTS/12/index read-only / allow delete (api)];index [co                                                                                        mments_20210721010356197] blocked by: [TOO_MANY_REQUESTS/12/index read-only / al                                                                                        low delete (api)];"}],"type":"cluster_block_exception","reason":"index [comments                                                                                        _20210721010350460] blocked by: [TOO_MANY_REQUESTS/12/index read-only / allow de                                                                                        lete (api)];index [comments_20210721010356197] blocked by: [TOO_MANY_REQUESTS/12                                                                                        /index read-only / allow delete (api)];"},"status":429}
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-transpo                                                                                        rt-7.8.0/lib/elasticsearch/transport/transport/base.rb:218:in `__raise_transport                                                                                        _error'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-transpo                                                                                        rt-7.8.0/lib/elasticsearch/transport/transport/base.rb:346:in `perform_request'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-transpo                                                                                        rt-7.8.0/lib/elasticsearch/transport/transport/http/faraday.rb:37:in `perform_re                                                                                        quest'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-transpo                                                                                        rt-7.8.0/lib/elasticsearch/transport/client.rb:176:in `perform_request'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-api-7.8                                                                                        .0/lib/elasticsearch/api/namespace/common.rb:38:in `perform_request'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/elasticsearch-api-7.8                                                                                        .0/lib/elasticsearch/api/actions/indices/update_aliases.rb:43:in `update_aliases                                                                                        '
/openedx/cs_comments_service/lib/task_helpers.rb:183:in `move_alias'
/openedx/cs_comments_service/lib/task_helpers.rb:52:in `block in rebuild_indices                                                                                        '
/openedx/cs_comments_service/lib/task_helpers.rb:47:in `each'
/openedx/cs_comments_service/lib/task_helpers.rb:47:in `rebuild_indices'
/openedx/cs_comments_service/lib/tasks/search.rake:17:in `block (2 levels) in <t                                                                                        op (required)>'
/openedx/cs_comments_service/vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/exe/rake:                                                                                        27:in `<top (required)>'
/openedx/ruby/bin/bundle:23:in `load'
/openedx/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => search:rebuild_indices
(See full trace by running task with --trace)
ERROR: 1
Error: Command failed with status 1: docker-compose -f /home/hackbio/.local/shar                                                                                        e/tutor/env/local/docker-compose.yml -f /home/hackbio/.local/share/tutor/env/loc                                                                                        al/docker-compose.prod.yml --project-name tutor_local -f /home/hackbio/.local/sh                                                                                        are/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c bundle e                                                                                        xec rake search:initialize
bundle exec rake search:rebuild_indices

Note:
I use a personal ubuntu server.
I am using the latest version compiled from github
Even with the error, the cms and lms are running, but e-commerce is not working.
Any pointers on how to solve this?

Ok, I got a solution to this, although I don’t know why it worked. I re-installed open edx and completed the ecommerce plugin configuration before theming with indigo.

I re-installed open edx and completed the ecommerce plugin configuration before theming with indigo

Do you mean ecommrece is not working with indigo theme? @josoga2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.