Support

Akeeba Backup for Joomla!

#38279 Error ion execution

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 Tuesday, 10 January 2023 04:48 CST

webmaster-cognin

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.

Hello

 

I had problem in scheduled akeba bakup

 

it is the first backup I do with the pro version

 

Best regard

 

Serge

nicholas
Akeeba Staff
Manager

I understand that you are using Joomla's Scheduled Tasks to schedule your backup.

Can you please send me a screenshot with the task's configuration?

Moreover, please tell me how are scheduled tasks triggered: Lazy Scheduling, Web CRON, or CLI CRON?

Finally, please tell me how the scheduled tasks trigger is configured — I need to know how often the trigger is executed.

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!

webmaster-cognin
Hello
 
I use scheduling from joomla
When I use "'Run test" I have the error" ; Image 1 on Jomma scheduling image 2
 
 
and a copy of the task : image 3
 
Best regard

nicholas
Akeeba Staff
Manager

You cannot run a test for the backup task. The backup task is a "resuming" task which means that it will stop before it finishes. Next time Joomla tries to run tasks it will run it again and it will resume. This will keep happening until the backup is complete. You can already see this behaviour in your log file. There's a certain amount of time between Akeeba Backup saving its state and the next step starting. That time is how long it took between the end of a task execution to the next task execution by Joomla.

The test button only runs the task once, the task returns with an exit code which basically says “I am not done, I will resume next time you call me”, hence Joomla reporting a warning.

What I really want to know is the last two bits I asked you last time and which you didn't provide a reply on:

> Moreover, please tell me how are scheduled tasks triggered: Lazy Scheduling, Web CRON, or CLI CRON? 
> Finally, please tell me how the scheduled tasks trigger is configured — I need to know how often the trigger is executed.

This is important. If there is any way that the time between two subsequent task executions might be longer than 3 minutes (180 seconds) the next time the task tries to run it will consider the backup attempt "stale", it will mark the backup attempt as failed, and will not proceed.

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!

webmaster-cognin

As I understand, it is not very sur to sure to use schedule task for Akeeba backup. As

 

First : I try to use : "Akeeba Backup - take a backup" and I read the documentation and all the warning about the none support of restoration

After I try the "Akeeba Backup – CLI-only Backup", but now I have a running man before the title ???? and last run have no date.

 The scheduling is :

Execution rule : days

Interval in days 7

Execution Time 0:0

 

So I understand that the best way is cron to be sure , that to have a backup done as in interactive, no ?

 

that right

webmaster-cognin

Hello

 

I try also to run with cli and after with cron

I run on CLI and  I have a stage output

 

(uiserver):u49644575:~/www$ /usr/local/bin/php8.0 /kunden/homepages/24/d248269769/htdocs/www/cli/joomla.php akeeba:backup:take --profile=1 --description="Sauvegarde hebdomadaire"
X-Powered-By: PHP/8.0.26
Content-type: text/html; charset=UTF-8

 (uiserver):u49644575:~/www$ ls -al /usr/local/bin/php8.0
lrwxrwxrwx 2 root root 24 Nov 28 08:23 /usr/local/bin/php8.0 -> ../../lib/cgi-bin/php8.0
(uiserver):u49644575:~/www$ ls -al /kunden/homepages/24/d248269769/htdocs/www/cli/joomla.php
-rw-r--r-- 1 u49644575 ftpusers 3016 Dec 13 13:15 /kunden/homepages/24/d248269769/htdocs/www/cli/joomla.php
(uiserver):u49644575:~/www$

 

Sorry , I do not understand what happen 

webmaster-cognin

If you need I can give you an admin acount 

webmaster-cognin

In php.log , I have this error message

[09-Jan-2023 19:36:42] PHP Parse error: syntax error, unexpected T_CONST in /homepages/24/d248269769/htdocs/www/cli/joomla.php on line 11

nicholas
Akeeba Staff
Manager

