Support

Akeeba Backup for Joomla!

#35495 BackupOnUpdate not shown/run

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 infopunkt on Tuesday, 13 July 2021 05:11 CDT

infopunkt

BackupOnUpdate plugin is enabled.

No BackupOnUpdate message is shown above the Joomla-Update (and also no backup triggered before the J!update to 3.9.28)

This is only with Akeeba8.0.6

Sites with still Akeeba8.0.4 are showing the BackUpOnUpdate (and running the backup) as expected.

nicholas
Akeeba Staff
Manager

The plugin has not changed since 8.0.1. Please make sure it's enabled.

For what it's worth, I was updating my development and test sites on my laptop just an hour ago — I hadn't touched it for two weeks. The test sites are all running Akeeba Backup Professional 8.0.6, I did see the backup on update message above the Joomla Update page and the backup before the update did run.

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!

infopunkt

Digging deeper:

on all affected sites the BackupOnUpdate plugin is enabled, but if trying to open/edit this plugin it's throwing

"The file backuponupdate.xml could not be found."

And yes - the folder plugins/system/backuponupdate is missing.

 

Downloading and re-installing AkeebaPro8.0.6 solves the issue.

 

But how did this folder vanish?

The plugin was definitvely running before, I can see several "Automatic backup before updating Joomla..." on these sites.

 

nicholas
Akeeba Staff
Manager

If the entire folder is missing the only explanation is Joomla failed to copy the updated files the first time it tried installing the updated version of the plugin (packaged with the rest of the extensions included in the Akeeba Backup package). This is one of the issue I have been reporting to Joomla for years (I first saw it around 2007, when extensions updates became possible in Joomla). I have seen it with other extensions too. It's proven very challenging to reproduce which is why it has not been fixed yet.

I have a hunch on where it might stem from but I can't figure out the conditions to trigger the problem so I can demonstrate it and get it fixed. When Joomla installs an extension update it deletes the files and folders included in the extension's manifest file (the XML file). Then it copies the new version's files over. If there is a failure in file copying there is no rollback; the original files are already deleted. It's also possible that there is no error displayed. The only way I can think of triggering this issue is having the Joomla temporary directory contents deleted in the few short milliseconds to a few seconds (in the single digits, even on slow shared hosting) between Joomla starting to delete old extension files and starting copying the new extension files. So my best guess is that this is perfectly possible and can be reasonably explained but extremely rare and hard to reproduce.

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!

infopunkt

Ok.

I found an error message "JFolder: :delete: Path is not a folder. Path: /home....plugins/system/aklazy" (while updating from or to Akeeba8.0.2) in my notices. I ignored it because Akeeba itself was updated and the Backup Lazy Scheduling is unpublished anyway.

 

And I had several sites (I don't know if these were the affected ones) with difficulties to update AkeebaPro at some point. I had to clear J! cache and re-save Akeeba options several times before it could access the Pro version update link (keys didn't change at all).

 

So if this can give you a hint...

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!