# Copy Elasticseach from one machine to another

**URL:** <https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829>\
**Category:** Elasticsearch\
**Created:** [November 9, 2011, 5:42pm UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829 "2011-11-09T17:42:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [November 9, 2011, 5:42pm UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/1 "2011-11-09T17:42:00Z")

</div>

Hi All,

I have just copied ElasticSearch inclusing Index from on machine to  
another in different network.  
The copy is working fine on the same machine but facing trouble while  
running the same copy on other machine.

Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117

Please suggest. Thanks

Regards,  
Pulkit Agrawal

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [November 9, 2011, 8:08pm UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/2 "2011-11-09T20:08:18Z")

</div>

What is the exact stack trace? And did you copy it via command line or  
via scan search type + reindexing (recommended) ?

Peter.

On Nov 9, 6:42 pm, Pulkit Agrawal [pulkitdot...@gmail.com](mailto:pulkitdot...@gmail.com) wrote:

> Hi All,
> 
> I have just copied Elasticsearch inclusing Index from on machine to  
> another in different network.  
> The copy is working fine on the same machine but facing trouble while  
> running the same copy on other machine.
> 
> Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117
> 
> Please suggest. Thanks
> 
> Regards,  
> Pulkit Agrawal

---

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [November 9, 2011, 8:19pm UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/3 "2011-11-09T20:19:39Z")

</div>

_Here is the complete Stack Trace_

java.lang.ArrayIndexOutOfBoundsException: -1117  
at  
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
ecoder.java:172)  
at  
org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
ecoder.java:144)  
at  
org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre  
amInput.java:215)  
at  
org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput  
.java:115)  
at  
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo  
aded(ByteSourceBootstrapper.java:507)  
at  
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn  
coding(ByteSourceBootstrapper.java:129)  
at  
org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc  
tParser(ByteSourceBootstrapper.java:224)  
at  
org.elasticsearch.common.jackson.JsonFactory.\_createJsonParser(JsonFa  
ctory.java:785)  
at  
org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac  
tory.java:561)  
at  
org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json  
XContent.java:80)  
at  
org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG  
ateway.java:376)  
at  
org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV  
ersion(LocalGateway.java:311)  
at  
org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate  
way.java:282)  
at  
org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav  
a:128)  
at  
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
bstractLifecycleComponent.java:80)  
at  
org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:  
109)  
at  
org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
bstractLifecycleComponent.java:80)  
at  
org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:  
187)  
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)  
at  
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:28)

_Note: I have copied using Window copy paste utility._

Regards,  
Pulkit Agrawal

On Thu, Nov 10, 2011 at 1:38 AM, Karussell [tableyourtime@googlemail.com](mailto:tableyourtime@googlemail.com)wrote:

> What is the exact stack trace? And did you copy it via command line or  
> via scan search type + reindexing (recommended) ?
> 
> Peter.
> 
> On Nov 9, 6:42 pm, Pulkit Agrawal [pulkitdot...@gmail.com](mailto:pulkitdot...@gmail.com) wrote:
> 
> > Hi All,
> > 
> > I have just copied Elasticsearch inclusing Index from on machine to  
> > another in different network.  
> > The copy is working fine on the same machine but facing trouble while  
> > running the same copy on other machine.
> > 
> > Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117
> > 
> > Please suggest. Thanks
> > 
> > Regards,  
> > Pulkit Agrawal

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [November 10, 2011, 8:02am UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/4 "2011-11-10T08:02:33Z")

</div>

did you flush the data before copying?

have a look:

> **[How to backup ElasticSearch with rsync](https://karussell.wordpress.com/2011/07/10/how-to-backup-elasticsearch-with-rsync/)**
>
> Although there is a gateway feature implemented in ElasticSearch which basically recovers your index on start if it is corrupted or similar it is wise to create backups if there are bugs in Lucene …

Peter.

On Nov 9, 9:19 pm, Pulkit Agrawal [pulkitdot...@gmail.com](mailto:pulkitdot...@gmail.com) wrote:

> _Here is the complete Stack Trace_
> 
> java.lang.ArrayIndexOutOfBoundsException: -1117  
> at  
> org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
> ecoder.java:172)  
> at  
> org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
> ecoder.java:144)  
> at  
> org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre  
> amInput.java:215)  
> at  
> org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput  
> .java:115)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo  
> aded(ByteSourceBootstrapper.java:507)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn  
> coding(ByteSourceBootstrapper.java:129)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc  
> tParser(ByteSourceBootstrapper.java:224)  
> at  
> org.elasticsearch.common.jackson.JsonFactory.\_createJsonParser(JsonFa  
> ctory.java:785)  
> at  
> org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac  
> tory.java:561)  
> at  
> org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json  
> XContent.java:80)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG  
> ateway.java:376)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV  
> ersion(LocalGateway.java:311)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate  
> way.java:282)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav  
> a:128)  
> at  
> org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
> bstractLifecycleComponent.java:80)  
> at  
> org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:  
> 109)  
> at  
> org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
> bstractLifecycleComponent.java:80)  
> at  
> org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:  
> 187)  
> at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)  
> at  
> org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:28)
> 
> _Note: I have copied using Window copy paste utility._
> 
> Regards,  
> Pulkit Agrawal
> 
> On Thu, Nov 10, 2011 at 1:38 AM, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com)wrote:
> 
> > What is the exact stack trace? And did you copy it via command line or  
> > via scan search type + reindexing (recommended) ?
> 
> > Peter.
> 
> > On Nov 9, 6:42 pm, Pulkit Agrawal [pulkitdot...@gmail.com](mailto:pulkitdot...@gmail.com) wrote:
> > 
> > > Hi All,
> 
> > > I have just copied Elasticsearch inclusing Index from on machine to  
> > > another in different network.  
> > > The copy is working fine on the same machine but facing trouble while  
> > > running the same copy on other machine.
> 
> > > Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117
> 
> > > Please suggest. Thanks
> 
> > > Regards,  
> > > Pulkit Agrawal

