Indices don't have primary shards while taking snapshot

Hi ,

I am trying to take snapshot using

curl -X PUT "http://localhost:9200/_snapshot/repo1/snap1?wait_for_completion=true&pretty" -H 'Content-Type: application/json' -d"
{
    \"indices\": [ \"apm-7.10.1-transaction-000002\"],
    \"ignore_unavailable\": true,
    \"include_global_state\": false
}
"

I am getting error as :

{
  "error" : {
"root_cause" : [
  {
    "type" : "snapshot_exception",
    "reason" : "[repo1:snap1/3MfwBD5vTBCKY_a1pzk_OA] Indices don't have primary shards [apm-7.10.1-transaction-000002]"
  }
],
"type" : "snapshot_exception",
"reason" : "[repo1:snap1/3MfwBD5vTBCKY_a1pzk_OA] Indices don't have primary shards [apm-7.10.1-transaction-000002]"
  },
  "status" : 500
}

health status of indices :

apm-7.10.1-transaction-000002 0 p STARTED
apm-7.10.1-transaction-000002 0 r UNASSIGNED

Still I can able to see the data in discover page. Is there a way to overcome this issue to proceed with snapshot creation.

PS : First time I can able to create the snapshot using the same request. After sometime I tried to take the snapshot for the same index, I am getting this error.

Thanks

I think you need to wait until it is at the open status before it'll allow a snapshot.

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