Page 1 of 1

Unable to recover from backup

Posted: Wed Jul 11, 2018 11:33 pm
by CameronWP
Hello;

I had a failure due to running out of disk space. I had good system backups from this week and followed the procedure to recover them. When I attempt to login post restore, nagiosadmin doesn't work. I added a recovery user from another thread and found that although my data indices are still there, there are no dashboards, no users and the license is gone. I can appreciate that it is due to the nagioslogserver index not being valid but I am not sure why if there are no errors being thrown when restoring. I looked in the actual backup file and found all of my queries are there as well so I assume my other data is there as well. How would I go about resolving this. Thanks!

Re: Unable to recover from backup

Posted: Thu Jul 12, 2018 12:11 am
by CameronWP
Here is a listing when restoring a system backup.

Starting Nagios Log Server Restore
----------------------------------
Backup folder: /store/backups/nagioslogserver/nagioslogserver.2018-07-07.1530979586

Extracting the backups.
Creating restore jobs for indexes.
Restoring: nagioslogserver
. done.Restoring: kibana-int
. done.Restoring: nagioslogserver_log
. done.Restoring: nagioslogserver_history
. done.All indexes restored.
Resetting backend jobs...
done.

Restore Complete!

The only messages in the elasticsearch log is:

observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]

Re: Unable to recover from backup

Posted: Thu Jul 12, 2018 10:25 am
by cdienger
I've found that having unassigned shards can sometimes prevent the backups from importing. Go through https://support.nagios.com/kb/article/n ... th-90.html to find unassigned shards and and attempt to assign them or close their indexes:

curl -XPOST 'http://localhost:9200/indexnamehere/_close'

and then try to import the backup.

Re: Unable to recover from backup

Posted: Thu Jul 12, 2018 12:09 pm
by CameronWP
That was exactly the issue! Thanks!