# Error when running multiple nodes on the same Vista machine

**URL:** <https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902>\
**Category:** Elasticsearch\
**Created:** [April 11, 2010, 5:00pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902 "2010-04-11T17:00:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![talsalmona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talsalmona/32/3316_2.png) [@talsalmona](https://discuss.elastic.co/u/talsalmona)\
**Post date:** [April 11, 2010, 5:00pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/1 "2010-04-11T17:00:20Z")

</div>

Hi,

I'm running two servers on the same Vista machine )-:  
I index an object  
curl -XPUT '[http://localhost:9200/t1/i1/1](http://localhost:9200/t1/i1/1)' -d '{user:"tal"}'

with one server running.  
Then when I start the second server I get the errors below:

On the master I get this:  
[19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
S[INITIALIZING], reason [Failed to start shard, message  
[RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
[inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
recovery/start]]; nes  
ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]]  
[t1/1/recovery/snapshot]]; nested:  
IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
not in recov  
ering state]; ]]

On the slave I get this:  
Caused by:  
org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
[3] CurrentState[STARTED] Shard not in recovering state  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:  
410)  
at org.elasticsearch.index.shard.recovery.RecoveryAction  
$SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
468)  
at org.elasticsearch.index.shard.recovery.RecoveryAction  
$SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
452)  
at org.elasticsearch.transport.netty.MessageChannelHandler  
$3.run(MessageChannelHandler.java:155)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:619)

I'm using the default configuration  
It works great on a linux box.  
Any idea what's happening?

Thanks,  
Tal

---

<div class="post-metadata">

**Author:** ![Berkay\_Mollamustafao](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Berkay\_Mollamustafao](https://discuss.elastic.co/u/Berkay_Mollamustafao)\
**Post date:** [April 11, 2010, 5:16pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/2 "2010-04-11T17:16:22Z")

</div>

I'd suspect interference from one of Windows' overeager security features.  
I'd stop firewall etc. and try with security features disabled.

Regards,  
Berkay Mollamustafaoglu  
mberkay on yahoo, google and skype

On Sun, Apr 11, 2010 at 1:00 PM, Tal [talsalmona@gmail.com](mailto:talsalmona@gmail.com) wrote:

> Hi,
> 
> I'm running two servers on the same Vista machine )-:  
> I index an object  
> curl -XPUT '[http://localhost:9200/t1/i1/1](http://localhost:9200/t1/i1/1)' -d '{user:"tal"}'
> 
> with one server running.  
> Then when I start the second server I get the errors below:
> 
> On the master I get this:  
> [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> S[INITIALIZING], reason [Failed to start shard, message  
> [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> recovery/start]]; nes  
> ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]]  
> [t1/1/recovery/snapshot]]; nested:  
> IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> not in recov  
> ering state]; ]]
> 
> On the slave I get this:  
> Caused by:  
> org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> [3] CurrentState[STARTED] Shard not in recovering state  
> at
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:  
> 410)  
> at org.elasticsearch.index.shard.recovery.RecoveryAction  
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> 468)  
> at org.elasticsearch.index.shard.recovery.RecoveryAction  
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> 452)  
> at org.elasticsearch.transport.netty.MessageChannelHandler  
> $3.run(MessageChannelHandler.java:155)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:619)
> 
> I'm using the default configuration  
> It works great on a linux box.  
> Any idea what's happening?
> 
> Thanks,  
> Tal

---

<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:** [April 11, 2010, 11:53pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/3 "2010-04-11T23:53:33Z")

</div>

Is this re-creatable on the vista machines?

-shay.banon

On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalmona@gmail.com](mailto:talsalmona@gmail.com) wrote:

