Support

Akeeba Backup for Joomla!

#9004 CLI

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 Wednesday, 17 August 2011 02:58 CDT

tinman507
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.5.23
PHP version: (unknown)
MySQL version: (unknown)
Host: 1&1
Akeeba Backup version: 3.3.3

EXTREMELY IMPORTANT: Please attach your Akeeba Backup log file in order for us to help you with any backup or restoration issue.

Description of my issue:
CLI running in PHP for Windows. Backup proceeds normally. Begins FTP of the backup file. Errors out with:

"ERROR:
[0;35mCould not download C:\Documents and Settings\xxx\My Documents\
xxx\xxx\backups\site-xxx.jpa -- 28 : Operation
timed out after 180000 milliseconds with 21218180 out of 72567481 bytes receive
d[1;31m"

nicholas
Akeeba Staff
Manager
Hi!

Can you please paste here the exact command line you used (masking out your domain name, secret key and username/password)? I want to see exactly what is going on :)

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!

tinman507
Here's the batch file I made to run this. Note the first line: I had to force it to change directories to run PHP.

cd c:\Program Files\PHP
php.exe "C:\Program Files\PHP\remote.phar" --action=backup --host=http://XXXXXX.com --secret=XXXXX --profile=1 --download --dlmode=curl --dlpath="C:\Documents and Settings\XXXXX\My Documents\XXXXXX\Webpage\backups" --dlurl="ftp://user:[email protected]/XXXXX/administrator/components/com_akeeba/backup" --delete

nicholas
Akeeba Staff
Manager
OK, I found out the problem. My bad. I have accidentally forced an 180 second time limit on the downloads. I'll fix that and release a new version today.

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!

tinman507
The 1.1 version seemed to be working but it gave another error:

"ERROR:
[0;35mCould not download C:\Documents and Settings\x\My Documents\x\Webpage\backups\site-xxx-20110816-042137.jpa -- 28 : FTP response timeout[1;31m"

tinman507
Additional Update:

I thinned out what gets backed up (video and some photos) and it worked great. Downloaded the complete file and deleted the archive from the site.

It appears to have timed out with an archive of 70+MB but did fine with 38+MB.
Don't know if that helps or not.

nicholas
Akeeba Staff
Manager
This seems like a server timeout. How long after the download started did the download error occur?

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!

tinman507
Can't say for certain but it seems like about 5 minutes or so. I am doing a back up on another site right now and it's been 20 minutes or better and it's doing ok downloading. Perhaps I jumped the gun. Will see how it does and let you know.
Thanks for your excellent responses!

nicholas
Akeeba Staff
Manager
Most likely the previous site's server has some kind of timeout protection against long-running FTP transfers. In that case, you can't do much except using a regular FTP client which sends "keep-alive" requests while the transfer of the file is taking place in order to keep the connection from timing out.

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!

user11823
Please excuse me butting in with some diversions, but I'd like to know if CLI is ment to be a permanent replacement for Remote Control or if you have a GUI-replacement in the making?

nicholas
Akeeba Staff
Manager
The CLI app is destined to be a permanent replacement.

I now am considering options to create a GUI "shell" around the CLI app in the not-so-distant future. Right now I am sitting on the fence, trying to decide if it's going to be a Windows-only app (easier to build, can bundle PHP binaries with the app) or a cross-platform app with all the woes that go with it. In any case, the GUI app will call the CLI app to do all the heavy lifting, merely parsing its output. That's why there is the "Machine readable" switch (-m) in the CLI app. I was thinking of something like how, for instance, K3B interacts with CLI programs to provide a GUI app similar to Nero, without itself implementing any kind of CD writing code.

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!