# No elasticsearch indexes are created

**URL:** <https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761>\
**Category:** Developers\
**Tags:** webui, english\
**Created:** [November 22, 2017, 6:34am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761 "2017-11-22T06:34:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyanga220](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/priyanga220/32/849_2.png) [@priyanga220](https://forum.metasfresh.org/u/priyanga220)\
**Post date:** [November 22, 2017, 6:34am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761/1 "2017-11-22T06:34:35Z")

</div>

Hi,

Trying to set up a local development environment in eclipse. I was able to set up all server, web front end projects and also installed elasticsearch to connect with setup. But when I log in to the web UI no Dashboard icons coming with the error complaining,

_org.elasticsearch.index.IndexNotFoundException: no such index_  
\_ at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:581)\_

When I debug;  
At the startup of server it goes through the OrderModuleInterceptor -\> registerInterceptors method but no indexes were created. This can be confirmed with the URL “[http://localhost:9200/\_cat/indices?v](http://localhost:9200/_cat/indices?v)” not giving any indices.  
Please I need help on this;  
Is there any configuration or setting which I missed or not aware?  
Do I need to setup and run “metasfresh-scripts” and / or “metasfresh-reports” projects?

Thanks in advance.

regards,

Priyanga

---

<div class="post-metadata">

**Author:** ![metas-ts](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metas-ts/32/14_2.png) [@metas-ts](https://forum.metasfresh.org/u/metas-ts)\
**Post date:** [November 23, 2017, 10:40am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761/2 "2017-11-23T10:40:02Z")

</div>

Hi @priyanga220,  
i’m not very deep in the matter, but I recommend to take a look at the Dockerfile in [metasfresh-docker](https://github.com/metasfresh/metasfresh-docker)/search …  
Maybe instead of “manually” installing elastic, you might just want to try spinning up this docker image…  
Also, maybe the config file [metasfresh-docker](https://github.com/metasfresh/metasfresh-docker)/search/sources/configs/elasticsearch.yml can give you a hint.

What i did in the past when I needed the dashboard locally (only once so far…) was i took the docker-compose file and just spun up the search component…

I hope that somehow helps…  
Tobias

---

<div class="post-metadata">

**Author:** ![priyanga220](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/priyanga220/32/849_2.png) [@priyanga220](https://forum.metasfresh.org/u/priyanga220)\
**Post date:** [November 25, 2017, 3:23am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761/3 "2017-11-25T03:23:48Z")

</div>

Hi @metas-ts, Thanks and really appreciate the feedback. I followed your suggestions and setup the docker image on a remote Centos machine. Then I uncommented following lines in yml file to open the relevant ports

```
ports:
- "9200:9200"
- "9300:9300"

```

and commented below as suggested in other post;

- /etc/timezone:/etc/timezone:ro

I built and ran up only the search project on the docker image and tried to bring the Local dash board by login. Still it gives the same error as I described in the first post. Is there any place (log file etc) where I can check at the start up of server tries to connect to elastic search for indexing?  
May be it is something with the IPs as Docker is on a Google Cloud Instance or it binds to any IP in elasticsearch.yml file with below line

network.host: 0.0.0.0 ?

Can someone shed some lights on this matter please? System Setting in AD\_SysConfig\_ID table is also enabled for elasticsearch.

Thanks and regards,

Priyanga

---

<div class="post-metadata">

**Author:** ![teosarca](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/teosarca/32/37_2.png) [@teosarca](https://forum.metasfresh.org/u/teosarca)\
**Post date:** [November 27, 2017, 8:55am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761/4 "2017-11-27T08:55:20Z")

</div>

Hi @priyanga220

You shall just start the metasfresh server.  
From eclipse you can do that by running de.metas.ServerBoot\_mf15 launcher (or de.metas.ServerBoot\_mf15\_jrebel if you have jrebel).

On server boot, the elasticsearch index will be created or updated. See:

 ![](https://forum.metasfresh.org/uploads/default/original/1X/8864e2ddda9daba67057d41a0d65794e8d3df137.png)

Alternatively, you can manually force the index creation/update by opening Table and columns window (as System administrator), going to C\_Order table and calling the “Elastic search - Index this table” gear action:

 ![](https://forum.metasfresh.org/uploads/default/original/1X/60c413934a57cc824c9b3f39249c94b3035f9d4c.png)

Hope it helps,  
Teo

---

<div class="post-metadata">

**Author:** ![priyanga220](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/priyanga220/32/849_2.png) [@priyanga220](https://forum.metasfresh.org/u/priyanga220)\
**Post date:** [December 3, 2017, 10:57am UTC](https://forum.metasfresh.org/t/no-elasticsearch-indexes-are-created/761/5 "2017-12-03T10:57:58Z")

</div>

HI @teosarca, Thanks for the input. I was able to load the dashboard locally with elasticsearch data. What I missed is starting the server with mentioned launch config. I had only started the webui-api cos I thought starting either one of them would create / update indexes. I had configured the elasticsearch server with docker image remotely.  
I will try with a local elastic-search server configured manually and provide the result.  
Again thanks all for providing the valuable support and information. Hope to have your guidance in the future too. 😉