> Hi,
> 
> I'm running two servers on the same Vista machine )-:  
> I index an object  
> curl -XPUT '[http://localhost:9200/t1/i1/1](http://localhost:9200/t1/i1/1)' -d '{user:"tal"}'
> 
> with one server running.  
> Then when I start the second server I get the errors below:
> 
> On the master I get this:  
> [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> S[INITIALIZING], reason [Failed to start shard, message  
> [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> recovery/start]]; nes  
> ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]]  
> [t1/1/recovery/snapshot]]; nested:  
> IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> not in recov  
> ering state]; ]]
> 
> On the slave I get this:  
> Caused by:  
> org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> [3] CurrentState[STARTED] Shard not in recovering state  
> at
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:  
> 410)  
> at org.elasticsearch.index.shard.recovery.RecoveryAction  
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> 468)  
> at org.elasticsearch.index.shard.recovery.RecoveryAction  
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> 452)  
> at org.elasticsearch.transport.netty.MessageChannelHandler  
> $3.run(MessageChannelHandler.java:155)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:619)
> 
> I'm using the default configuration  
> It works great on a linux box.  
> Any idea what's happening?
> 
> Thanks,  
> Tal

---

<div class="post-metadata">

**Author:** ![talsalmona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talsalmona/32/3316_2.png) [@talsalmona](https://discuss.elastic.co/u/talsalmona)\
**Post date:** [April 12, 2010, 7:38am UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/4 "2010-04-12T07:38:29Z")

</div>

I tried on multiple Vista machines and this always happens

On Apr 12, 2:53 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Is this re-creatable on the vista machines?
> 
> -shay.banon
> 
> On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> 
> > Hi,
> 
> > I'm running two servers on the same Vista machine )-:  
> > I index an object  
> > curl -XPUT '[http://localhost:9200/t1/i1/1'-d](http://localhost:9200/t1/i1/1'-d) '{user:"tal"}'
> 
> > with one server running.  
> > Then when I start the second server I get the errors below:
> 
> > On the master I get this:  
> > [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> > shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> > S[INITIALIZING], reason [Failed to start shard, message  
> > [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> > m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> > into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> > [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> > RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> > recovery/start]]; nes  
> > ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> > nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]]  
> > [t1/1/recovery/snapshot]]; nested:  
> > IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> > not in recov  
> > ering state]; ]]
> 
> > On the slave I get this:  
> > Caused by:  
> > org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> > [3] CurrentState[STARTED] Shard not in recovering state  
> > at
> 
> > org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:  
> > 410)  
> > at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> > 468)  
> > at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> > 452)  
> > at org.elasticsearch.transport.netty.MessageChannelHandler  
> > $3.run(MessageChannelHandler.java:155)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.run(ThreadPoolExecutor.java:908)  
> > at java.lang.Thread.run(Thread.java:619)
> 
> > I'm using the default configuration  
> > It works great on a linux box.  
> > Any idea what's happening?
> 
> > Thanks,  
> > Tal

---

<div class="post-metadata">

**Author:** ![talsalmona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talsalmona/32/3316_2.png) [@talsalmona](https://discuss.elastic.co/u/talsalmona)\
**Post date:** [April 12, 2010, 3:06pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/5 "2010-04-12T15:06:08Z")

</div>

I added the following to my configuration file and it seems to work  
now

transport:  
netty:  
reuse\_address: false

On Apr 12, 10:38 am, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:

> I tried on multiple Vista machines and this always happens
> 
> On Apr 12, 2:53 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Is this re-creatable on the vista machines?
> 
> > -shay.banon
> 
> > On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > 
> > > Hi,
> 
> > > I'm running two servers on the same Vista machine )-:  
> > > I index an object  
> > > curl -XPUT '[http://localhost:9200/t1/i1/1'-d'{user:"tal"}](http://localhost:9200/t1/i1/1'-d'%7Buser:%22tal%22%7D)'
> 
> > > with one server running.  
> > > Then when I start the second server I get the errors below:
> 
> > > On the master I get this:  
> > > [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> > > shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> > > S[INITIALIZING], reason [Failed to start shard, message  
> > > [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> > > m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> > > into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> > > [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> > > RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> > > recovery/start]]; nes  
> > > ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> > > nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]]  
> > > [t1/1/recovery/snapshot]]; nested:  
> > > IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> > > not in recov  
> > > ering state]; ]]
> 
> > > On the slave I get this:  
> > > Caused by:  
> > > org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> > > [3] CurrentState[STARTED] Shard not in recovering state  
> > > at
> 
> > > org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:  
> > > 410)  
> > > at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> > > 468)  
> > > at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:  
> > > 452)  
> > > at org.elasticsearch.transport.netty.MessageChannelHandler  
> > > $3.run(MessageChannelHandler.java:155)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > at java.lang.Thread.run(Thread.java:619)
> 
> > > I'm using the default configuration  
> > > It works great on a linux box.  
> > > Any idea what's happening?
> 
> > > Thanks,  
> > > Tal

