Snapshot in s3 bucket not seen by other cluster

I'm using an s3 repository to snapshot a cluster. I was hoping to restore the snapshot on a remote cluster by registering a repository pointing to the same bucket. But the snapshot I took from he first cluster remains invisible to the second one.
Here are the comands I used:
To take a snapshot from cluster 1:

curl -XPUT "localhost:9200/_snapshot/my_repo/full_2021.07.28_ok?wait_for_completion=true" 
-H 'Content-Type: application/json' 
-d '
{"indices": "my_index-*",
    "ignore_unavailable": true,
    "include_global_state": false

Then i could verify its presence with:

curl localhost:9200/_snapshot/my_repo/my_snapshot

Then if I check the repo on cluster 2 (same request), I get:

  "snapshots": []

What am I missing here ?

A guess: you forgot to register the repository as read-only on cluster 2. Never register a repository as writeable from multiple clusters, it will lead to data loss. From the docs:

If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository. All other clusters connected to that repository should set the repository to readonly mode.


I guess you're right. I'll check it out and keep you posted !

That was the right answer.Thank you, it works fine, now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.