Hi,
TL;DR;
Tried to restore a snapshot I did before re-installing the machine but ended up with elasticsearch complaining the snapshot is "empty"
What happened:
I had to set up a machine from scratch (single instance ELK installation, no cluster running under Ubuntu). So I created a snapshot, tar-ed the resulting directory and put it in a safe place on another machine. After setting up the machine (OS, ELK 8.17.0) I wanted to restore the snapshot only to find out that elasticsearch.
I "tar xpf"-ed the snapshot tar (~31GB) I created on the "old" installation (also Ubuntu), made sure it's owned by the elasticsearch-user:
drwxr-xr-x 3 elasticsearch elasticsearch 4096 Nov 14 12:23 Zappy-snapshot-Repo
Next I added the path the directory is in to /etc/elasticsearch/elasticsearch.yml
, i.e.
path.repo: /tmp/Zappy-snapshot-Repo
Next I went to kibana and added the Repo. No errors here, but I got a message that the Repo has no snapshots:
Same in the developer console
GET _snapshot/
gives
{
"My-Test-Repo": {
"type": "fs",
"settings": {
"location": "/tmp/Zappy-snapshot-Repo"
}
}
}
but
GET _snapshot/_status
gives
{
"snapshots": []
}
i.e. "empty"
No error messages whatsoever in /var/log/elasticsearch/elasticsearch.log
Also tried with debuging, i.e.
PUT _cluster/settings
{
"transient": {
"logger.org.elasticsearch.snapshots": "DEBUG"
}
}
Still no useful information in elasticsearch.log.
Any ideas what could be wrong, i.e. why I can't re-import the snapshot?