---

<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:** [April 12, 2010, 3:10pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/6 "2010-04-12T15:10:14Z")

</div>

Really? How did it occur to you that that might help (I would not have  
thought of it, personally, but then again, I have come to expect the  
unexpected on windows). Does this really help in a statistically repeatably  
manner? If so, I will default it to "false" when running on windows.

cheers,  
shay.banon

On Mon, Apr 12, 2010 at 6:06 PM, Tal [talsalmona@gmail.com](mailto:talsalmona@gmail.com) wrote:

> I added the following to my configuration file and it seems to work  
> now
> 
> transport:  
> netty:  
> reuse\_address: false
> 
> On Apr 12, 10:38 am, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> 
> > I tried on multiple Vista machines and this always happens
> > 
> > On Apr 12, 2:53 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Is this re-creatable on the vista machines?
> > 
> > > -shay.banon
> > 
> > > On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > > 
> > > > Hi,
> > 
> > > > I'm running two servers on the same Vista machine )-:  
> > > > I index an object  
> > > > curl -XPUT '[http://localhost:9200/t1/i1/1'-d'{user:"tal"}](http://localhost:9200/t1/i1/1'-d'%7Buser:%22tal%22%7D)'
> > 
> > > > with one server running.  
> > > > Then when I start the second server I get the errors below:
> > 
> > > > On the master I get this:  
> > > > [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> > > > shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> > > > S[INITIALIZING], reason [Failed to start shard, message  
> > > > [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> > > > m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> > > > into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> > > > [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> > > > RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> > > > recovery/start]]; nes  
> > > > ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> > > > nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300  
> > > > ]]  
> > > > [t1/1/recovery/snapshot]]; nested:  
> > > > IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> > > > not in recov  
> > > > ering state]; ]]
> > 
> > > > On the slave I get this:  
> > > > Caused by:  
> > > > org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> > > > [3] CurrentState[STARTED] Shard not in recovering state  
> > > > at
> > 
> > > >
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:
> 
> > > > 1. at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> > > > 2. at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> > > > 3. at org.elasticsearch.transport.netty.MessageChannelHandler  
> > > > $3.run(MessageChannelHandler.java:155)  
> > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > > at java.lang.Thread.run(Thread.java:619)
> > 
> > > > I'm using the default configuration  
> > > > It works great on a linux box.  
> > > > Any idea what's happening?
> > 
> > > > Thanks,  
> > > > Tal

---

<div class="post-metadata">

