Support

Akeeba Backup for Joomla!

#37547 CLI Backup with Error "Could not parse the requested URI"

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.1.5
PHP version
8.1
Akeeba Backup version
9.2.7 Prof.

Latest post by tampe125 on Tuesday, 02 August 2022 04:06 CDT

r.streubel

Hello.

Iam using a php Script for automatic Backups and call it with a cronjob.

This is the script:

<?php
exec("/usr/bin/php81 /www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php akeeba:backup:take --profile=1", $out, $result);
echo "Returncode: " .$result ."<br>";
echo "Ausgabe des Scripts: " ."<br>";
echo "<pre>"; print_r($out);
?>

Iam getting this error message:

Returncode: 255
Ausgabe des Scripts:

Array
(
[0] => RuntimeException {#713
[1] => #message: "Could not parse the requested URI http:///www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php"
[2] => #code: 0
[3] => #file: "./libraries/vendor/joomla/uri/src/AbstractUri.php"
[4] => #line: 373
[5] => trace: {
[6] => ./libraries/vendor/joomla/uri/src/AbstractUri.php:373 { …}
[7] => ./libraries/src/Uri/Uri.php:309 {
[8] => Joomla\CMS\Uri\Uri->parse($uri)
[9] => › {
[10] => › \treturn parent::parse($uri);
[11] => › }
[12] => arguments: {
[13] => $uri: "http:///www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php"
[14] => }
[15] => }
[16] => ./libraries/vendor/joomla/uri/src/AbstractUri.php:111 { …}
[17] => ./libraries/src/Uri/Uri.php:121 { …}
[18] => ./libraries/src/Uri/Uri.php:142 { …}
[19] => ./plugins/system/magic360/magic360.php:30 { …}
[20] => ./libraries/src/Extension/ExtensionManagerTrait.php:219 { …}
[21] => ./libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
[22] => ./libraries/src/Extension/ExtensionManagerTrait.php:94 { …}
[23] => ./libraries/src/Plugin/PluginHelper.php:236 { …}
[24] => ./libraries/src/Plugin/PluginHelper.php:194 { …}
[25] => ./libraries/src/Application/ConsoleApplication.php:231 { …}
[26] => ./cli/joomla.php:78 { …}
[27] => }
[28] => }
)

 

I can see, that the path for uri is wrong. I do not know how to fix this.

I used this script before with Joomla 3.6 and Akeeba Backup 8.1.9 successfully.

Can you please tell me, how I can start the automatic CLI Backup with a php Script?

Best

Rene

 

tampe125
Akeeba Staff

Hello,

the problem is not caused by Akeeba Backup itself, but by the plugin "/plugins/system/magic360/magic360.php". It tries to read the request URL, but since you're under CLI, there is not URL to parse, hence the fatal error.

You should get in touch with the developers of that extension and report the problem.

By the way, I can see that you're triggering the backup in a very convoluted way. I'd suggest to take a look at this page to get a list of all the ways you can trigger a backup: https://www.akeeba.com/documentation/akeeba-backup-joomla/automating-your-backup.html

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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!