# New install GET works, PUT 'No route to host'

**URL:** <https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 10:38am UTC](https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419 "2016-12-08T10:38:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yannisps](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yannisps](https://discuss.elastic.co/u/yannisps)\
**Post date:** [December 8, 2016, 10:38am UTC](https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419/1 "2016-12-08T10:38:01Z")

</div>

Installed earlier version and I am trying to create the first index. At each PUT command, I receive a 'No route to host'

It is the simplest of the installations with the following information:

> ```
> curl -XGET '192.168.2.192:9200/?pretty'
> {
> "name" : "findentista-elastica",
> "cluster_name" : "findentist-cluster",
> "version" : {
> "number" : "2.3.1",
> "build_hash" : "bd980929010aef404e7cb0843e61d0665269fc39",
> "build_timestamp" : "2016-04-04T12:25:05Z",
> "build_snapshot" : false,
> "lucene_version" : "5.5.0"
> },
> "tagline" : "You Know, for Search"
> }
> 
> ```

Also:

> curl -XGET '192.168.2.192:9200/\_cluster/health?pretty' {  
> "cluster\_name" : "findentist-cluster",  
> "status" : "green",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 0,  
> "active\_shards" : 0,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 0,  
> "delayed\_unassigned\_shards" : 0,  
> "number\_of\_pending\_tasks" : 0,  
> "number\_of\_in\_flight\_fetch" : 0,  
> "task\_max\_waiting\_in\_queue\_millis" : 0,  
> "active\_shards\_percent\_as\_number" : 100.0  
> }

From the log:

> ```
> [2016-12-08 10:21:23,411][INFO][node] [findentista-elastica] starting ...
> [2016-12-08 10:21:23,495][INFO][transport] [findentista-elastica] publish_address {192.168.2.192:9300}, bound_addresses {192.168.2.192:9300}
> [2016-12-08 10:21:23,504][INFO][discovery] [findentista-elastica] findentist-cluster/vH8oZ7HZS-us_fdFVCgMrA
> [2016-12-08 10:21:26,599][INFO][cluster.service] [findentista-elastica] new_master {findentista-elastica}{vH8oZ7HZS-us_fdFVCgMrA}{192.168.2.192}{192.168.2.192:9300}{max_local_storage_nodes=1}, reason: zen-disco-join(elected_as_master, [0] joins received)
> [2016-12-08 10:21:26,647][INFO][http] [findentista-elastica] publish_address {192.168.2.192:9200}, bound_addresses {192.168.2.192:9200}
> [2016-12-08 10:21:26,656][INFO][gateway] [findentista-elastica] recovered [0] indices into cluster_state
> 
> ```

The elasticsearch.yml has the following (removed most of # comment lines):

> ```
> ======================== Elasticsearch Configuration =========================
> cluster.name: findentist-cluster
> node.name: findentista-elastica
> network.host: 192.168.2.192
> node.max_local_storage_nodes: 1
> 
> ```

There is no data in the system, a brand new installation. Some more on the status:

> ```
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/allocation?pretty'
> 0 0b 7.7gb 186.1gb 193.8gb 3 192.168.2.192 192.168.2.192 findentista-elastica
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/shards?pretty'
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/master?pretty'
> vH8oZ7HZS-us_fdFVCgMrA 192.168.2.192 192.168.2.192 findentista-elastica
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/nodes?pretty'
> 192.168.2.192 192.168.2.192 11 65 0.07 d * findentista-elastica
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/indices?pretty'
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/segments?pretty'
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/count?pretty'
> 1481192823 10:27:03 0
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/health?pretty'
> 1481192831 10:27:11 findentist-cluster green 1 1 0 0 0 0 0 0 - 100.0%
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/pending_tasks?pretty'
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/plugins?pretty'
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/fielddata?pretty'
> vH8oZ7HZS-us_fdFVCgMrA 192.168.2.192 192.168.2.192 findentista-elastica 0b
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/nodeattrs?pretty'
> findentista-elastica 192.168.2.192 192.168.2.192 max_local_storage_nodes 1
> ubuntu@findentist-dev-db:~/initialdata$ curl -XGET '192.168.2.192:9200/_cat/repositories?pretty'
> ubuntu@findentist-dev-db:~/initialdata$
> 
> ```

And when I try to create the first index called 'keyword':

> ubuntu@findentist-dev-db:~/initialdata$ curl -XPUT '192.168.2.198:9200/keyword?pretty&pretty'  
> curl: (7) Failed to connect to 192.168.2.198 port 9200: No route to host

This is a virtual host on Ubuntu 16.04.1, rebooted a few hours ago with 2vCPU, 7G Ram, 200GDisk.

What have I done wrong?

Thank you.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 8, 2016, 11:56am UTC](https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419/2 "2016-12-08T11:56:18Z")

</div>

It looks like you have set your `network.host` in the `elasticsearch.yml` to `192.168.2.192` but are trying to access Elasticsearch in your request with a different IP: `192.168.2.198`

---

<div class="post-metadata">

**Author:** ![yannisps](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yannisps](https://discuss.elastic.co/u/yannisps)\
**Post date:** [December 8, 2016, 12:08pm UTC](https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419/3 "2016-12-08T12:08:12Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/6/6132ac715fd1d5c19ae8fbb5cd7ef0391b27210c.gif)

As properly described, it is a keyboard-chair problem.

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 5, 2017, 12:08pm UTC](https://discuss.elastic.co/t/new-install-get-works-put-no-route-to-host/68419/4 "2017-01-05T12:08:22Z")

</div>

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