---

<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:** [November 13, 2011, 7:04am UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/5 "2011-11-13T07:04:53Z")

</div>

Seems like the copy did not work properly....

On Wed, Nov 9, 2011 at 10:19 PM, Pulkit Agrawal [pulkitdotcom@gmail.com](mailto:pulkitdotcom@gmail.com)wrote:

> _Here is the complete Stack Trace_
> 
> java.lang.ArrayIndexOutOfBoundsException: -1117  
> at  
> org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
> ecoder.java:172)  
> at  
> org.elasticsearch.common.compress.lzf.LZFDecoder.decompressChunk(LZFD  
> ecoder.java:144)  
> at  
> org.elasticsearch.common.io.stream.LZFStreamInput.readyBuffer(LZFStre  
> amInput.java:215)  
> at  
> org.elasticsearch.common.io.stream.LZFStreamInput.read(LZFStreamInput  
> .java:115)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.ensureLo  
> aded(ByteSourceBootstrapper.java:507)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.detectEn  
> coding(ByteSourceBootstrapper.java:129)  
> at  
> org.elasticsearch.common.jackson.impl.ByteSourceBootstrapper.construc  
> tParser(ByteSourceBootstrapper.java:224)  
> at  
> org.elasticsearch.common.jackson.JsonFactory.\_createJsonParser(JsonFa  
> ctory.java:785)  
> at  
> org.elasticsearch.common.jackson.JsonFactory.createJsonParser(JsonFac  
> tory.java:561)  
> at  
> org.elasticsearch.common.xcontent.json.JsonXContent.createParser(Json  
> XContent.java:80)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.readStartedShards(LocalG  
> ateway.java:376)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.findLatestStartedShardsV  
> ersion(LocalGateway.java:311)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.lazyInitialize(LocalGate  
> way.java:282)  
> at  
> org.elasticsearch.gateway.local.LocalGateway.doStart(LocalGateway.jav  
> a:128)  
> at  
> org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
> bstractLifecycleComponent.java:80)  
> at  
> org.elasticsearch.gateway.GatewayService.doStart(GatewayService.java:  
> 109)  
> at  
> org.elasticsearch.common.component.AbstractLifecycleComponent.start(A  
> bstractLifecycleComponent.java:80)  
> at  
> org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:  
> 187)  
> at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:122)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:192)  
> at  
> org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:28)
> 
> _Note: I have copied using Window copy paste utility._
> 
> Regards,  
> Pulkit Agrawal
> 
> On Thu, Nov 10, 2011 at 1:38 AM, Karussell [tableyourtime@googlemail.com](mailto:tableyourtime@googlemail.com)wrote:
> 
> > What is the exact stack trace? And did you copy it via command line or  
> > via scan search type + reindexing (recommended) ?
> > 
> > Peter.
> > 
> > On Nov 9, 6:42 pm, Pulkit Agrawal [pulkitdot...@gmail.com](mailto:pulkitdot...@gmail.com) wrote:
> > 
> > > Hi All,
> > > 
> > > I have just copied Elasticsearch inclusing Index from on machine to  
> > > another in different network.  
> > > The copy is working fine on the same machine but facing trouble while  
> > > running the same copy on other machine.
> > > 
> > > Error I got : java.lang.ArrayIndexOutOfBoundsException: -1117
> > > 
> > > Please suggest. Thanks
> > > 
> > > Regards,  
> > > Pulkit Agrawal

---

<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:48am UTC](https://discuss.elastic.co/t/copy-elasticseach-from-one-machine-to-another/5829/6 "2017-07-06T03:48:59Z")

</div>


