ftp: "failed to transfer" because its not a file

os: kubuntu 10.04
PhpStorm 2.0.1
build:PS:103-243

Why do i get failed transfers on such a regular occasion.

Steps to replicate:
* open the "Remote Host" panel
* right click on the home directory of a large project
* select "Download from here" to overwrite the local copy with the copy that exists on the server.

amongst the messages in the "File Transfer" tab there is usually at least one message similar to this:
[4/8/11 3:27 PM] Download from thesite.com
[4/8/11 3:46 PM] Failed to transfer file '/public_html/include/html2pdf/css.pseudo.add.margin.inc.php': could not read from "ftp://thesite.com/include/html2pdf/css.pseudo.add.margin.inc.php" because it is a not a file.
[4/8/11 3:50 PM] Failed to transfer file '/public_html/include/html2pdf/value.top.php': could not read from "ftp://thesite.com/include/html2pdf/value.top.php" because it is a not a file.
[4/8/11 3:55 PM] Failed to transfer file '/public_html/include/pear/XML/HTMLSax3/States.php': could not copy "ftp://thesite.com/include/pear/XML/HTMLSax3/States.php" to "file:///home/michael/PhpStorm_projects/thesite.com/include/pear/XML/HTMLSax3/States.php".
[4/8/11 3:55 PM] Failed to transfer file '/public_html/include/plugins/jrBBCode/font.php': could not read from "ftp://thesite.com/include/plugins/jrBBCode/font.php" because it is a not a file.
[4/8/11 3:55 PM] Failed to transfer file '/public_html/include/plugins/jrBBCode/url.php': could not read from "ftp://thesite.com/include/plugins/jrBBCode/url.php" because it is a not a file.
[4/8/11 3:57 PM] Failed to transfer file '/public_html/include/plugins/jrPayment/images/WorldPay.png': could not read from "ftp://thesite.com/include/plugins/jrPayment/images/WorldPay.png" because it is a not a file.
[4/8/11 3:58 PM] Failed to transfer file '/public_html/include/plugins/smarty/function.jr_google_ad.php': could not read from "ftp://thesite.com/include/plugins/smarty/function.jr_google_ad.php" because it is a not a file.

If its not a file, then what is it?  looks like a file.  Its not a symlink.

If i open Konqueror and use it to select one of the files that have just been tagged "because it is not a file." i can download it and open it with a text editor.

Sometimes files do download but have zero bytes to them. then re-downloading the same file produces a file full of content.

9 comments
Comment actions Permalink

What is the permission settings of the files you are trying to download?    There is a bug report about the FTP plugin though off the top of my head I don't know the number.  Search Youtrack and you will find it and you can comment about your issue there.  If the report is not exactly what your issue is you can create a new bug report so they know about it.

I have read a lot about the FTP issues so I am not using that feature in PhpStorm.  I create and edit in PhpStorm then use Filezilla to upload my files. An extra step but until the bugs are fixed in the FTP it is safest bet for me, for right now.
I don't have anything to say further on this topic, sorry I couldn't be of help.

0
Comment actions Permalink

Hello Michael,

If the problem persists, can you please provide a log file?

Regards,
Kirill

0
Comment actions Permalink

This is still a daily issue for me.

It can usually be taken care of by re-downloading the files that say they have failed.

Then looking through the compare screen of git to see which files have downloaded without the file contents, then re-downloading them too.

takes 10 min.  But it would nice to not have to.

Here is the ticket with the log attached:
http://youtrack.jetbrains.net/issue/WI-6742

0
Comment actions Permalink

I'm having the same issue, though only with one specific FTP server. It's a 'slow' one with thousands of files to transfer and it seems that after a several minutes PhpStorm gives up and produces this "is not a file" errors for each file not yet transferred. But still creates a zero byte file locally.

Only solution I found is to manually identify at which point it gave up and redo a right-click 'download from there' on the not transferred folders/files.

P

0
Comment actions Permalink

This seems to be caused by network timeout. To make sure, can you please turn on FTP logging and attach log file when it happens again? Thanks!

Kirill

0
Comment actions Permalink

Got some more log files uploaded to the issue tracker.

Hopefully they are useful.  This is such a painful issue to resolve when there are a lot of files that have failed.  One by one locate manually and then download.

even if it still happened but there was a "download from ... " option in the changes panel it would be a whole lot less painful.

0
Comment actions Permalink

Patrice, which OS are you on? Do you use active or passive mode for FTP?

Kirill

0
Comment actions Permalink

Mac OS 10.7.1. Passive mode.

All ftp activities are ok except for one that I know I have a weak connection to.

0
Comment actions Permalink

Still it would be really useful to look at the logs.

0

Please sign in to leave a comment.