Support

Akeeba Backup for Joomla!

#20475 405 Error nginx

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, 14 July 2014 13:50 CDT

user84907
I have tried to run a backup numerous times but keep receiving a 405 error AJAX load error:

Backup Failed
The backup operation has been halted because an error was detected.
The last error message was:

AJAX Loading Error
HTTP Status: 405 (Not Allowed)
Internal status: error
XHR ReadyState: 4
Raw server response:

405 Not Allowed
nginx/1.6.0

I have run the configuration wizard with no change in result. The error happens sometimes at the 25% mark and sometimes at 74%.

Thank You,
Brandon Muzny
ETR

nicholas
Akeeba Staff
Manager
There seems to be absolutely no reason for the backup being terminated by your host. I suspect that your server has some kind of server protection software installed which mistakes Akeeba Backup for an attack on the server.

One way to work around that, at the expense of making the backup mind-boggingly slow, is using the following settings in Akeeba Backup's Configuration page:
- Minimum execution time: 7 seconds
- Maximum execution time: 3 seconds (yes, the max is less than min, it's not a typo!)
- Execution time bias: 50%

If this doesn't work you should ask your host if they have a CPU usage or memory usage limit, or whether the server will block requests when the same URL is accessed in quick succession by the same IP address. In the latter case please ask them what is the triggering point, i.e. how many time the same URL has to be accessed in how much time for this kind of protection to be triggered. This will help us find a different set of settings 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!

user84907
Thank you for you help and quick response. The problem is still there with these changes. I will contact my host this afternoon and will have the updates for you, if not today, Monday.

nicholas
Akeeba Staff
Manager
OK. If you don't have the information within the next 2-3 hours please note that our support ticket system will be closed for replies from Friday evening to Sunday evening (Eastern European timezone). You will be able to reply to us when it's open again.

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!

user84907
I have got in-touch with the host and they told me there is a php limit of 256mb and there is no limit to successive access for a single ip.

nicholas
Akeeba Staff
Manager
The memory limit is already quite big and I could see it from the log file. If it's not your host stopping the backup process, it's something in your computer / browser such as an antivirus or Internet security application. If you are not running such a thing or if the error persists even though you have deactivated your antivirus / Internet security application there are two more troubleshooting steps:

1. Make sure that your computer does not go to sleep mode or disconnect from the Internet and you do not close the browser tab or window where the backup is running. Javascript running on your browser triggers each backup step, checks the server response, updates the interface and repeats this loop until the backup is complete. If your computer goes to sleep, you get disconnected from the Internet etc then the chain of backup steps is broken, the browser reports an error and you get a log file similar to the one you sent us.

2. If this doesn't happen your host is lying. Most likely the first level support technician answering your support request isn't privy to the exact configuration of the server or is not allowed to disclose the measures taken by the host to protect against denial of service attacks. In most cases you can escalate the issue and talk to a real system administrator who will be able to explain why the server kills the backup.

FYI, there is no shared hosting on this planet not enforcing resource limits that is still in business. If they enforce no limits apart from PHP memory limits someone could buy the cheapest shared hosting plan and have the CPU and hard disk on the server work at full capacity, effectively bringing down the server. Having someone from your host telling you that they don't apply any limits is either a blatant lie or they an admission that they are absolutely suicidal and about to go out of business. That's why I'm sounding so sure. Plus the nearly eight years of experience supporting Akeeba Backup (called JoomlaPack back in '06) on shared servers which made me aware of all that stuff to begin with :)

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!