Besuglov Sergey
Besuglov Sergey

Reputation: 506

PhpStorm (Failed to collect files: Could not determine the type of file)

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

Upvotes: 6

Views: 9455

Answers (3)

Luca Pisoni
Luca Pisoni

Reputation: 465

my problem was very similar but it was about configuring SFTP. Inspired by the solutions above, I solved it as follows:

On MAC:

  1. Go to Settings->Build, Execution, Deployment->Deployment
  2. Check "Use Rsync for download, upload, sync"

If the problem still remain,

  1. in the same window above, select temporarily "FTP" in "type" selector
  2. Now, in the "Advanced" section, the field "Send keep alive message each" is active
  3. Type "300"
  4. Select again "SFTP". The field "Send keep alive message each" return unactive
  5. Done

Upvotes: 0

Shahid Rafiq
Shahid Rafiq

Reputation: 699

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.

Upvotes: 4

Besuglov Sergey
Besuglov Sergey

Reputation: 506

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"

Upvotes: 9

Related Questions