> [09-Jan-2023 19:36:42] PHP Parse error: syntax error, unexpected T_CONST in /homepages/24/d248269769/htdocs/www/cli/joomla.php on line 11

This means that you tried running the Joomla CLI (cli/joomla.php) with a PHP version earlier than 7.4.

You need to contact your host and have them tell you what is the correct path to the PHP 8.0 CLI executable. I can tell you for sure that it's not /usr/local/bin/php8.0; this outputs "X-Powered-By: PHP/8.0.26" which tells me immediately that this is the CGI/FastCGI binary. The Joomla CLI application won't run when it detects that you're trying to use the CGI/FastCGI executable. That's why your test failed.

Once you have it, let's say /usr/bin/php8.0-cli, you can create a CRON job for a command line like this

/usr/bin/php8.0-cli /homepages/24/d248269769/htdocs/www/cli/joomla.php akeeba:backup:take --profile=1 --description="Sauvegarde hebdomadaire"

This will work and it will be reliable.

The only asterisk is that your host may have limited your per-process CPU time. You can find that out by running ulimit -t in your SSH console. If it replies with unlimited you're golden. If the number it replies with (which is in seconds) is lower than the time your backup needs to run you'll have to ask your host to increase your user's CPU time limit in their /etc/security/limits.conf file.

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!

webmaster-cognin

Hello Nicholas

I work a little

1rts I find the path to php 8.0 : /usr/local/bin/php8.0 

and I try to use it, but I have some trouble

(uiserver):u49644575:~/www/cli$ /usr/local/bin/php8.0 joomla.php core:check-updates
X-Powered-By: PHP/8.0.26
Content-type: text/html; charset=UTF-8

 

/usr/local/bin/php8.0 joomla.php akeeba:backup:take
X-Powered-By: PHP/8.0.26
Content-type: text/html; charset=UTF-8

 

 But it’s the same whatever commands I pass to joomla.php

have you an idea ?

About the cpu limit

ulimit -t
1800

So If I cannot make working joomla.php, I had to use :  Akeeba Backup – CLI-only Backup

What is the requirement ?

 

I test with a schedule at 9:25 paris hour ,

 

How can I see if it is running ?

 

nicholas
Akeeba Staff
Manager

As I already explained, when you see the output line "X-Powered-By: PHP/8.0.26" it means that you are using the PHP CGI/FastCGI executable which DOES NOT WORK WITH JOOMLA ITSELF (cli/joomla.php). You will need to use the PHP CLI executable. As I explicitly told you and as we have explicitly documented this is necessary and if you do not understand what this means you need to ask your host.

Kindly note the following facts.

1. The requirement for the PHP CLI executable to use the Joomla CLI application and, by extent, any third party command which can be executed through it including but not limited to Joomla's built-in Scheduled Tasks and Akeeba Backup's CLI backup command (akeeba:backup:take) is fully documented in the software documentation which is available free of charge and publicly (you do not need to be a subscriber or even have a user account on our site to read it).

2. Before subscribing you have indicated that you are fully informed on the product and unreservedly accept the Terms of Service. This means that you have read and understood the documentation and accepted the requirement of the Joomla CLI application as necessary. As a result what you stated in ticket 38287 is unacceptable.

3. Please note that the cli/joomla.php file is part of Joomla itself. It is not developed, or maintained by Akeeba Ltd. Akeeba Ltd has no say on its development and its features. We cannot accept responsibility for it, nor can we provide support for it beyond what I've already done here. If you do not accept how Joomla works that's your problem, but nobody can do anything about it, let alone us take the financial responsibility of your failure to follow a simple instruction ("ask your host").

4. You have been provided a valid solution to your problem which you refuse to follow. You are using your refusal to follow a simple instruction as a pretense to demand a refund on false grounds. As a result this ticket is closed and we will not reply to any future requests about this issue until you actually follow the very simple instruction we have given you: ask your host what is the path to the PHP CLI binary and use it in your command line.

Finally, please note that demanding a refund on a false pretense is in direct violation of our Terms of Service. This is a final warning.

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!