Support

Akeeba Backup for Joomla!

#38495 Transfer Wizard does not find but creates ftp destination folder

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
4.2.7
PHP version
8.0
Akeeba Backup version
9.4.8

Latest post by nicholas on Friday, 10 February 2023 01:32 CST

Andrea Braun

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.

Hello, I am using the pro version of Akeeba Backup to help with the upgrade to Joomla 4. The transfer of the Joomla 3 site to a staging domain worked perfectly. After the upgrade, I am trying to move the joomla 4 site to the original folder (everything de-installed and emptied) but Akeeba 9.4.8 does not find the destination folder. Instead it creates folders following the destination path. So, the destination path is:

/home/dornbreu/closetotheearth.co.uk

When I run the Wizard, I get this message

Akeeba Backup cannot verify that the connection information you entered corresponds to the site URL you have entered. If you are trying to restore inside a subdirectory of an existing site this means that the main site is blocking access to the subdirectory; please contact your site administrator. In any other case you have entered the wrong connection information, most likely a wrong directory. Please contact your host and ask them for the correct connection information, including the directory, which corresponds to your the URL you have entered in this wizard. Then come back here, enter the correct information and continue with the restoration.

 

However, on checking my file manager, I see that in the destination folder, there is a folder called home, inside that, there is a folder dornbreu and inside that, a folder closetotheearth.co.uk

What am I doing wrong?

Thank you for your help!

System Task
system
The ticket information has been edited by Andrea Braun (Andrea Braun).

nicholas
Akeeba Staff
Manager

You are using FTP instead of SFTP. Absolute paths usually don't work on FTP servers as their sessions are "jailed" to a specific directory, usually your home directory. Instead of an absolute filesystem path you would need to enter a path relative your FTP initial directory.

Or, even better, just use SFTP without changing anything else. 

SFTP is encrypted for both authentication and file transfer, FTP is neither. SFTP uses the native Operating System permissions management system, FTP is a hodgepodge of technologies with questionable security results at best. SFTP lets you use absolute filesystem paths, FTP has that stupid notion of the "initial directory" and jailing sessions in a subdirectory which leads to a big headache trying to figure out what is pointing where.

When in doubt, SFTP.

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!

Andrea Braun

Thank you, Nicholas. That is interesting. However, the SFTP option doesn't work. The system can't find the server. I've now done it manually. It's a shame, though, because I bought the pro version in order not to have to do it manually. The odd thing is that it works perfectly for joomla 3 but not for 4. At least in my case. I've got a whole bunch of other sites to upgrade on different servers. I'll see how I get on. Unless you've got some other hints you can give me.

nicholas
Akeeba Staff
Manager

Hm, if you can't find the server could that mean that you don't have SSH (upon which SFTP runs — it's file transfer over SSH) set up on the target server, or don't have access to it? I think it's worth investigating this with your host because it's a far more secure, faster file transfer method than the 50+ year old FTP protocol (not even exaggerating; FTP was formalised on April 16th, 1971).

Another hint here is that you may need to use a different method. Remember that there are two variations each of FTP and SFTP:

  • FTP, using PHP's FTP methods which should be available on all servers.
  • FTP over cURL, using PHP's cURL integration extension. This extension is usually enabled and the cURL library is usually compiled with FTP support. I have seen very few live servers not providing this.
  • SFTP, using PHP's optional SSH2 extension, if available and enabled (ask your host, please).
  • SFTP over cURL, using PHP's cURL integration extension. I have seen many live servers which do have the PHP cURL extension installed, but the cURL library they are compiled against doesn't offer SFTP support.

So, your mileage may vary.

Do keep in mind that SFTP listens to a different port than FTP. Typically, FTP listens to port 21 and SFTP listens to port 22. Some hosts may use different ports. If unsure, ask the host.

If you have to use FTP or FTPS (FTP over explicit SSL/TLS) you will need to find the correct path to the site's root. Remember, that was the problem all along. As per the documentation's suggestion, log into your FTP server with FileZilla, navigate to the site's root and copy the path appearing at the top of the right hand navigation pane. You might see that it's something like /public_html (instead of the absolute filesystem path which is more likely something resembling /home/myuser/public_html). Yeah, I understand how convoluted it is. There's a reason —or, rather, hundreds of reasons!— everyone in their right mind hates plain, old FTP with a passion.

For what it's worth, the Joomla version is irrelevant. Both versions of Akeeba Backup (8 for J3, and 9 for J4) use the exact same backup engine which provides the FTP and SFTP connection facilities. The interface is also identical, just adapting the HTML output (basically, CSS classes) for Bootstrap 2 in Joomla 3 and Bootstrap 5 in Joomla 4. I have tested both against the same target servers, both local development servers and live testing servers. Both do connect just fine to the same servers and can transfer the sites using the Site Transfer Wizard. I would say the difference is just the source or target servers you are using with each CMS version.

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!

Andrea Braun

Thank you so much, Nicholas. Quite a chunk if information and very useful. I contacted my hosting provider and it turns out that SFTP only works for main domains, not for addon ones. The domain in question is an addon one. So, it looks like I'll be doing this manually.

Thanks again.

Andrea

nicholas
Akeeba Staff
Manager

Oof, that's a weird server setup. In the hosts I have used add-on domains are hosted as subfolders of the same user account. SFTP connects to the user account's folder and I can see all of the domains' folders. Well, if the host doesn't help what can you do?

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!