Support

Akeeba Backup for Joomla!

#23053 Command Line Cron Job - Can't Upload file to Google

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 user87938 on Wednesday, 29 July 2015 11:05 CDT

user87938
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 2Mb, please upload it on your server and post a link to it.

Description of my issue:
Hello,
I'm trying to get Akeeba Backup Pro to upload files to Google Cloud Storage.
Akeeba manual back-up works fine. If I have a backup file, I can hit the manual upload and it drops the file on google nicely. :-)

However, if I run the CRON job, it sends me the success e-mail (see below) but seems to only partially complete and doesn't upload to google. If I then hit the manual upload button I get an error message (see also below).

Backup file should be about 1.2GB

Any ideas why the job seems to be failing please?
Thank you,
Jon

HERE IS THE CRON REPORT EMAIL:
Akeeba Backup CLI 4.2.4 (2015-06-23)
Copyright (C) 2010-2015 Nicholas K. Dionysopoulos
-------------------------------------------------------------------------------
Akeeba Backup is Free Software, distributed under the terms of the GNU General Public License version 3 or, at your option, any later version.
This program comes with ABSOLUTELY NO WARRANTY as per sections 15 & 16 of the license. See http://www.gnu.org/licenses/gpl-3.0.html for details.
-------------------------------------------------------------------------------
You are using PHP 5.5.27 (cli)

Starting a new backup with the following parameters:
Profile ID 1
Description "Command-line backup"

Current memory usage: 1.59 Mb

Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /home2/codamo/public_html
JPATH_ADMINISTRATOR : /home2/codamo/public_html/administrator

Last Tick : 2015-07-28 11:33:02 GMT-0500 (CDT)
Domain : init
Step :
Substep :
Memory used : 4.6 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:02 GMT-0500 (CDT)
Domain : init
Step :
Substep :
Memory used : 5.31 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:02 GMT-0500 (CDT)
Domain : installer
Step :
Substep :
Memory used : 5.36 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:02 GMT-0500 (CDT)
Domain : installer
Step :
Substep :
Memory used : 5.36 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:02 GMT-0500 (CDT)
Domain : PackDB
Step :
Substep :
Memory used : 6.13 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:05 GMT-0500 (CDT)
Domain : PackDB
Step :
Substep :
Memory used : 7.3 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:05 GMT-0500 (CDT)
Domain : Packing
Step :
Substep :
Memory used : 7.49 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:09 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/templates/rt_osmosis/css-compiled
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:11 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/editors/codemirror/mode
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:12 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/Test_Media
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:12 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/mod_languages/images
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:13 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/k2/items/cache
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:15 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/k2/items/src
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:16 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/nextend/cache/image/static
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:23 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/nextend/cache/css/static
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:24 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/nextend/cache/js/static
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:31 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/nextend/cache/less/static
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:33 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/media/breezingforms/themes/images/icons-png
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:34 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/components/com_breezingforms/themes/quickmode/images/icons-png
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:40 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/administrator/components/com_osemsc/assets/images
Substep :
Memory used : 7.57 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:47 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/administrator/language/en-GB
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:48 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:48 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:48 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L2_customer_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:48 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L2_customer_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:49 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L3_codacare_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:49 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L3_codacare_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:49 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L3_codacare_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:49 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L3_codacare_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:49 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/phocadownload/L1_registered_user_resources
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:53 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/plugins/editors/rokpad/ace
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:33:54 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/plugins/editors/rokpad/ace/snippets
Substep :
Memory used : 7.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:34:00 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/language/en-GB
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:34:01 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/images/stories
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

Last Tick : 2015-07-28 11:34:01 GMT-0500 (CDT)
Domain : Packing
Step : /home2/codamo/public_html/images/.tmb
Substep :
Memory used : 7.55 Mb
Warnings : no warnings issued (good)

HERE IS THE BACKEND MANUAL UPLOAD ERROR MESSAGE
Upload of your archive failed.
Akeeba\Engine\Postproc\Connector\Amazons3::inputFile(): Unable to open input file: /home2/codamo/public_html/administrator/components/com_akeeba/backup/site-codamotion-20150728-173302.jpa


Thank you.

Jon

dlb
Jon,

What we really need to diagnose the problem is the backup log. But since you're on Hostgator, I can give you a pretty good guess about what is going on. Hostgator kills your CRON job after 120 seconds. I'm on one of their shared server plans and they told me they will not increase the CRON time limit for that plan. Under those circumstances, it can not be made to work.

The alternative that I found is to trigger a front end backup using WebCron (webcron.com). The cost per CRON job is very small, and it is not subject to Hostgator's time limit.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user87938
Hi Dale,

Thanks for your swift reply. That would explain exactly the symptoms that I am experiencing.

Thanks for your support - I will give WebCron a shoot.

Best regards,

Jon

dlb
I've been very happy with them. Just one little trick, you have to trigger a front end backup via Webcron. You're not using the akeeba-backup.php file that you use with Hostgator's CRON. You can find information on the setup on the Scheduling Information option on the Akeeba Control Panel screen.

If you have any questions, please let me know.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user87938
Works like a dream. For anyone reading this here is the link to instructions https://www.akeebabackup.com/documentation/akeeba-backup-documentation/automating-your-backup.html

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!