# Native Open edX Installation Ansible Fail but server works

**URL:** <https://discuss.openedx.org/t/native-open-edx-installation-ansible-fail-but-server-works/821>\
**Category:** Site Operations Help\
**Created:** [November 9, 2019, 3:16pm UTC](https://discuss.openedx.org/t/native-open-edx-installation-ansible-fail-but-server-works/821 "2019-11-09T15:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shukurlu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/shukurlu/32/342_2.png) [@Shukurlu](https://discuss.openedx.org/u/Shukurlu)\
**Post date:** [November 9, 2019, 3:16pm UTC](https://discuss.openedx.org/t/native-open-edx-installation-ansible-fail-but-server-works/821/1 "2019-11-09T15:16:10Z")

</div>

Hi friends ,

I tried to install Ironwood then Ansible become fail.

But edx server works properly currently . I dont know may be this will be an issue in the further for me ? or how can I fix that the installation may finished properly.

Those are the logs . Thanks in advance!

> TASK [forum : enable the supervisor config] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [localhost]
> 
> TASK [forum : create the supervisor wrapper] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [localhost]
> 
> TASK [forum : git checkout forum repo into /edx/app/forum/cs\_comments\_service] \*\*\*  
> changed: [localhost]
> 
> TASK [forum : install comments service bundle] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [localhost]
> 
> TASK [forum : initialize elasticsearch] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: [“/edx/app/forum/cs\_comments\_service/bin/rake”, “search:initialize”], “delta”: “0:00:32.570365”, “end”: “2019-11-08 08:27:24.767989”, “failed”: true, “rc”: 1, “start”: “2019-11-08 08:26:52.197624”, “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/deep\_search.rake:7: warning: previous definition of ROOT was here\n/edx/app/forum/cs\_comments\_service/lib/tasks/kpis.rake:7: warning: already initialized constant ROOT\n/edx/app/forum/cs\_comments\_service/lib/tasks/flags.rake:6: warning: previous definition of ROOT was here\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated\n/edx/app/forum/cs\_comments\_service/models/constants.rb:2: warning: already initialized constant COURSE\_ID\n/edx/app/forum/cs\_comments\_service/lib/tasks/db.rake:28: warning: previous definition of COURSE\_ID was here\nrake aborted!\nElasticsearch::Transport::Transport::Errors::ServiceUnavailable: [503] \n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:201:in ` __raise_transport_error'\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:312:in `perform\_request’\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/client.rb:128:in `perform\_request’\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request'\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/actions/indices/exists_alias.rb:44:in `block in exists\_alias’\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/utils.rb:197:in `__ rescue_from_not_found'\n/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/actions/indices/exists_alias.rb:43:in `exists\_alias’\n/edx/app/forum/cs\_comments\_service/lib/task\_helpers.rb:92:in `exists_alias'\n/edx/app/forum/cs_comments_service/lib/task_helpers.rb:146:in `initialize\_index’\n/edx/app/forum/cs\_comments\_service/lib/tasks/search.rake:40:in `block (2 levels) in <top (required)>'\n/edx/app/forum/.gem/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `\<top (required)\>'\nTasks: TOP =\> search:initialize\n(See full trace by running task with --trace)”, “stderr\_lines”: [“/edx/app/forum/cs\_comments\_service/lib/tasks/flags.rake:6: warning: already initialized constant ROOT”, “/edx/app/forum/cs\_comments\_service/lib/tasks/deep\_search.rake:7: warning: previous definition of ROOT was here”, “/edx/app/forum/cs\_comments\_service/lib/tasks/kpis.rake:7: warning: already initialized constant ROOT”, “/edx/app/forum/cs\_comments\_service/lib/tasks/flags.rake:6: warning: previous definition of ROOT was here”, “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated”, “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated”, “/edx/app/forum/cs\_comments\_service/models/constants.rb:2: warning: already initialized constant COURSE\_ID”, “/edx/app/forum/cs\_comments\_service/lib/tasks/db.rake:28: warning: previous definition of COURSE\_ID was here”, “rake aborted!”, "Elasticsearch::Transport::Transport::Errors::ServiceUnavailable: [503] ", “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:201:in ` __raise_transport_error'", "/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:312:in `perform\_request’”, “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'", "/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/client.rb:128:in `perform\_request’”, “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request'", "/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/actions/indices/exists_alias.rb:44:in `block in exists\_alias’”, “/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/utils.rb:197:in `__ rescue_from_not_found'", "/edx/app/forum/.gem/ruby/2.4.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/actions/indices/exists_alias.rb:43:in `exists\_alias’”, “/edx/app/forum/cs\_comments\_service/lib/task\_helpers.rb:92:in `exists_alias'", "/edx/app/forum/cs_comments_service/lib/task_helpers.rb:146:in `initialize\_index’”, “/edx/app/forum/cs\_comments\_service/lib/tasks/search.rake:40:in `block (2 levels) in <top (required)>'", "/edx/app/forum/.gem/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `\<top (required)\>'”, “Tasks: TOP =\> search:initialize”, “(See full trace by running task with --trace)”], “stdout”: “W, [2019-11-08T08:26:54.591626 #7737] WARN – : Overwriting existing field \_id in class User.\nW, [2019-11-08T08:26:54.659683 #7737] WARN – : MONGODB | Unsupported client option ‘max\_retries’. It will be ignored.\nW, [2019-11-08T08:26:54.659727 #7737] WARN – : MONGODB | Unsupported client option ‘retry\_interval’. It will be ignored.\nW, [2019-11-08T08:26:54.659743 #7737] WARN – : MONGODB | Unsupported client option ‘timeout’. It will be ignored.”, “stdout\_lines”: [“W, [2019-11-08T08:26:54.591626 #7737] WARN – : Overwriting existing field \_id in class User.”, “W, [2019-11-08T08:26:54.659683 #7737] WARN – : MONGODB | Unsupported client option ‘max\_retries’. It will be ignored.”, “W, [2019-11-08T08:26:54.659727 #7737] WARN – : MONGODB | Unsupported client option ‘retry\_interval’. It will be ignored.”, “W, [2019-11-08T08:26:54.659743 #7737] WARN – : MONGODB | Unsupported client option ‘timeout’. It will be ignored.”]}
> 
> NO MORE HOSTS LEFT \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> to retry, use: --limit @/var/tmp/configuration/playbooks/openedx\_native.retry
> 
> PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> localhost : ok=444 changed=328 unreachable=0 failed=1
> 
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: migrate [0] ------------------------------------------------------------------- 494.90s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install python requirements [0] ----------------------------------------------- 410.35s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: gather static assets with paver [1] ------------------------------------------- 395.10s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install production requirements [0] ------------------------------------------- 327.67s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install ruby 2.4.1 ------------------------------------------------------------ 258.74s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install production requirements [1] ------------------------------------------- 185.36s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: checkout edx-platform repo into /edx/app/edxapp/edx-platform [0] -------------- 131.66s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install comments service bundle ----------------------------------------------- 131.10s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: install node dependencies [2] -------------------------------------------------- 89.21s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing: migrate database [0] ----------------------------------------------------------- 80.47s  
> INFO:/var/tmp/configuration/playbooks/callback\_plugins/task\_timing:  
> Playbook Configure instance(s) finished: 2019-11-08 13:27:24.813964, 1039 total tasks. 1:10:44.546942 elapsed.
> 
> ## ======================================== Ansible failed!

---

<div class="post-metadata">

**Author:** ![guruprasad](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/guruprasad/32/303_2.png) [@guruprasad](https://discuss.openedx.org/u/guruprasad)\
**Post date:** [November 25, 2019, 6:29pm UTC](https://discuss.openedx.org/t/native-open-edx-installation-ansible-fail-but-server-works/821/2 "2019-11-25T18:29:22Z")

</div>

Hi @Shukurlu,

> [@Shukurlu](#):
>
> Elasticsearch::Transport::Transport::Errors::ServiceUnavailable: [503]

It looks like something is not okay with the Elasticsearch installation that your instance is set up to use. Since elasticsearch is used only for specific functionality in the forum, it may look like everything is working okay though that is not the case.

---

<div class="post-metadata">

**Author:** ![mennaammar](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mennaammar](https://discuss.openedx.org/u/mennaammar)\
**Post date:** [November 29, 2020, 10:18pm UTC](https://discuss.openedx.org/t/native-open-edx-installation-ansible-fail-but-server-works/821/3 "2020-11-29T22:18:28Z")

</div>

Hi,  
Did you solve this issue ? I am facing the same with ironwood.master.
