Support

Akeeba Backup for Joomla!

#27451 E-mail about failed auto backup is sent after next successful auto backup.

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Sunday, 30 April 2017 17:17 CDT

gba
Description of my issue:
I am running frontend backup via cronjob calls of a PHP script on a weekly basis.
In the backend options of Akeeba Backup I configured the e-mail send settings on successful/failed backup.
Over past few months sometimes the backup failed, but I did not get an e-mail notification.
Instead, after the next successful backup one week later, I get the success e-mail and right after it the fail e-mail.
Do you have any idea, why?
How can this be fixed?

Kind regards,
Gerald

dlb
Gerald,

The backup terminated suddenly and it wasn't able to finalize, even in a failed state. The next backup saw the unfinished record and marked it as failed, triggering the failed email. There is no way to avoid this since the backup is stopped and can't send the message.

What you can do is set another CRON job to check for stalled backups, that will see the unfinished record and report it to you. This second CRON job needs to be far enough after the backup job so that you are sure the failed backup test will never interrupt a running backup. You can find more information on the Check Backup Status function in the Schedule Automatic Backups area, it has it's own tab.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

gba
Hi!

Thank you for this information.
Now I tested the PHP code provided in the Check Backup Status tab.
But I do not get any e-mail.
What should happen to inform me?

And furthermore:
What is the options setting 'timeout for stuck backups' for?

Kind regards,
Gerald

dlb
Gerald,

That code only looks for "stalled" backups, not marked as successful or failed. So you are not normally going to get any output from it. If only works in the situation you described, where the backup has terminated abnormally and no further activity caused it to be marked as failed.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

dlb
The timeout value defines how long the backup is idle before it is considered dead.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

gba
I see.
Why does this not trigger the fail e-mail?

gba
Where do I find information about how to use the Check Backup Status functionality?

dlb
On the Schedule Automatic Backups screen, at the top are two tabs, the second one is Check Backups. You'll miss it if you're not looking for it.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

gba
I know, but where do I find information, on what this functionality does?
And how can I get a notification e-mail, if the backup got stuck?

nicholas
Akeeba Staff
Manager
The CRON job for the Check Backup Status:

i. is per backup profile; you need to create a different CRON job for each backup profile

ii. must run AFTER the expected end time of the backup and definitely later than at least the timeout for failed backups since the last backup step. If you run it before the timeout period the backup is still reported as "pending" and no email will be sent. Our documentation suggests running this at least 1 hour after the expected end of the backup.

iii. will NOT send an email for backups which have already been marked "failed". That is, if Akeeba Backup detected an error and stopped the backup with an error the Check Backup Status won't take that into account. The output of the backup CRON job has already told you that the backup failed. The Check Backup Status feature only looks for backups which halted unexpectedly, e.g. a PHP fatal error, the server killed the process, timeout etc. In these cases the backup failure is ungraceful and we cannot produce any output to indicate that something bad happened. That's why you need to run a separate CRON job to detect them.

See the documentation at https://www.akeebabackup.com/documentation/akeeba-backup-documentation/checking-for-failed-backups-automatically.html for more information.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!