Unable to get XCloner on with Joomla 2.5 on Bitnami stack to run via cron | Joomla Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
Unable to get XCloner on with Joomla 2.5 on Bitnami stack to run via cron
April 15, 2014
5:54 pm
Avatar
Toolie
Member
Members
Forum Posts: 4
Member Since:
December 15, 2013
sp_UserOfflineSmall Offline

I have been trying for over a year to get XCloner working using cron on my client's Joomla installation on Amazon EC2 with a Bitnami LAMP stack. You can see the problem spelled out at this website. http://community.bit.....n/8342/5 Please read it thorougly.

I think that the Bitnami folks have done everything they can to help me; I'm convinced that there is something wrong with your cron implementation.

  1. The script (custom config or not) runs perfectly when I manually start it from the web browser
  2. Whether I specify a user or not in the cron instructions, the job refuses to run.
  3. Since the instance doesn't have CPanel installed, I tried using Webmin, and the job still does not run.

Environment:

  • Apache 2.4 installation (bitnami-lampstack-5.4.23-0-linux-ubuntu-12.04.3-x86_64-ebs)
  • Joomla 2.5.19, manually installed.

I directly edited the crontab, but neither of these worked:

0 0 * * * bitnami /opt/bitnami/php/bin/php /opt/bitnami/apache2/htdocs/administrator/components/com_xcloner-backupandrestore/cloner.cron.php

0 0 * * * su - bitnami -c "php /opt/bitnami/apache2/htdocs/administrator/components/com_xcloner-backupandrestore/cloner.cron.php"

 

What else can I try?

Toolie

April 15, 2014
6:22 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Toolie! The correct cron command should be

 

php /opt/bitnami/php/bin/php /opt/bitnami/apache2/htdocs/administrator/components/com_xcloner-backupandrestore/cloner.cron.php gcbbackup.php

 

Can you tell me what is the output when trying to run that command? Ovidiu

April 23, 2014
7:00 pm
Avatar
Toolie
Member
Members
Forum Posts: 4
Member Since:
December 15, 2013
sp_UserOfflineSmall Offline

I am confused, Ovidiu, am I supposed to put that command in a Linux command line or use that in the crontab file? On the Bitnami stacks, I have been told that PHP will be invoked correctly if I use:

/opt/bitnami/php/bin/php

Which makes me wonder why I would need to add the "php" in front of that path. Can you explain further?

Here is my current crontab command, based on the input from the Community over at Bitnami.com. I am not trying to use the custom config at this point.

0 23 * * * su - daemon -c "/opt/bitnami/php/bin/php /opt/bitnami/apache2/htdocs/administrator/components/com_xcloner-backupandrestore/cloner.cron.php"

After I added your latest version for v2.5, I am no longer able to run the command unless I am logged in to the Admin area, even though I have specified that my individual static IP address should be authorized.

Here is what the manually executed files look like when I list them:

$ ls -la
-rw-r--r--  1 daemon  daemon  1527622656 Apr  7 10:16 backup_2014-04-07_09-12_www.websitenamechanged.com-sql-nodrop.tar
-rw-r--r--  1 daemon  daemon  1300480000 Apr 15 20:34 backup_2014-04-15_19-31_www.websitenamechanged.com-sql-nodrop.tar
-rw-r--r--  1 daemon  daemon  1300480000 Apr 15 20:40 backup_2014-04-15_19-37_www.websitenamechanged.com-sql-nodrop.tar
-rw-r--r--  1 daemon  daemon  1306172928 Apr 20 19:15 backup_2014-04-20_18-13_www.websitenamechanged.com-sql-nodrop.tar

When manually executed, the daemon user owns the files.

You can see the latest discussion of this issue over at http://community.bit.....ron/8342/5.

Toolie

April 24, 2014
8:37 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

The cron command format changed, so now you are forced to save the cron config as a custom config, and you would need to adjust your cron command like this(the rest can stay the same)

 

0 23 * * * su - daemon -c "/opt/bitnami/php/bin/php /opt/bitnami/apache2/htdocs/administrator/components/com_xcloner-backupandrestore/cloner.cron.php mycustomcorn.php"

 

Hope it helps! Ovidiu

April 28, 2014
5:54 am
Avatar
Toolie
Member
Members
Forum Posts: 4
Member Since:
December 15, 2013
sp_UserOfflineSmall Offline

Ovidiu, the folks over at Bitnami came to the same conclusion:

http://community.bit.....on/8342/17

except without the custom configuration tacked on at the end. It FINALLY worked. I have been working on this since January of 2013, so having this solved is a HUGE relief.

Toolie

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Emmanuel Joachim
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0