Page 2 of 2

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 4:59 am
by WillemDH
Tom,

Solved the permission issue. But I'm still having problems:

Code: Select all

tail -f /usr/local/nagiosxi/var/components/scheduledbackups.log
04-07-2015 11:26:01 DEBUG: Running scheduled FTP backup ...
04-07-2015 11:26:01 DEBUG: Sending create local backup command to CmdSubsystem
04-07-2015 11:50:10 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
While getting the error "04-07-2015 11:50:10 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist", the backup was in fact still running. It took another 8 minutes before the local backup was created. So Like I said before I'm pretty sure the script is trying to ftp while the backup is not yet finished...

Grtz

Willem

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 10:10 am
by lmiltchev
How long does it usually take to do the local backup? You can try removing "half-way-done" backups from the "/store/backups/nagiosxi/" (if you have any), then specifying a timeout for the scheduled backups by adding the following line to "/usr/local/nagiosxi/html/config.inc.php":

Code: Select all

$cfg['backup_timeout'] = 3600;

Note: This is just an example. You can use a different value, depending on your environment.

Restart apache so that changes can take effect:

Code: Select all

service httpd restart
Schedule a new FTP backup and see if the issue is fixed.

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 2:53 pm
by WillemDH
Last time I check, it was about 29 minutes it took to complete. But as said, it seems to me the local created backup is in fact complete. It is just trying to ftp before the backup is completed, hence the file does not yet exists.. I'll test you solution tomorrow though.

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 3:05 pm
by cmerchant
I will keep this thread open. Keep us updated.

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 3:22 pm
by snapon_admin
Willem, just FYI we had the same problem you're having but with SSH. We don't use FTP, we just SSH our backups to another server, but our backup also takes awhile (~40-60 minutes) so it would close the SSH session before the backup was completed. I modified the backup timeout option to something like 90 minutes and that solved our issue, so hopefully it'll work for you and FTP as well.

Re: ftp backup stopped working

Posted: Tue Apr 07, 2015 4:52 pm
by cmerchant
Thanks for the input on that timeout parameter. We'll let Willem give us an update when his backups run in the am. Thanks.

Re: ftp backup stopped working

Posted: Wed Apr 08, 2015 9:07 am
by WillemDH
It seems adding

Code: Select all

$cfg['backup_timeout'] = 3600;
solved the issue. Please close this thread. It might be a good idea to set the above timeout by default?

Thanks all.

Willem