Cannot restore open indices in new empty cluster

Hello,

I am trying to restore a snapshot on a new, empty cluster, but I get this error:

[restore-old:snapshot-2024.01.09-5ebjtwcnqksvliv3h9tcug/r4dfaUrJQXyQ0xxVa0OE8Q] cannot restore index [logstash-2023.09.02] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name

The thing is, this is a new, empty cluster, and this index appears only after starting the restore procedure.
I tried to remove all the indices and retry restore with different options multiple times, but nothing seems to work, could it be an issue in the snapshot itself?

The snapshot comes from a cluster running 8.3.2, and the new one is running 8.11.0

The snapshot repository is configured in the new cluster as read-only

image

I realized that even if there is an error for a particular index, it does not mean the restore procedure failed for all of them. If you start the restore procedure multiple times, it will fail because some indices are still being restored from the previous attempts, even though there were errors.

2 Likes

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