SFTP connection failure after first trial

Answered

I am using Intellij Idea for my project that uses SFTP for file transfer but I am having a problem about SFTP. When I start the IDE and run the program it successfully establishes connection and everything is fine. But when I stop and run the program again, It throws the following error. When I restart the IDE, it again works successfully. I do not use ide built-in server configuration or sth. What could cause this?

Error:

org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://test...."

...

Could not connect to SFTP server at "srftp://test...."

....

Pipe closed

....

0
3 comments

What key exchange algorithm is in use? Several of them are not supported, for example curve25519-sha256.
If it is not the case, please elaborate on your environment. Do you use ssh-agent?

Would it be possible to add the following lines to "Help | Debug Log Settings", restart IDE, reproduce the issue and share logs?
Here are the lines:

#com.jetbrains.plugins.webDeployment
#com.jetbrains.ssh
0
Avatar
Permanently deleted user

I think problem is caused by ports (ide does not kill ports after stopping process). I do not have that kind of configuration and cannot share log file as it occurs on private computer. 

0

opened (not closed) ports is most probably a consequence. 

Something could prevent IntelliJ IDEA from closing it. This case is an example of such behavior: https://youtrack.jetbrains.com/issue/WI-46641

Note the following part of logs: 

2019-05-15 10:16:37,506 [ 407120] DEBUG - #com.intellij.ssh - Disconnecting from the-server.net port 22
2019-05-15 10:16:37,507 [ 407121] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://the-server.net:22/ in @118aa6df: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://the-server.net/".

....

Caused by: com.intellij.ssh.SshTransportException: java.io.IOException: inputstream is closed

 

So, logs are needed to troubleshoot the case further. You can inspect and anonymize them before sending. 

0

Please sign in to leave a comment.