Backup exception issue

PBX Version: 10.13.66-11
Tried running backup (save and run). Currently set to backup to ftp server. Checked backup server and there is no .gz file from running today. Also checked ftp server for free disk space and there is > 600GB free

Saving Backup 2…Initializing Backup 2
Backup Lock acquired!
Running pre-backup hooks…
Adding items…
Building manifest…
Creating backup…
Storing backup…
PHP Fatal error: Call to a member function directoryExists() on a non-object in /var/www/html/admin/modules/backup/ on line 423
Whoops\Exception\ErrorException: Call to a member function directoryExists() on a non-object in file /var/www/html/admin/modules/backup/ on line 423
Stack trace:

  1. () /var/www/html/admin/modules/backup/

Module admin, check shows backup up to date.
Any idea how to fix this?


@Hawkeye What version of Backup & Restore are you running?

this should be corrected in the next release… It means you likely have an auth error, or an assumption was incorrect. This section of code was redone in the next release so assumptions are a bit different.

It looks like a new version is in edge.

fwconsole ma --edge upgrade backup

Version of backup module =

I will try what you wrote TheJames

# fwconsole ma --edge upgrade backup
Edge repository temporarily enabled
No repos specified, using: [standard,commercial] from last GUI settings

Starting backup download..
Processing backup
 415408/415408 [============================] 100%
Finished downloading
Module backup successfully downloaded
Generating CSS...Done
Module backup successfully installed
Updating Hooks...Done

Now to try backup again

Saving Backup 2...done!
sh: /var/lib/asterisk/bin/backup.php: Permission denied

lets try fwconsole chown

Initializing Backup 2
Backup Lock acquired!
Running pre-backup hooks...
Adding items...
Building manifest...
Creating backup...
Storing backup...
Saving file to remote ftp
Running post-backup hooks...
Backup successfully completed!

Thank you for your help!