Support

Akeeba Backup for Joomla!

#42578 Backup no longer running

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
5.4.1
PHP version
8.1.33
Akeeba Backup version
10.2.1

Latest post by nicholas on Monday, 22 December 2025 06:18 CST

retoturnverein

Backup is no longer running and I'm not aware of any changes on my end. I checked the doc for changes in the command execution, still the same as I currently use it.

Program start:

$myphpprog -d memory_limit=128M /home/$mysourcedomain/public_html/cli/joomla.php akeeba:backup:take --profile=1

Output:

- Akeeba Backup start
Symfony\Component\ErrorHandler\Error\UndefinedMethodError^ {#1068
#message: "Attempted to call an undefined method named "setCLICommandFactory" of class "Akeeba\Plugin\Console\AkeebaBackup\Extension\AkeebaBackup"."
#code: 0
#file: "./public_html/plugins/console/akeebabackup/services/provider.php"
#line: 55
trace: {
./public_html/plugins/console/akeebabackup/services/provider.php:55 {
Joomla\DI\ServiceProviderInterface@anonymous\x00/home/fotooase/public_html/plugins/console/akeebabackup/services/provider.php:27$df->{closure}^
⺠$plugin->setApplication(Factory::getApplication());
⺠$plugin->setCLICommandFactory($container->get(CommandFactoryInterface::class));
âº
}
./public_html/libraries/vendor/joomla/di/src/ContainerResource.php:168 { â¦}
./public_html/libraries/vendor/joomla/di/src/Container.php:95 { â¦}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:177 { â¦}
./public_html/libraries/src/Extension/ExtensionManagerTrait.php:99 { â¦}
./public_html/libraries/src/Plugin/PluginHelper.php:232 { â¦}
./public_html/libraries/src/Plugin/PluginHelper.php:192 { â¦}
./public_html/libraries/src/Application/ConsoleApplication.php:253 { â¦}
./public_html/cli/joomla.php:79 { â¦}
}
}
!!! Backup ended with error 255 !!!

 

nicholas
Akeeba Staff
Manager

It looks like you have a mix of files from different versions. Try installing Akeeba Backup twice in a row, without uninstalling it before or in between.

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!

retoturnverein

I installed the program twice, did not help.

I use this program for years now. It was successful a week ago and now both domains I use this program to do backup, they're failing.

I tried command line and interactive backup, files attached.

Unix backup directory chmod 775, ulimit -f = unlimited - cleaned up any files, empty now

clueless I am

 

nicholas
Akeeba Staff
Manager

The thing is, the error message does not make sense unless you have a mixed set of files. Namely, I expect that the plugins/console/akeebabackup/services/provider.php file is updated, but the plugins/console/akeebabackup/src/Extension/AkeebaBackup.php file is not. This is one of two ways PHP can be throwing this error.

Please open the file plugins/console/akeebabackup/src/Extension/AkeebaBackup.php and check line 40. It should read exactly this:

public function setCLICommandFactory(CommandFactoryInterface $factory)

Moreover, please open the file plugins/console/akeebabackup/services/provider.php and check lines 48 to 55. They should read exactly this:

$plugin = version_compare(JVERSION, '5.4.0', 'ge')
? new AkeebaBackup($config)
: new AkeebaBackup(
$subject, $config
);

$plugin->setApplication(Factory::getApplication());
$plugin->setCLICommandFactory($container->get(CommandFactoryInterface::class));

If either file's lines are different it means that the plugin –which is part of the installation package– has not been updated properly. Delete the folder plugins/console/akeebabackup and install Akeeba Backup twice in a row, without uninstalling it before or in between. Then check the files again; their contents should be as I described above.

The other reason PHP might be freaking out is if your host has set up PHP's OPcache code cache in a way which does not allow Joomla to reset it when updating an extension. If the files are correct as per the information I gave you above but you still have the exact same problem you stated (the error message MUST be Attempted to call an undefined method named "setCLICommandFactory" of class "Akeeba\Plugin\Console\AkeebaBackup\Extension\AkeebaBackup".”) then contact your host and ask them to reset OPcache.

To clarify, OPcache can be configured in such a way that your server "remembers" the contents of .php files without reading them again from the storage. This makes your site faster, since PHP does not have to read and parse each .php file being used every time someone accesses a page on your site, or every time you run a CLI script. However, this also means that if the .php files chance, PHP won't know about it (always depending on server configuration!). This is a problem when updating Joomla and extensions; the new code is there, but your server is unaware. At best, you get an immediate error like you have here, alerting you to the problem. At worst, your server still runs an older version of the software with unknown security and stability consequences. Joomla DOES try to tell your server to reset the OPcache for each file it installs during an update BUT it's possible that a bug in Joomla or a configuration setting in your server prevent that from taking effect. That's why I am saying that you may have to ask your host to reset the OPcache.

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!