# Gateway access required on non-data client nodes on startup if its the first node up?

**URL:** https://discuss.elastic.co/t/gateway-access-required-on-non-data-client-nodes-on-startup-if-its-the-first-node-up/3744
**Category:** Elasticsearch
**Created:** [January 5, 2011, 8:36am UTC](https://discuss.elastic.co/t/gateway-access-required-on-non-data-client-nodes-on-startup-if-its-the-first-node-up/3744 "2011-01-05T08:36:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cwho](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cwho](https://discuss.elastic.co/u/cwho)
#### Post date: [January 5, 2011, 8:36am UTC](https://discuss.elastic.co/t/gateway-access-required-on-non-data-client-nodes-on-startup-if-its-the-first-node-up/3744/1 "2011-01-05T08:36:24Z")

</div>

I ran a "single-node" ES setup, with the gateway config on my ES server (eventually it may be replaced by a cluster of boxes with a shared file system) as:

gateway:  
type: fs  
fs:  
snapshot\_interval: 10s  
location: /home/escluster/store

and it works, I start it up, set up a few indices, (corresponding data and metadata appeared in the file location specified) and everything is available.

Then on another machine - I'll call it the ES Client - I use the Java API (setting the node on the application to be a non-data client node - without any gateway setting).

I noticed that, subsequently messing with the machines:

If the ES Server node starts up first, and ES Client joins its cluster - every thing is fine, indices are available....

If the ES Client node starts up first, and the ES Server node subsequently starts and join its cluster - indices are not available - as if they were not created, guessing the metadata isn't read from the gateway.

I cannot guarantee order of startup if there's a network/power outage. I want the index data/metadata to live just on the ES Server, so the ES Client shouldn't need access to gateway store at /home/escluster (its just a client and not a data node).

Does anyone has an idea how to get around this or where my configuration is going wrong? 🙂

---

<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 6, 2017, 4:14am UTC](https://discuss.elastic.co/t/gateway-access-required-on-non-data-client-nodes-on-startup-if-its-the-first-node-up/3744/2 "2017-07-06T04:14:22Z")

</div>


