# IndexShardGatewayRecoveryException - but http turned off.

**URL:** <https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602>\
**Category:** Elasticsearch\
**Created:** [May 8, 2012, 3:26pm UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602 "2012-05-08T15:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [May 8, 2012, 3:26pm UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602/1 "2012-05-08T15:26:59Z")

</div>

Hi,

I have the following exception (ElasticSearch 0.17.6):

IndexShardGatewayRecoveryException: [contactindex\_2012\_05\_02\_01\_43\_40][0]  
shard allocated for local recovery (post api), should exists, but doesn't

For which, the accepted solution seems to be outlined here:  
[http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html](http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html)

Unfortunately, my http server is off by default, for security reasons, and  
I can not connect using the Java client.

My config file, uses standard local gateway settings (i.e. whatever the  
default is) as you can see here: [https://gist.github.com/2636246](https://gist.github.com/2636246)

I would like to delete the local gateway to solve this issue,  
unfortunately, I can't track where the local gateway files are stored. I  
thought the default was {path.home}/work - but appears not to be the case.

-David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 8, 2012, 3:43pm UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602/2 "2012-05-08T15:43:37Z")

</div>

The local gateway data is stored under \_state within the data location in  
0.17.6. Any chance you can upgrade to 0.19? (you will first need to upgrade  
to 0.18).

On Tue, May 8, 2012 at 6:26 PM, davrob2 [daviroberts@gmail.com](mailto:daviroberts@gmail.com) wrote:

> Hi,
> 
> I have the following exception (Elasticsearch 0.17.6):
> 
> IndexShardGatewayRecoveryException: [contactindex\_2012\_05\_02\_01\_43\_40][0]  
> shard allocated for local recovery (post api), should exists, but doesn't
> 
> For which, the accepted solution seems to be outlined here:  
> [http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html](http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html)
> 
> Unfortunately, my http server is off by default, for security reasons, and  
> I can not connect using the Java client.
> 
> My config file, uses standard local gateway settings (i.e. whatever the  
> default is) as you can see here: [gist:2636246 · GitHub](https://gist.github.com/2636246)
> 
> I would like to delete the local gateway to solve this issue,  
> unfortunately, I can't track where the local gateway files are stored. I  
> thought the default was {path.home}/work - but appears not to be the case.
> 
> -David.

---

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [May 8, 2012, 3:56pm UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602/3 "2012-05-08T15:56:11Z")

</div>

Hi Shay,

Actually all files under the data directory (data:  
/app/fao/cmt/indexfolder/ES1) were deleted, though I can't check this for  
myself. Should that have solved the issue?

An upgrade to 0.19 would not be impossible, but clearly its not an ideal  
solution.

Just to be clear, are my options:

i) Persuade the guardians of my server to change http: enabled: false to  
true, in which case, even though the server is in a 'dodgy' state it will  
listen to a DELETE instruction.

ii) Upgrade to 0.19, which will ignore the error.

-David.

On Tuesday, 8 May 2012 16:43:37 UTC+1, kimchy wrote:

> The local gateway data is stored under \_state within the data location in  
> 0.17.6. Any chance you can upgrade to 0.19? (you will first need to upgrade  
> to 0.18).
> 
> On Tue, May 8, 2012 at 6:26 PM, davrob2 \<\*\*\*\*\> wrote:
> 
> > Hi,
> > 
> > I have the following exception (Elasticsearch 0.17.6):
> > 
> > IndexShardGatewayRecoveryException: [contactindex\_2012\_05\_02\_01\_43\_40][0]  
> > shard allocated for local recovery (post api), should exists, but doesn't
> > 
> > For which, the accepted solution seems to be outlined here:  
> > [http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html](http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html)
> > 
> > Unfortunately, my http server is off by default, for security reasons,  
> > and I can not connect using the Java client.
> > 
> > My config file, uses standard local gateway settings (i.e. whatever the  
> > default is) as you can see here: [gist:2636246 · GitHub](https://gist.github.com/2636246)
> > 
> > I would like to delete the local gateway to solve this issue,  
> > unfortunately, I can't track where the local gateway files are stored. I  
> > thought the default was {path.home}/work - but appears not to be the case.
> > 
> > -David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 9, 2012, 9:46am UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602/4 "2012-05-09T09:46:56Z")

</div>

If the root data location was deleted, then you won't get this problem (as  
it has nothing to recover from). Upgrading to 0.19 will not help with this  
error, it will help prevent this error.

On Tue, May 8, 2012 at 6:56 PM, davrob2 [daviroberts@gmail.com](mailto:daviroberts@gmail.com) wrote:

> Hi Shay,
> 
> Actually all files under the data directory (data:  
> /app/fao/cmt/indexfolder/ES1) were deleted, though I can't check this for  
> myself. Should that have solved the issue?
> 
> An upgrade to 0.19 would not be impossible, but clearly its not an ideal  
> solution.
> 
> Just to be clear, are my options:
> 
> i) Persuade the guardians of my server to change http: enabled: false to  
> true, in which case, even though the server is in a 'dodgy' state it will  
> listen to a DELETE instruction.
> 
> ii) Upgrade to 0.19, which will ignore the error.
> 
> -David.
> 
> On Tuesday, 8 May 2012 16:43:37 UTC+1, kimchy wrote:
> 
> > The local gateway data is stored under \_state within the data location in  
> > 0.17.6. Any chance you can upgrade to 0.19? (you will first need to upgrade  
> > to 0.18).
> > 
> > On Tue, May 8, 2012 at 6:26 PM, davrob2 \<\*\*\*\*\> wrote:
> > 
> > > Hi,
> > > 
> > > I have the following exception (Elasticsearch 0.17.6):
> > > 
> > > IndexShardGatewayRecoveryExcep\*\*tion: [contactindex\_2012\_05\_02\_01\_\*\*43\_40][0]  
> > > shard allocated for local recovery (post api), should exists, but doesn't
> > > 
> > > For which, the accepted solution seems to be outlined here:  
> > > [http://elasticsearch-users](http://elasticsearch-users).**[115913.n3.nabble.com/Gateway-](http://115913.n3.nabble.com/Gateway-)**  
> > > recovery-exception-\*\*tp3826325p3853899.html[http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html](http://elasticsearch-users.115913.n3.nabble.com/Gateway-recovery-exception-tp3826325p3853899.html)
> > > 
> > > Unfortunately, my http server is off by default, for security reasons,  
> > > and I can not connect using the Java client.
> > > 
> > > My config file, uses standard local gateway settings (i.e. whatever the  
> > > default is) as you can see here: [https://gist.github.com/\*\*2636246](https://gist.github.com/**2636246)[https://gist.github.com/2636246](https://gist.github.com/2636246)
> > > 
> > > I would like to delete the local gateway to solve this issue,  
> > > unfortunately, I can't track where the local gateway files are stored. I  
> > > thought the default was {path.home}/work - but appears not to be the case.
> > > 
> > > -David.

---

<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, 3:29am UTC](https://discuss.elastic.co/t/indexshardgatewayrecoveryexception-but-http-turned-off/7602/5 "2017-07-06T03:29:38Z")

</div>


