Support

Akeeba Backup for Joomla!

#28893 After the transfert to a new site one file and one folder not deleted

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 on Thursday, 18 January 2018 17:17 CST

vezid
Hello.
Under Joomla with Akeeba backup pro I use the transfer to a new site.
I see on the new site after finalizing the installation
there remains a wordpress folder and a file "kickstart.transfert.php"
Normally it should not exist after finalization.
I think it's a bug

Regards

vezid
There is also the folder kicktemp which is not deleted

nicholas
Akeeba Staff
Manager
The Site Transfer Wizard will NOT delete the contents of the target site. This is something you have to do before you start transferring your site. This is by design. There are several reasons behind this, from the process being killed by the host if we try to delete the wrong folder (e.g. "logs" in Plesk) to people having folders with dozens of Gigabytes of data they don't want vanished when they are transferring a site.

The kicktemp folder cannot be removed. If it had to be created it's because of a problem with the ownership and permissions on the target server. We can create the kicktemp folder using FTP and make it writeable but by the end of the process we cannot have Kickstart remove it. You'll have to remove it manually. On the other hand, you don't need to. The only thing remaining in there is a .htaccess file which prevents direct web access to the folder.

The kickstart.transfer.php should have been deleted. I will have to look into that. Thanks!

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!

vezid
Thanks for the answer, well noted that
Folder kicktemp will remain
File kickstart.transfer.php should have been deleted

I see the creation of a wordpress folder on the new Joomla site. For me it's abnormal.

nicholas
Akeeba Staff
Manager
The only folders which are created are the folders which are present in your backup archive AND the kicktemp folder. Nothing less and nothing more.

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!

vezid
Sorry this is not what I observe there is the creation of a wordpress folder when transferring a Joomla site
See attached pages
There is an anomaly

nicholas
Akeeba Staff
Manager
Then please point out the code where this happens - because there is no such code and it cannot be reproduced on any other site!

I mean, do you really think Kickstart would be creating a random "wordpress" folder and nobody would have told me in 3+ months? :D The average time between a release with such a bug and the first report about it is under 3 hours. That's one of the joys of having hundreds of thousands of people using the software day in and day out.

If you are not backing up a "wordpress" folder (NOTE: this includes off-site folders!) is it possible that your host is auto-installing WordPress for some reason, e.g. something you clicked / activated a lifetime ago?

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!

vezid
Hello Nicholas,

It seems weird the creation of a wordpress folder, to me too
It does not surprise me that you are not alerted. Look there is the kickstart.transfer.php file that I previously reported.

I tested again
I retrieved the archive on a local computer and then extracted it with Akeeba Extract Wizard
I do not have a Worpress folder see page attached
I left a blank site see attached page
I made the transfer of the archive and I discovered a wordpress file see page attached
I did not start the extraction with Kickstart.
For me there is a bug
Regards

nicholas
Akeeba Staff
Manager
Cannot be reproduced. Talk to your host.

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!

nicholas
Akeeba Staff
Manager
Correction. I can reproduce when using VSFTPd on a Linux machine I set up just for this reason and PHP 7. I'm not sure if it's a bug in VSFTPd or PHP itself but there's nothing I can do about it. The transfer wizard asks PHP to see if there is a file wordpress/index.php. That's a read operation using ftp_fget. For some reason and empty folder is created(!) during that read only operation.

I believe that's a bug in VSFTPd of PHP because VSFTPd's log file states the following:
Tue Dec 19 11:21:08 2017 [pid 7071] CONNECT: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:08 2017 [pid 7070] [nicholas] OK LOGIN: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:08 2017 [pid 7072] [nicholas] FAIL DOWNLOAD: Client "::ffff:127.0.0.1", "/path/to/site/index.php
", 0.00Kbyte/sec
Tue Dec 19 11:21:08 2017 [pid 7074] CONNECT: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:08 2017 [pid 7073] [nicholas] OK LOGIN: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:08 2017 [pid 7075] [nicholas] FAIL DOWNLOAD: Client "::ffff:127.0.0.1", "/path/to/site/wordpress
/index.php", 0.00Kbyte/sec
Tue Dec 19 11:21:08 2017 [pid 7077] CONNECT: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:08 2017 [pid 7076] [nicholas] OK LOGIN: Client "::ffff:127.0.0.1"
Tue Dec 19 11:21:09 2017 [pid 7078] [nicholas] OK UPLOAD: Client "::ffff:127.0.0.1", "/path/to/site/akeeba-16.png
", 265 bytes, 429.17Kbyte/sec

There is no write operation logged anywhere. There is no other instance of "wordpress" anywhere else in the log. I double checked, right after the ftp_fget (a read only operation) we get the empty folder. I cannot reproduce it using the ftp command line client. I also can't seem to be able to reproduce this on a live site.

A "fix" for that would be the removal of the check for WordPress but I'm not sure it's the right way to do it. I added that check to make sure you're not trying to overwrite a WordPress site with a Joomla! site which is a surprisingly common mistake that can lead to an insecure site (since the leftover WordPress installation will never be updated).

So, well done, you found a bug between PHP and VSFTPd :D

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!