Unable to recover from backup

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Unable to recover from backup

Post 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!
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Unable to recover from backup

Post 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]
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to recover from backup

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Unable to recover from backup

Post by CameronWP »

That was exactly the issue! Thanks!
Locked