# Discussion forum not working

**URL:** <https://discuss.openedx.org/t/discussion-forum-not-working/1713>\
**Category:** Site Operations Help\
**Created:** [March 30, 2020, 7:23pm UTC](https://discuss.openedx.org/t/discussion-forum-not-working/1713 "2020-03-30T19:23:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![kstefan](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kstefan](https://discuss.openedx.org/u/kstefan)\
**Post date:** [April 1, 2020, 9:42am UTC](https://discuss.openedx.org/t/discussion-forum-not-working/1713/8 "2020-04-01T09:42:37Z")

</div>

Hi @amit,

thank you for your reply.

How can I check if elasticsearch is ready before I run the command?

When I run ‘curl -XGET [http://localhost:9200/](http://localhost:9200/)’ from the command, I get:

```
{
  "status" : 200,
  "name" : "Bug",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.5.2",
    "build_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",
    "build_timestamp" : "2015-04-27T09:21:06Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

```

Is this enough and OK?

Also, in order to run the command, do I do the following:

```
sudo -H -u forum bash
source forum_env
bin/rake search:initialize

```

Or should I do the following:

```
sudo -sHu forum bash
cd ~/cs_comments_service/
source ~/forum_env
rake search:initialize

```

Which would be a more appropriate approach?

Thank you very much in advance.

Best Regards,

Kostas.

---

_[View the full topic](https://discuss.openedx.org/t/discussion-forum-not-working/1713)._
