# CCR error "Unable to initiate restore call for " on start replication

**URL:** https://forum.opensearch.org/t/ccr-error-unable-to-initiate-restore-call-for-on-start-replication/7879
**Category:** Cross-Cluster Replication
**Created:** [December 6, 2021, 6:50pm UTC](https://forum.opensearch.org/t/ccr-error-unable-to-initiate-restore-call-for-on-start-replication/7879 "2021-12-06T18:50:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ptrujillo](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@ptrujillo](https://forum.opensearch.org/u/ptrujillo)
#### Post date: [December 6, 2021, 6:50pm UTC](https://forum.opensearch.org/t/ccr-error-unable-to-initiate-restore-call-for-on-start-replication/7879/1 "2021-12-06T18:50:15Z")

</div>

I have installed two instances of opensearch with CCR following the steps in the following link [Get started - OpenSearch documentation](https://opensearch.org/docs/latest/replication-plugin/get-started/)  
The “/\_remote/info” command executed on the follower cluster returns correct:  
{“ClusterMaster”:{“connected”:true,“mode”:“sniff”,“seeds”:[“10.160.34.130:9301”],“num\_nodes\_connected”:1,“max\_connections\_per\_cluster”:3,“initial\_connect\_timeout”:“30s”,“skip\_unavailable”:false}}  
when I try to initialize the replication of an index:  
curl -XPUT -H “Content-Type: application/json” “[http://10.160.34.130:9232/\_plugins/\_replication/follower-01/\_start](http://10.160.34.130:9232/_plugins/_replication/follower-01/_start)” -d’  
{  
“leader\_alias”: “ClusterMaster”,  
“leader\_index”: “leader-01”,  
}’  
I get the following errors:

[2021-12-06T18:34:06,518][WARN][o.o.s.RestoreService] [nodefollow] [replication-remote-repo-ClusterMaster:replication-remote-snapshot] failed to restore snapshot  
org.opensearch.repositories.RepositoryMissingException: [replication-remote-repo-ClusterMaster] missing  
at org.opensearch.repositories.RepositoriesService.repository(RepositoriesService.java:474) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.snapshots.RestoreService.restoreSnapshot(RestoreService.java:207) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:108) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:54) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.support.master.TransportMasterNodeAction.masterOperation(TransportMasterNodeAction.java:124) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:197) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.ActionRunnable$2.doRun(ActionRunnable.java:86) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:792) [opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:50) [opensearch-1.2.0.jar:1.2.0]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]  
at java.lang.Thread.run(Thread.java:832) [?:?]  
[2021-12-06T18:34:06,519][ERROR][o.o.r.t.i.IndexReplicationTask] [nodefollow] [follower-01] Unable to initiate restore call for follower-01 from ClusterMaster:leader-01  
org.opensearch.repositories.RepositoryMissingException: [replication-remote-repo-ClusterMaster] missing  
at org.opensearch.repositories.RepositoriesService.repository(RepositoriesService.java:474) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.snapshots.RestoreService.restoreSnapshot(RestoreService.java:207) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:108) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.admin.cluster.snapshots.restore.TransportRestoreSnapshotAction.masterOperation(TransportRestoreSnapshotAction.java:54) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.support.master.TransportMasterNodeAction.masterOperation(TransportMasterNodeAction.java:124) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:197) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.action.ActionRunnable$2.doRun(ActionRunnable.java:86) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:792) ~[opensearch-1.2.0.jar:1.2.0]  
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:50) ~[opensearch-1.2.0.jar:1.2.0]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]  
at java.lang.Thread.run(Thread.java:832) [?:?]

---

<div class="post-metadata">

### Author: ![saikaranam](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@saikaranam](https://forum.opensearch.org/u/saikaranam)
#### Post date: [December 14, 2021, 4:53pm UTC](https://forum.opensearch.org/t/ccr-error-unable-to-initiate-restore-call-for-on-start-replication/7879/2 "2021-12-14T16:53:36Z")

</div>

@ptrujillo Could you please confirm that the pre-requisites are met as mentioned in the doc: [Get started - OpenSearch documentation](https://opensearch.org/docs/latest/replication-plugin/get-started/#prerequisites)?

- All the nodes should have `remote_cluster_client` associated with them to perform replication.

---

<div class="post-metadata">

### Author: ![ptrujillo](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@ptrujillo](https://forum.opensearch.org/u/ptrujillo)
#### Post date: [December 14, 2021, 5:18pm UTC](https://forum.opensearch.org/t/ccr-error-unable-to-initiate-restore-call-for-on-start-replication/7879/3 "2021-12-14T17:18:26Z")

</div>

@saikaranam thanks for you reply.  
My problen was that index have initial data and I need to create a snapshot to initialize de replication.  
Thanks.
