Cannot connect to SFTP server when creating a new project (2016.3)

Answered

I'm having no luck setting up a new SFTP server for a new project. I'm using Windows 10 and a .ppk file for key auth. I've tested the connection with Bash ssh, Cyberduck, and Filezilla (both Windows versions) with zero issue so it's not the server or the key. I've successfully added projects this way in the past but for some reason it's ceased to work. I just get a dialog saying "Connection to xxxx failed." both when hitting the test connection button or trying to continue.

I've tried resetting KeePass as well as several other 'solutions' on here for similar issues on here with zero luck. Here is the debug output from my log file. Note that I've swapped the actual IP with my 127.0.0.1 as this is for a client and would like to keep that from getting indexed - I'm not trying to connect to my localhost :P

2017-03-08 00:56:06,067 [ 64006] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://127.0.0.1:22/ in @19b3db9
2017-03-08 00:56:06,075 [ 64014] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://127.0.0.1:22/ in @19b3db9: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://127.0.0.1/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:114)
at com.jetbrains.plugins.webDeployment.PublishUtils.lambda$null$0(PublishUtils.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "127.0.0.1".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 14 more
Caused by: java.lang.NullPointerException
at java.lang.String.<init>(String.java:166)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:88)
... 15 more
2017-03-08 00:56:06,076 [ 64015] WARN - loyment.ui.WebServerConfigForm - Could not connect to SFTP server at "sftp://127.0.0.1/".
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://127.0.0.1/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:114)
at com.jetbrains.plugins.webDeployment.PublishUtils.lambda$null$0(PublishUtils.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "127.0.0.1".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 14 more
Caused by: java.lang.NullPointerException
at java.lang.String.<init>(String.java:166)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:88)
... 15 more
2017-03-08 00:56:09,052 [ 66991] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://127.0.0.1:22/ in @1eca0b1
2017-03-08 00:56:09,059 [ 66998] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://127.0.0.1:22/ in @1eca0b1: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://127.0.0.1/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:114)
at com.jetbrains.plugins.webDeployment.PublishUtils.lambda$null$0(PublishUtils.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "127.0.0.1".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 14 more
Caused by: java.lang.NullPointerException
at java.lang.String.<init>(String.java:166)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:88)
... 15 more
2017-03-08 00:56:09,060 [ 66999] WARN - createproject.ChooseServerStep - Could not connect to SFTP server at "sftp://127.0.0.1/".
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://127.0.0.1/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:186)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:114)
at com.jetbrains.plugins.webDeployment.PublishUtils.lambda$null$0(PublishUtils.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "127.0.0.1".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:186)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 14 more
Caused by: java.lang.NullPointerException
at java.lang.String.<init>(String.java:166)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:88)
... 15 more

 

Any help would be great.

Thanks,

Darwin

4 comments

Please enable extended deployment logging, try to connect again and then upload the IDE log somewhere (as a file).

0

Looks like it's now failing for an existing project of mine as well. Here is the log file with the extra logging enabled as per your link:

http://www.darwinallen.com/randomshit/idea.log 

0

Darwin604, could you please update to the latest version of IDE? You're running 163.7743.50 while there's 163.13906.21 available. I can see that at least one bug was addressed since then with similar exceptions as seen in a log provided.

0

That fixed it! Thanks, gentlemen. For some reason I wasn't getting the update notification even though I have that feature enabled - I probably spaced out and dismissed it at some point.

Anyways, I'm back in business. Thanks again!

Darwin.

0

Please sign in to leave a comment.