EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.
Hi there,
We have other Joomla 4 websites working well. Therefore we understood that we need to enable the plugin and use cron job to call the corresponding cli file to do the backup. However, this is not working for one of the website. We could successfully run the backup at the backend and complete it. However, we could not trigger the backup via cron job or CLI.
Here is the command line:
/usr/local/bin/php /home/example.com/cli/joomla.php akeeba:backup:take --profile=2
We got this from the cron job email:
InvalidArgumentException {#738 #message: "A router name must be set in console application." #code: 0 #file: "./example.com/libraries/src/Application/ConsoleApplication.php" #line: 456 trace: { ./example.com/libraries/src/Application/ConsoleApplication.php:456 { Joomla\CMS\Application\ConsoleApplication::getRouter($name = null, array $options = []) › { › \tthrow new InvalidArgumentException('A router name must be set in console application.'); › } } ./example.com/plugins/system/jmap/jmap.php:1286 { …} ./example.com/libraries/src/Extension/ExtensionManagerTrait.php:242 { …} ./example.com/libraries/src/Extension/ExtensionManagerTrait.php:160 { …} ./example.com/libraries/src/Extension/ExtensionManagerTrait.php:94 { …} ./example.com/libraries/src/Plugin/PluginHelper.php:236 { …} ./example.com/libraries/src/Plugin/PluginHelper.php:194 { …} ./example.com/libraries/src/Application/ConsoleApplication.php:231 { …} ./example.com/cli/joomla.php:78 { …} } }