I just found that my backup that has been working for years, has started failing. I get the following message when running the backup manually via the GUI.
Saving Backup 2…
Error: could not save backup. Aborting!
Initializing Backup 2
Backup Lock acquired!
Running pre-backup hooks…
Adding items…
Complete (Connection closed)
I did notice that the backup does start saving some files in /var/spool/asterisk/tmp. But does not copy them to the /var/spool/asterisk/backup folder.
There is enough space on the drive. The backups are only about 1.5 GB, and the freespace available is about 30 GB.
FreePBX 13. I tried that command as well. I started taking away backup items one by one to see if it was erroring on specific things. It looks like the CDR database is the culprit. If I backup the CDRs, that’s when I get that error. Any ideas?
HI ,
please check the log file which is there in ASTLOGDIR / backup.log.
you may get some reason why is failing . Also where whether you cdr database is corrupted or not . if it is please repair it and try again
August 15, 2019, 5:27 am - Backup Lock acquired!
August 15, 2019, 5:27 am - Running pre-backup hooks…
August 15, 2019, 5:27 am - Adding items…
August 15, 2019, 5:30 am - Building manifest…
@jphilip
This time, I see an error in the backup log. See below.
August 20, 2019, 6:27 am - Backup Lock acquired!
August 20, 2019, 6:27 am - Running pre-backup hooks…
August 20, 2019, 6:27 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Backup Lock acquired!
August 20, 2019, 6:27 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Running pre-backup hooks…
August 20, 2019, 6:27 am - Adding items…
August 20, 2019, 6:27 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Adding items…
August 20, 2019, 6:31 am - Building manifest…
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Building manifest…
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: PHP Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/libraries/modulefunctions.class.php on line 2400
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Whoops\Exception\ErrorException: Cannot use object of type DB_Error as array in file /var/www/html/admin/libraries/modulefunctions.class.php on line 2400
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Stack trace:
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: 1. () /var/www/html/admin/libraries/modulefunctions.class.php:2400
August 20, 2019, 6:31 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: END