Cannot restore snapshot

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Post Reply
IT_LAS
Posts: 27
Joined: Mon Dec 30, 2019 5:34 am

Cannot restore snapshot

Post by IT_LAS »

Hi,
I'm having a strange issue in my NLS cluster. I'm trying to restore an index from an snapshot and it shows the following error:

RemoteTransportException[[20020b72-2ff7-4b22-8b73-fc60bc719a48][inet[/<server_ip>:9300]][cluster:admin/snapshot/restore]]; nested: SnapshotMissingException[[NLSPRO:null] is missing]; nested: FileNotFoundException[/mnt/nlspron/snapshot-null (No such file or directory)];

This happens on both instances of the cluster.

Is it something related to permissions or firewall rules?
jsimon
Posts: 343
Joined: Wed Aug 23, 2023 11:27 am

Re: Cannot restore snapshot

Post by jsimon »

Hi @IT_LAS,

It actually looks like there is a bug with the UI right now that is sometimes causing snapshot names to fail to pass through to the backend, which is causing the "snapshot-null" name you're seeing in that error message. Since null is getting passed through as the name, Elasticsearch can't find an index to restore. I will escalate the priority of that bug fix, but in the meantime you should be able to work around this by running the restore command from the CLI.

To find the "curator-xxxxxxxxxxxxx" name for the restore command:

Code: Select all

curl -XGET "localhost:9200/_snapshot/<yourRep>/_all?pretty" -H 'Content-Type: application/json'
To Restore:

Code: Select all

curl -XPOST 'localhost:9200/_snapshot/<yourRepo>/curator-xxxxxxxxxxxxx/_restore' -H 'Content-Type: application/json'
Apologies for the inconvenience, let us know if you need any further assistance with this.
Post Reply