Support

Akeeba Backup for Joomla!

#14798 CURLOPT_FOLLOWLOCATION

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 Tuesday, 05 February 2013 02:18 CST

ktjscm

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
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (2.5.8)
PHP version: (5.3)
MySQL version: (unknown)
Host: (optional, Hostgator Plesk - VPS)
Akeeba Backup version: (PRO - 3.6.12)

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: Refuses to complete upload to Amazon S3.

nicholas
Akeeba Staff
Manager
Remove the trailing slash from your S3 directory in the Configuration page.

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!

ktjscm

Thank you - I'm ow getting this error after also deselecting the SSL checkbox.  (Attached Log File)

nicholas
Akeeba Staff
Manager

You are receiving this error message:

WARNING |130128 12:00:16|AEUtilAmazons3::uploadMultipart(): [55] select/poll returned error

This error does not happen inside Akeeba Backup. It comes from the cURL library which is used by PHP and Akeeba Backup to connect to Amazon S3. Actually, this error message comes from your server's operating system, Linux. It means that your Linux machine isn't keeping up with the number of requests you're trying to send. If you're on a shared web hosting provider, your resources are typically limited.

In plain English: Unfortuantely this is a condition beyond my and your control. It is something which happens because your server is overcrowded and can't keep up with the work it's requested by all sites hosted on it to be performed. You can ask your host for a solution. If they can't provide a solution you'll have to move to a different host.

Please note that this is a server imposed restriction. It's not something we can work around. If the server doesn't have adequate resources you need a better server. It's like trying to drive a loaded truck on a narrow dirt trail: there's simply not enough space to physically fit it there, let alone drive it. You need a wide road. That's all.

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!

ktjscm

What additional resources should I ask for.  I'm on a virtual private server with with 30gb hardrive (51% available), 768 megs of ram (46%  available), CPU's load is currently at 10.7%, and 500 gb of data per month traffic.  I'm running 17 websites currently on this VPS.  

So I ask, what additional features or resources should I ask them to provide so that this will work?

 

-ms

ktjscm

Apache CPU usage

0.2 % health-group-up-state_16.gif 1.04 (?)

Mail server CPU usage

0.1 % health-group-up-state_16.gif 5.19 (?)

MySQL CPU usage

0.2 % health-group-up-state_16.gif 1.05 (?)

Panel CPU usage

0.1 % health-group-up-state_16.gif 1.91 (?)

Apache memory usage

18.8% used (145 MB of 768 MB) health-group-up-state_16.gif 1.02 (?)

Mail server memory usage

0.6% used (4.58 MB of 768 MB) health-group-up-state_16.gif 1.19 (?)

MySQL memory usage

17.8% used (136 MB of 768 MB) (?)

Panel memory usage

0.5% used (4.04 MB of 768 MB) health-group-up-state_16.gif 1.28 (?)

ktjscm

I found the problem - 

Akeeba Admin Tools >>> WAF >>> Cross Site Scripting block (XSSShield) - (NEEDS TO BE SET TO NO)

Now it works like a charm!

WOW!!!

-ms

nicholas
Akeeba Staff
Manager

No, you have not found the problem. The two are completely unrelated. What you found is a time of the day where the server usage was low enough to allow the upload to S3 to complete.

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!

ktjscm

OK - How much resources does Akeebabackup require?  I need to know what I need on my VPS.  This is important!

 

Thanks

-ms

nicholas
Akeeba Staff
Manager

First consult https://www.akeebabackup.com/documentation/akeeba-backup-documentation/requirements.html for the minimum requirements.

That said, backup is by definition a VERY INTENSIVE process. It has to read and compress all files of your site and all data in all tables of all configured databases. This, inevitably, requires a lot of CPU time. The exact amount of CPU time depends on many factors such as CPU speed, server load, number/size of files, hard drive speed, the operating system's filesystem caching efficiency, number of tables, overall performance of the database server, number of rows per table and even the PHP version (PHP 5.4 is seven times as fast as PHP 5.2). Therefore I cannot tell you how much CPU time will be required for your backup.

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!

ktjscm

OK, I highly recommmend that you retest the "Cross Site Scripting block (XSSShield)" compatability with Akeebabackup.  I know you mentioned that they deal with differnet things but three different servers with 3 different sites using 3 different hosting companies is more than a coincidence.  

I have accounts with enom.com, 1and1.com, and hostgator.com.  enom and 1and1 are both shared services but hostgator is a virtual private server.

On all three accounts using different domains of different sizes at different times of the day produced the same results.  If XSSShield is activated backup to S3 fails 98% of the time. the 2% difference comes from sites that are small, approximately 20 megs in backup size and  they will, on occasion, make it through the process but by no means consistent.  Consistency with out fail is if I turn XSSShield off, every site backs up without fail - 100% of the time.  I have a site thats 3 gigs in size due to some audio files and even that site will back up without fail as long as XSSSShield is off.  I'm not trying to tell you what to do or how to program because I, by no stretch of the imagination, am a programmer.  I just know what I have witnessed and tested and I recommend that you do some testing using different sites on different servers from diffferent companies with S3 as a backup solution to see if you run in to the same thing. Just my 2cents.

Thanks

 

nicholas
Akeeba Staff
Manager

I did check before replying last time :) Just to be extra certain, I just created a fresh Joomla! 2.5.9 site, installed Admin Tools Professional and Akeeba Backup Professional, enabled XSSShield in Admin Tools and front-end backup in Akeeba Backup using the secret word "test". I went to Akeeba Backup's Scheduling Information, copied the wget command line, pasted it in my terminal, run it and half a minute later I have a fresh backup. No issues.

The only way XSSShield can interfere with that is if your secret word contains special characters which trip the XSSShield. Now, as I explicitly state in Akeeba Backup's documentation:

Secret word
Whenever you need to take a front-end backup, you have to supply this secret word to let Akeeba Backup know that you really have access to its functions and you're not an impostor, or a hacker attempting to cause a massive denial of service attack by overloading your server with backup operations. Please use only alphanumeric characters, i.e. lower and upper case a-z letters and the digits 0-9. Do not use special characters, as they tend to cause problems when passed in the front-end backup URL without converting them to URL encoded format (which is beyond the scope of this manual - so just use a-z, A-Z and 0-9, OK?)

I am aware that various firewalls (in the Apache and PHP level) will choke on special characters, hence this explicit mention in the documentation.

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!