Page 1 of 1

Trouble Restoring to RHEL8 from RHEL7 Backup

Posted: Wed Jul 10, 2024 8:35 am
by KarenJ
I need some assistance doing a restore. I am running Nagios XI 2024R1.1.1 on both systems. Our prod system is on RHEL7, our test system is RHEL8. I'm trying to restore the test box from a prod box backup. This is what I get:

[root@AWPPLCOLEDMOI02 ~]# /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1720614651.tar.gz

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
TS=1720618190
Extracting backup to /store/backups/nagiosxi/1720618190-restore...

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
In /store/backups/nagiosxi/1720618190-restore/xi-backup-1720614651-aIRZVl4Qu4yrEimVXssA...
Unable to find files to restore in /store/backups/nagiosxi/1720618190-restore/xi-backup-1720614651-aIRZVl4Qu4yrEimVXssA

Any ideas? Thanks!
Karen

Re: Trouble Restoring to RHEL8 from RHEL7 Backup

Posted: Wed Jul 10, 2024 9:12 am
by gwesterman
HI @KarenJ,

The first thing I would check is if the tar file is incomplete or corrupt. Did you run out of disk space during the backup?

I would also try running restore_xi.sh from the scripts directory.

Let us know what you find.

Thank you!