Support

Akeeba Backup for Joomla!

#38499 Update to J4 automated cli backup fails

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
4.2.7
PHP version
8.0.27
Akeeba Backup version
9.4.8

Latest post by nicholas on Friday, 17 February 2023 01:47 CST

jfischer

Hello,

Β 

My cron job fails to execute after updating to J4.

This is the message I get:

********** ERROR! **********

FOF: Model \Akeeba\Backup\Site\Model\Backup not found

Technical information:

Code: 500

File: /public_html/libraries/fof40/Factory/BasicFactory.php

Line: 301

Stack Trace:

#0 /public_html/libraries/fof40/Factory/BasicFactory.php(105): FOF40\Factory\BasicFactory->createModel('\\Akeeba\\Backup\\...', Array)

#1 /public_html/cli/akeeba-backup.php(75): FOF40\Factory\BasicFactory->model('Backup')

#2 /public_html/libraries/src/Application/CliApplication.php(254): AkeebaBackupCLI->doExecute()

#3 /public_html/cli/akeeba-backup.php(481): Joomla\CMS\Application\CliApplication->execute()

#4 {main}

Β 

nicholas
Akeeba Staff
Manager

The CRON job command line has changed in Akeeba Backup 9 for Joomla 4. We no longer ship our own CLI scripts, we use Joomla's CLI application (the file cli/joomla.php) which was introduced with the Joomla 4.0.0 release on August 17th, 2021.

Please go to Components, Akeeba Backup for Joomla, Schedule Automatic Backups and scroll down to see the new CRON command line.

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!

jfischer

My oversight. I forgot to change the php file in the command.

I had:

/public_html/cli/akeeba-backup.php akeeba:backup:take

Should be:

/public_html/cli/joomla.php akeeba:backup:take

Thank You.

Β 

Β 

nicholas
Akeeba Staff
Manager

You're welcome! And don't worry, it has happened to pretty much everybody at some point :)

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!

jfischer

Hello,

After getting the cli backup working, I noticed that the email notification that was sent in j3 is not sending in j4. The email notification is working for the admin tools file scanner. How do I set up for email notification of successful backups?

Β 

Β 

Β 

nicholas
Akeeba Staff
Manager

You will only get an email if something has changed, or there are files with a non-zero Threat Score not already marked as safe.

If you want to receive an email every time the scan runs you can remove the 1>/dev/null from the CRON job and set up your CRON jobs to email you when they run. Ask your host, it's usually an option on the same page of your hosting control panel where you set up the CRON jobs themselves.

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!

jfischer

I am getting the Emails from my server as the CRON job executes.

The email notification I was referring to was the one sent from the Joomla side.

nicholas
Akeeba Staff
Manager

Yes, we have stopped sending an email on every scan, we only send an email when something has changed, or there are files with a non-zero Threat Score not already marked as safe.

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!