Failed to collect files: Could not determine the type of file. (Timeout expired)

After upgrading to 2021.1, my Pycharm always fails to upload files to a remote server. Re-open it can always solve the problem temporally. However, it fails again after 2-3 hours and I have to re-open it again, which is annoying. I upload my log here and the id is : 2021_04_22_Wbh3CN4yMTEFzgGz (file: idea.log). Please help me to resolve this problem.

1 comment
Comment actions Permalink

Hello, 

 

2021-04-22 14:29:04,511 [10758459]   WARN - t.connections.RemoteConnection - Retrying connecting to sftp://grace1.hprc.tamu.edu:22/ in @40107116: 1 iterations 
org.apache.commons.vfs2.FileSystemException: Could not resolve file "sftp://grace1.hprc.tamu.edu/".
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:310)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:279)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:83)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:63)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:715)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:647)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:262)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:265)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ssh.SshTransportException: Timeout expired

It worth trying to increase the connection timeout. 
Please open "Help > Edit Custom VM Options" and add the following line:
-Dcom.jetbrains.plugins.webDeployment.sftp.timeout=30000

Afterward, the IDE should be restarted in order for new settings to be applied.

 

If it does not help, please add the following lines to **Help | Debug Log Settings…**:

 

#com.intellij.ssh

#com.jetbrains.plugins.webDeployment

 

reconnect and provide me with logs folder zipped from ***Help | Collect logs and Diagnostic Data*** . 

0

Please sign in to leave a comment.