**Author:** ![talsalmona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talsalmona/32/3316_2.png) [@talsalmona](https://discuss.elastic.co/u/talsalmona)\
**Post date:** [April 12, 2010, 8:49pm UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/7 "2010-04-12T20:49:15Z")

</div>

I suspected it had something to do with Netty.  
Then it was trial and error.

I will be testing it on many computers in the coming days so I'll be  
able to tell you if this solution works.

Thanks,  
Tal

On Apr 12, 6:10 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Really? How did it occur to you that that might help (I would not have  
> thought of it, personally, but then again, I have come to expect the  
> unexpected on windows). Does this really help in a statistically repeatably  
> manner? If so, I will default it to "false" when running on windows.
> 
> cheers,  
> shay.banon
> 
> On Mon, Apr 12, 2010 at 6:06 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> 
> > I added the following to my configuration file and it seems to work  
> > now
> 
> > transport:  
> > netty:  
> > reuse\_address: false
> 
> > On Apr 12, 10:38 am, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > 
> > > I tried on multiple Vista machines and this always happens
> 
> > > On Apr 12, 2:53 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > > Is this re-creatable on the vista machines?
> 
> > > > -shay.banon
> 
> > > > On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > > > 
> > > > > Hi,
> 
> > > > > I'm running two servers on the same Vista machine )-:  
> > > > > I index an object  
> > > > > curl -XPUT '[http://localhost:9200/t1/i1/1'-d'{user:"tal"}](http://localhost:9200/t1/i1/1'-d'%7Buser:%22tal%22%7D)'
> 
> > > > > with one server running.  
> > > > > Then when I start the second server I get the errors below:
> 
> > > > > On the master I get this:  
> > > > > [19:50:50,247][WARN][cluster.action.shard] [Atom Bob] Received  
> > > > > shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> > > > > S[INITIALIZING], reason [Failed to start shard, message  
> > > > > [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> > > > > m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/16.59.79.231:9300]]  
> > > > > into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> > > > > [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> > > > > RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300]][t1/1/  
> > > > > recovery/start]]; nes  
> > > > > ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> > > > > nested: RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300  
> > > > > ]]  
> > > > > [t1/1/recovery/snapshot]]; nested:  
> > > > > IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED] Shard  
> > > > > not in recov  
> > > > > ering state]; ]]
> 
> > > > > On the slave I get this:  
> > > > > Caused by:  
> > > > > org.elasticsearch.index.shard.IndexShardNotRecoveringException: [t1]  
> > > > > [3] CurrentState[STARTED] Shard not in recovering state  
> > > > > at
> 
> > org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:
> > 
> > > > > 1. at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> > > > > 2. at org.elasticsearch.index.shard.recovery.RecoveryAction  
> > > > > $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> > > > > 3. at org.elasticsearch.transport.netty.MessageChannelHandler  
> > > > > $3.run(MessageChannelHandler.java:155)  
> > > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > > > at java.lang.Thread.run(Thread.java:619)
> 
> > > > > I'm using the default configuration  
> > > > > It works great on a linux box.  
> > > > > Any idea what's happening?
> 
> > > > > Thanks,  
> > > > > Tal

---

<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:** [April 13, 2010, 12:06am UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/8 "2010-04-13T00:06:59Z")

</div>

I will change the default to false in any case. The funny thing is that I  
had a look at other libs using netty and they defaulted it to true. Will  
ping them as well...

cheers,  
-shay.banon

On Mon, Apr 12, 2010 at 11:49 PM, Tal [talsalmona@gmail.com](mailto:talsalmona@gmail.com) wrote:

