Support

Akeeba Backup for Joomla!

#8539 [FIXED] CLI enters endless loop loading db - depends on active profile

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 nicholas on Friday, 30 July 2010 08:01 CDT

user12388
Using SVN192pro, I experienced and endless loop in native CLI runs when the backing up of a database is included in the profile indicated to the cron job.
The loop begins before the Back Up Administrator Table even opens a new record. In addition the log file continuously fills up with a repetition of the following lines:
[100724 22:50:03] *** Batching of engine steps finished. I will now return control to the caller.
[100724 22:50:03] Sleeping for 1999.253988266 msec, using usleep()
[100724 22:50:05] Saving Kettenrad instance cli
[100724 22:50:05] Kettenrad :: Attempting to load from database
[100724 22:50:05] -- Loaded stored Akeeba Factory
[100724 22:50:05] *** Batching of engine steps finished. I will now return control to the caller.
[100724 22:50:05] Sleeping for 1999.3131160736 msec, using usleep()
[100724 22:50:07] Saving Kettenrad instance cli
[100724 22:50:07] Kettenrad :: Attempting to load from database
[100724 22:50:07] -- Loaded stored Akeeba Factory
and so on endlessly
The only way I could break the server out of the loop was to rename the tmp folder causing a runtime error.

As this problem did not occur on every run I tested (setting up several profiles), I ran quite a number of tests and in the end was able to identify:
1. The problem only occurred in profiles that included a database backup (i.e not in "files only" profiles).
2. That if the active profile in the backend Akeeba interface did not include a database in the definitions, then the cron job for a profile that included a database would enter the endless loop. Alternately if the active profile in the back end was that of a profile that included a database (i.e full site bu), then the cron job would run OK even if it was not for the same profile.

I was logged into the back end while the cron jobs ran.

I hope this helps flush out a bug.

David

dlb
I'll flag it for Nicholas. :)


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)

user12388
Thanks Dale.

I checked again today and found that the CLI initiated process has been running endlessly for 17 hours after as scheduled database backup. In fact a full site backup was created which is not according to the profile. I could only stop the process by renaming the akeeba component folder in the backend.

All this happened when the backend was not logged in and does not seem to be affected by the active profile setting.

nicholas
Akeeba Staff
Manager
Thank you! There is actually a bug which will not clear dangling back-end backups (i.e. a backup which wasn't cleaned up properly by he system). I'll release a new dev release either later today or tomorrow to fix that.

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!

user12388
Good news! I'm looking forward for the dev release.

Thanks,
David

nicholas
Akeeba Staff
Manager
I just published SVN198. Feel free to test and report your results :)

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!

user12388
I installed and tested the CLI with SVN198 and it appears to be working fine.
I will continue to monitor it on scheduled backups.

Thanks,
David

nicholas
Akeeba Staff
Manager
Thank you!

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!

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!