# Gateway.type issue

**URL:** https://discuss.elastic.co/t/gateway-type-issue/43173
**Category:** Elasticsearch
**Created:** [March 1, 2016, 11:06pm UTC](https://discuss.elastic.co/t/gateway-type-issue/43173 "2016-03-01T23:06:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)
#### Post date: [March 1, 2016, 11:06pm UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/1 "2016-03-01T23:06:19Z")

</div>

Hello,

I am running into this issue when I am restarting my elasticsearch instance on my master node

Stopping elasticsearch: [FAILED]  
Starting elasticsearch: [OK]

- elasticsearch-2.1.2]$ Exception in thread "main" java.lang.IllegalArgumentException: Unknown [gateway] type [fs]  
at org.elasticsearch.common.util.ExtensionPoint$SelectedType.bindType(ExtensionPoint.java:146)  
at org.elasticsearch.gateway.GatewayModule.configure(GatewayModule.java:53)  
at \<\<\>\>  
at org.elasticsearch.node.Node.(Node.java:200)  
at org.elasticsearch.node.Node.(Node.java:128)  
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)  
Refer to the log for complete error details.

This is what's in the log, seems that it still binds to localhost, although I tell it to bind to eth0

[2016-03-01 18:41:48,769][WARN][bootstrap] unable to install syscall filter: prctl(PR\_GET\_NO\_NEW\_PRIVS): Invalid argument  
[2016-03-01 18:41:49,753][INFO][node] [Stitch] version[2.1.2], pid[26737], build[63c285e/2016-01-27T12:57:52Z]  
[2016-03-01 18:41:49,753][INFO][node] [Stitch] initializing ...  
[2016-03-01 18:41:50,225][INFO][plugins] [Stitch] loaded [], sites []  
[2016-03-01 18:41:56,131][INFO][node] [Stitch] initialized  
[2016-03-01 18:41:56,135][INFO][node] [Stitch] starting ...  
[2016-03-01 18:41:56,382][INFO][transport] [Stitch] publish\_address {127.0.0.1:9300}, bound\_addresses {127.0.0.1:9300}, {[::1]:9300}  
[2016-03-01 18:41:56,411][INFO][discovery] [Stitch] herd-dev-wc1/sPweHychTyCwyGDMsV4qnA  
[2016-03-01 18:41:58,597][INFO][node] [Stitch] stopping ...  
[2016-03-01 18:41:58,624][INFO][node] [Stitch] stopped  
[2016-03-01 18:41:58,624][INFO][node] [Stitch] closing ...  
[2016-03-01 18:41:58,649][INFO][node] [Stitch] closed

Here is what I have in my config:

network.host: "_eth0_"  
gateway.type: local  
:

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 1, 2016, 11:50pm UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/2 "2016-03-01T23:50:55Z")

</div>

I don't think that is a valid setting in 2.X - [https://www.elastic.co/guide/en/elasticsearch/reference/2.1/modules-gateway.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/modules-gateway.html)

---

<div class="post-metadata">

### Author: ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)
#### Post date: [March 2, 2016, 12:13am UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/3 "2016-03-02T00:13:21Z")

</div>

I removed gateway.type parameter from the yaml file, I am still being prompted for it. Is there anywhere else I need to look for this? Local Gateway is used by a default.

---

<div class="post-metadata">

### Author: ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)
#### Post date: [March 2, 2016, 12:37am UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/4 "2016-03-02T00:37:17Z")

</div>

Here is what I have on my startup

/home/t/elasticsearch-2.1.2/bin/elasticsearch -p /home/t/elasticsearch-2.1.2/var/run/elasticsearch.pid -d -Des.default.path.home=/home/t/elasticsearch-2.1.2 -Des.default.path.logs=/home/t/elasticsearch-2.1.2/log -Des.default.path.data=/home/t/elasticsearch-2.1.2/data -Des.default.path.work=/home/t/elasticsearch-2.1.2/tmp -Des.default.path.conf=/home/t/elasticsearch-2.1.2/config'

---

<div class="post-metadata">

### Author: ![stecino](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@stecino](https://discuss.elastic.co/u/stecino)
#### Post date: [March 2, 2016, 12:58am UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/5 "2016-03-02T00:58:33Z")

</div>

I solved the issue. I have init script that sets the environment variables for path.  
But in the yaml file is overriding with something that was incorrect. Once I fixed it, it came up

---

<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: [July 5, 2017, 11:12pm UTC](https://discuss.elastic.co/t/gateway-type-issue/43173/6 "2017-07-05T23:12:15Z")

</div>