> I suspected it had something to do with Netty.  
> Then it was trial and error.
> 
> I will be testing it on many computers in the coming days so I'll be  
> able to tell you if this solution works.
> 
> Thanks,  
> Tal
> 
> On Apr 12, 6:10 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Really? How did it occur to you that that might help (I would not have  
> > thought of it, personally, but then again, I have come to expect the  
> > unexpected on windows). Does this really help in a statistically  
> > repeatably  
> > manner? If so, I will default it to "false" when running on windows.
> > 
> > cheers,  
> > shay.banon
> > 
> > On Mon, Apr 12, 2010 at 6:06 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > 
> > > I added the following to my configuration file and it seems to work  
> > > now
> > 
> > > transport:  
> > > netty:  
> > > reuse\_address: false
> > 
> > > On Apr 12, 10:38 am, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > > 
> > > > I tried on multiple Vista machines and this always happens
> > 
> > > > On Apr 12, 2:53 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > > > Is this re-creatable on the vista machines?
> > 
> > > > > -shay.banon
> > 
> > > > > On Sun, Apr 11, 2010 at 8:00 PM, Tal [talsalm...@gmail.com](mailto:talsalm...@gmail.com) wrote:
> > > > > 
> > > > > > Hi,
> > 
> > > > > > I'm running two servers on the same Vista machine )-:  
> > > > > > I index an object  
> > > > > > curl -XPUT '[http://localhost:9200/t1/i1/1'-d'{user:"tal"}](http://localhost:9200/t1/i1/1'-d'%7Buser:%22tal%22%7D)'
> > 
> > > > > > with one server running.  
> > > > > > Then when I start the second server I get the errors below:
> > 
> > > > > > On the master I get this:  
> > > > > > [19:50:50,247][WARN][cluster.action.shard] [Atom Bob]  
> > > > > > Received  
> > > > > > shard failed for [t1][1], Node[LH-JC0IOAYC2EEZ-12779], [B],  
> > > > > > S[INITIALIZING], reason [Failed to start shard, message  
> > > > > > [RecoveryFailedException[Index Shard [t1][1]: Recovery failed fro  
> > > > > > m [Atom Bob][LH-JC0IOAYC2EEZ-31666][data][inet[/  
> > > > > > 16.59.79.231:9300]]  
> > > > > > into [Power Man][LH-JC0IOAYC2EEZ-12779][data]  
> > > > > > [inet[16.59.79.231/16.59.79.231:9300]]]; nested:  
> > > > > > RemoteTransportException[[Atom Bob][inet[/16.59.79.231:9300  
> > > > > > ]][t1/1/  
> > > > > > recovery/start]]; nes  
> > > > > > ted: RecoveryEngineException[[t1][1] Phase[2] Execution failed];  
> > > > > > nested: RemoteTransportException[[Atom Bob][inet[/  
> > > > > > 16.59.79.231:9300  
> > > > > > ]]  
> > > > > > [t1/1/recovery/snapshot]]; nested:  
> > > > > > IndexShardNotRecoveringException[[t1][1] CurrentState[STARTED]  
> > > > > > Shard  
> > > > > > not in recov  
> > > > > > ering state]; ]]
> > 
> > > > > > On the slave I get this:  
> > > > > > Caused by:  
> > > > > > org.elasticsearch.index.shard.IndexShardNotRecoveringException:  
> > > > > > [t1]  
> > > > > > [3] CurrentState[STARTED] Shard not in recovering state  
> > > > > > at
> > 
> > >
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecovery(InternalIndexShard.java:
> 
> > > > > > 1. at org.elasticsearch.index.shard.recovery.RecoveryAction
> 
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> 
> > > > > > 1. at org.elasticsearch.index.shard.recovery.RecoveryAction
> 
> $SnapshotTransportRequestHandler.messageReceived(RecoveryAction.java:
> 
> > > > > > 1. at org.elasticsearch.transport.netty.MessageChannelHandler  
> > > > > > $3.run(MessageChannelHandler.java:155)  
> > > > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > > > $Worker.runTask(ThreadPoolExecutor.java:886)  
> > > > > > at java.util.concurrent.ThreadPoolExecutor  
> > > > > > $Worker.run(ThreadPoolExecutor.java:908)  
> > > > > > at java.lang.Thread.run(Thread.java:619)
> > 
> > > > > > I'm using the default configuration  
> > > > > > It works great on a linux box.  
> > > > > > Any idea what's happening?
> > 
> > > > > > Thanks,  
> > > > > > Tal

---

<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:24am UTC](https://discuss.elastic.co/t/error-when-running-multiple-nodes-on-the-same-vista-machine/2902/9 "2017-07-06T04:24:41Z")

</div>


