6
votes

In deployment PhpStorm (7.1.2) cant upload any files with FTP. Error says "Failed to collect files: Could not determine the type of file" both with gif and php file.

idea.log:

2014-08-06 08:00:38,590 [ 384809] WARN - ins.webDeployment.TransferTask - Could not determine the type of file "ADDRESS_OF_FILE.php". org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "ADDRESS_OF_FILE.php". Caused by: java.net.SocketTimeoutException: Read timed out

2
Check your idea.log for details. If nothing -- enable extra logging and try again -- devnet.jetbrains.com/docs/DOC-1202 - LazyOne
Added idea.log, but it says the same. - Besuglov Sergey
No clue (without seeing the log). Possibly youtrack.jetbrains.com/issue/WI-16593 or even youtrack.jetbrains.com/issue/WI-10517. Better report to the PhpStorm's Issue Tracker with full log - LazyOne

2 Answers

9
votes

I guess it was all my fault.

After setting "Passive mode" in "Advanced options" for FTP connection all works fine.

Main Menu: Tools -> Deployment -> Configuration

"Advanced options" button

Check first checkbox "Passive mode"

2
votes

I faced the same error even after setting "Passive mode" in "Advanced options" for FTP connection.

Main Menu: Tools -> Deployment -> Configuration

"Advanced options" button

Check checkbox "Instead of MLSD".

(I was also facing issue of uploading only new files which were not existing on server before. this option will fix the issue. ) Have a safe phpstorming ahead.