FreePBX | Register | Issues | Wiki | Portal | Support

Backup erroring

backup
Tags: #<Tag:0x00007fafc33936c0>

(Lucas Ryan) #1

Hello,

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.

Does anyone know where to look next?


(Lucas Ryan) #2

Anyone else having this issue? Or perhaps someone has a suggestion as to where to look next?


(Philip Joseph) #3

What version of freepbx you are using ?

just try command ‘fwconsole chown’ before backup run


(Lucas Ryan) #4

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?


(Lucas Ryan) #5

@jphilip Any other ideas to look at?


(Philip Joseph) #6

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


(Lucas Ryan) #7

The only thing that is there is:

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…


(Lucas Ryan) #8

@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