Support

Akeeba Backup for Joomla!

#14881 Cronjob: Manual start works, Automated not

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 Monday, 04 February 2013 06:12 CST

Telaran

Mandatory information about my setup:

 Have I read the related troubleshooter articles above before posting (which pages?)? Yes
 Have I searched the tickets before posting? Yes (even if its not that easy in my opinion)
 Have I read the documentation before posting (which pages?)? Yes (About Automated Backup and Native CronJob)
 Joomla! version: 2.5.8
 PHP version: 5.3.4
 MySQL version: 5.0.77
 Host: Metanet.ch
 Akeeba Backup version: 3.6.12

Description of my issue:

I've requested by my Webhoster to create a cronjob for my website. This cronjob was created and should run every Sunday Morning at 2:15am (GMT+1).

Based on my Webhoster the Job is running, but appears not be be processed:

Jan 27 02:15:01 [Server] crond[15277]: (root) CMD (/usr/bin/php /home/httpd/vhosts/[MyWebsite]/httpdocs/cli/akeeba-backup.php --profile=3 /dev/null 2>$1)

If the Webhoster start it manually (just run the cronjob) it gues through (attached log from Monday after)

So what did maybe go wrong?

Currently my only explanation would be the fact, that the profile use FTP external saving. Is it a must to apply the ftp credentials to the CLI Cronjob command? As far as I'm aware it's not.

Thanks in Advance

nicholas
Akeeba Staff
Manager

Does the CRON job run at all? I mean, do you get a log file? If you do not get a log file at all then the problem is that the CRON job doesn't run at all. That's a hosting issue which I can't help with. If you do get a log file, please ZIP and attach the log file of the backup which ran under the CRON job, not the log file of a successful backup (like the one you attached). Otherwise I can't know what could have possibly happenned and I refuse to guess.

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!

Telaran

Hello Nicholas, 

Thanks for your fast response.

No I don't get any logfiles, so I also asume it doesn't run at all.

I've asked my Webhosting and they gave me the stated log entry (Jan 27 02:15:01 [Server] crond[15277]: (root) CMD (/usr/bin/php /home/httpd/vhosts/[MyWebsite]/httpdocs/cli/akeeba-backup.php --profile=3 /dev/null 2>$1)) and say the cron is up and running.

If they force a start it goes through (like in the attached Zip)

So I should force again the webhoster? Is there any log/file I can point them to look at? Or anything I would have to organize for you?

nicholas
Akeeba Staff
Manager

No log file means that it didn't start. I do see a typo in the command line anyway. It reads

/usr/bin/php /home/httpd/vhosts/[MyWebsite]/httpdocs/cli/akeeba-backup.php --profile=3 /dev/null 2>$1

When it should probably read

/usr/bin/php /home/httpd/vhosts/[MyWebsite]/httpdocs/cli/akeeba-backup.php --profile=3 > /dev/null 2>$1

See the missing greater-than sign? That's one missing thing. The other thing which your host must validate is that /usr/bin/php is, indeed, the full path to the command line version of PHP (PHP CLI).

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!

Telaran

Hi Nicholas, 

I will write to my webhoster and inform you as soon I know more.

Thanks for your help and your great backup solution. You're already saved my once a lot of trouble :)

nicholas
Akeeba Staff
Manager

You're welcome :)

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!

Telaran

I've received the Feedback from my Webhoster.

They really forgot the ">" and fixed it. I guess the problem is solved now.

So "false alarm" on Akeeba-Perspective :)

nicholas
Akeeba Staff
Manager

I'm glad I could help :)

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!