Support

Akeeba Backup for Joomla!

#15273 Backup succeeding, but FTP to remote site failing

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 March 2013 11:09 CST

GJSchaller

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (None apply)? No

Have I searched the tickets before posting? No

Have I read the documentation before posting (Linked from Error message on site)? Yes

Joomla! version: (2.5.9)
PHP version: (5.4.10)
MySQL version: (5.5.30-cll)
Host: (GreenGeeks.com)
Akeeba Backup version: (3.7.2)

Description of my issue:

Profile is set to make a backup, and then store it remotely on an FTP server (NAS at my home).  Backup seems to complete correctly, and the FTP process begins (I can see a partial transfer on the remote server), but the transfer fails midway, the file on the remote server is not the correct size (size varies randomly), and the backup is left on the web server intact and "local."

This had worked previously without issue.  It's been going on since some time in the 3.6 series, I upgraded to 3.7.1 and 3.7.2, but it's still happening.  No other FTP issues in or out of the web server or the NAS that I can detect (I can pull it down to my office PC, and then push it down to my home NAS, without issue).  I've re-run the config wizard to be safe.

I am noticing on the push down to my NAS that there are occasional pauses in traffic (no more than 1-2 seconds), but it completes normally.  Automated cPanel backups of the site, which are 3+ GB in size (LOTS of photos that I don't include in Akeeba!) transfer without issue.

Thank you for your help!

nicholas
Akeeba Staff
Manager

I can see that your backup is 179221631 bytes (about 178Mb). If it's a single part archive it will take a LOT of time to process and this will cause a PHP timeout issue. Remember that unlike your FTP programme or cPanel, Akeeba Backup runs through the web server. Your server's time limit is 30 seconds:

INFO    |130301 14:30:28|Max. exec. time    :30

Anything taking longer than that to transfer will cause a PHP timeout. You may be able to avert this by checking the "Set an infinite PHP time limit" option in Akeeba Backup's configuration but do note that your web server (Apache) most likely has its own timeout set between 120 to 180 seconds. If the transfer takes longer than that then the transfer will fail.

There are two proper workarounds to these time limits:

  1. Command line CRON backups. Any PHP script running from the command line doesn't have a time limit. Most likely the CRON server does, so your mileage may vary.
  2. Splitting the backup to smaller parts by setting the "Part size for split archives" to lower values (10 to 50Mb usually work best). Actually that's what I would recommend.

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!

GJSchaller

Hm - even with the file size set to 10 MB, and the infinite time limit, it's still failing.  New logs attached.

What's odd is that this WAS working for a very long time, and then stopped, and I am not sure why.  The same thing is happening on other sites on my VPS as well.  They have plenty of disk space (the files exist on the server fine), they just seem to have trouble FTPing down to the NAS...

nicholas
Akeeba Staff
Manager

From the looks of it it's as if your VPS cannot connect to your NAS. Do mind that cPanel runs under a different user account and process; even if it can connect to your NAS it doesn't necessarily mean that the connection to your NAS is possible. Moreover, you may need to check the "Use passive mode" in the configuration of the "Upload to remote FTP server" post-processing engine in Akeeba Backup's back-end.

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!

GJSchaller

Hm.  I had passive mode checked, and unchecked it as part of the troubleshooting.

It's working with one of the smaller sites on my VPS - log attached.  (This joomla site is its own cPanel account, although it is a sub-domain of the main site.)

Now why is it dropping the transfer halfway through the process?  I may need to go back to my host for this one.  Erf.

nicholas
Akeeba Staff
Manager

The 45815717 bytes archive takes almost 2 minutes to upload. Try setting a part size of 5 to 10Mb.

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!

GJSchaller

OK, dropping the file size to 5 MB did the trick - thank you!  It's set on all of my sites now.

It's odd that this suddenly became an issue, when it was not, before... I realize this is not an Akeeba issue, but that Akeeba is awesome because you helped me solve it anyways. :-)

Thank you very much for your help!

nicholas
Akeeba Staff
Manager

You're welcome! FWIW, the most likely cause of this issue is the available bandwidth between the servers. It may simply be that your host is now using a different upstream network which is slower when connecting to your NAS.

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!