Support

Akeeba Backup for Joomla!

#40942 AJAX error when trying to test FTP Connection

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
5.1.2
PHP version
8.2.21
Akeeba Backup version
9.9.4

Latest post by nicholas on Wednesday, 17 July 2024 09:08 CDT

webfeuerflo

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

Β 

When trying to test the FTP Connection I get this error message:

Β 

AJAX Error

An error has occurred while waiting for an AJAX response:

AJAX Loading Error
HTTP Status: 0 ()
Internal status: timeout
XHR ReadyState: 4
Raw server response:


What could cause this?

nicholas
Akeeba Staff
Manager

This means that your web server gave up waiting for a connection to the FTP server.

Have you enabled passive mode? If not, do so. Active mode (the opposite of passive mode) is not supported on every commercial host I have ever seen. The option for active mode is only present for some rare Intranet servers.

If you are already using passive mode, please make sure that the hostname and port are correct. A small typo (including an invisible one, like a space in front, at the end, or in the middle of the hostname) could cause something like that. The hostname must be just that, a hostname, e.g. ftp.example.com. It must NOT include a protocol, i.e. ftp://user:[email protected]:21 is wrong. Likewise, including a hostname with a port number such as ftp.example.com:21 is also wrong.

Make sure the FTP server is set up to listen to external connections, and that external connections from your server are not filtered out.

Finally, make sure that the server your site is on does allow contacting a remote host over FTP. Don't take it for granted. I have seen quite a few commercial hosts filtering (blocking) these connections, some of them in a way which just leads to a TCP/IP timeout.

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!

webfeuerflo

thank you, I've set it up on many website where it is working, only this setup gives me this error. Maybe it is because the hosting is Hetzner and I am trying to connect to my Hetzner Storage Box?

Β 

Β 

nicholas
Akeeba Staff
Manager

I cannot possibly tell within any degree of accuracy. I am neither one of their engineers, nor one of their clients. I have no knowledge of how they have set things up, nor have I used their services myself to at least have some first-hand knowledge.

The overall "feeling" I have from discussions with clients is that FTP with Hetzner is finicky, but SFTP (an entirely different protocol based on SSH) and WebDAV work much better.

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!

webfeuerflo

When I try to use SSH, I get this message "Akeeba Backup was able to connect to your server, but it could not upload a test file. Backup upload could fail." Very weird.Β 

nicholas
Akeeba Staff
Manager

That's not weird at all. It's good progress :)

It means that the hostname, port, username, and password are good.

This means that either the directory is wrong, or the permissions of that directory on the storage server do not allow that specific username to write data into it. Both are easy to check.

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!