# Forum error message in Ginkgo

**URL:** <https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670>\
**Category:** Site Operators\
**Created:** [March 26, 2020, 9:55am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670 "2020-03-26T09:55:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vassantha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vassantha/32/1402_2.png) [@Vassantha](https://discuss.openedx.org/u/Vassantha)\
**Post date:** [March 26, 2020, 9:55am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/1 "2020-03-26T09:55:39Z")

</div>

Hi everyone,

I’ve been getting error messages in forums on Open EDX Gingko 1.0.  
It seems others also had this issue : https://groups.google.com/forum/#!topic/edx-code/ExNjCyV0xGo  
But I can’t find how to run the **rake search:initialize** command which should solve my problem.  
I tried installing Ruby, bundler, etc. but it still fails…  
Any idea or documentation on how to execute this command ?  
I thank you in advance for your help !

---

<div class="post-metadata">

**Author:** ![andrey.kryachko](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@andrey.kryachko](https://discuss.openedx.org/u/andrey.kryachko)\
**Post date:** [March 26, 2020, 10:40am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/2 "2020-03-26T10:40:53Z")

</div>

Hi @Vassantha,

please try this shell sequence:

```auto
sudo -sHu forum bash
cd ~/cs_comments_service/
source ~/forum
rake -AT # list available rake commands
rake search:initialize

```

---

<div class="post-metadata">

**Author:** ![Vassantha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vassantha/32/1402_2.png) [@Vassantha](https://discuss.openedx.org/u/Vassantha)\
**Post date:** [March 26, 2020, 10:51am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/3 "2020-03-26T10:51:33Z")

</div>

Hi Andrey,

Thank you for your answer.  
The _source ~/forum_ command replies with _bash: /edx/app/forum/forum: No such file or directory_

**_Edit_ : in fact, it was _source ~/forum\_env_**

---

<div class="post-metadata">

**Author:** ![Vassantha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vassantha/32/1402_2.png) [@Vassantha](https://discuss.openedx.org/u/Vassantha)\
**Post date:** [March 26, 2020, 11:02am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/4 "2020-03-26T11:02:30Z")

</div>

The command did not initialize:  
_Skipping initialization. The ‘content’ alias already exists. If ‘rake search:validate\_index’ indicates a problem with the mappings, you could either use ‘rake search:rebuild\_index’ to reload from the db or ‘rake search:initialize[true]’ to force initialization with an empty index._

I tried the recommended commands, but I get the following error:  
_rake aborted!_  
_Elasticsearch::Transport::Transport::Errors::NotFound: [404] {“error”:“IndexMissingException[[content\_20190528020054415,content\_20171130103944060] missing]”,“status”:404}_

---

<div class="post-metadata">

**Author:** ![andrey.kryachko](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@andrey.kryachko](https://discuss.openedx.org/u/andrey.kryachko)\
**Post date:** [March 26, 2020, 12:29pm UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/5 "2020-03-26T12:29:51Z")

</div>

you can try to force new index creation

```auto
rake search:initialize[true]
rake search:catchup[9999]

```

and then verify that elasticsearch index contains non zero number of documents

```auto
curl -XGET http://localhost:9200/_cat/indices'?v'

```

in latest index named using this pattern `content_YYYMMDDHHMMSSmmm`

---

<div class="post-metadata">

**Author:** ![Vassantha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vassantha/32/1402_2.png) [@Vassantha](https://discuss.openedx.org/u/Vassantha)\
**Post date:** [March 27, 2020, 5:37am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/6 "2020-03-27T05:37:14Z")

</div>

_rake search:initialize[true]_ created the new index (despite the _IndexMissingException_ error).  
But it remains empty.  
_rake search:catchup[9999]_ aborts with the following error:  
_rake aborted!_  
_Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {“error”:“ElasticsearchIllegalArgumentException[Alias [content] has more than one indices associated with it [[content\_20190528020054415, content\_20171130103944060]], can’t execute a single index op]”,“status”:400}_

---

<div class="post-metadata">

**Author:** ![Vassantha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/vassantha/32/1402_2.png) [@Vassantha](https://discuss.openedx.org/u/Vassantha)\
**Post date:** [March 27, 2020, 6:01am UTC](https://discuss.openedx.org/t/forum-error-message-in-ginkgo/1670/7 "2020-03-27T06:01:15Z")

</div>

Ok, so I deleted the content alias on each “missing index” ([https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html)) and then executed _rake search:rebuild\_index_ and now it works !  
Thanks again for your precious help Andrey !
