SFTP connection error

Hi, I'm getting a connection error when trying to login to my server using SFPT.

This connection works in other IDEs, and my co-worker has his connection setup exactly the same way in phpStorm and it works on his computer.

I'm getting two errors:

  • initially, the error is this: "Connection to 'xxx.xxx.xxx.xxx' failed. 373"
  • Then after a few tries, the error becomes this:  "Connection to 'xxx.xxx.xxx.xxx' failed.  Java.lang.ArrayIndexOutOfBoundsException"


I'm on a mac with OSX 10.8.3 and using phpstorm 6.0.2 build 129.487.  My co-worker has the exact same setup.

Would appreciate any help I can get!

Thanks,
Alex

4 comments
Comment actions Permalink

Could you please provide the debug log?

0
Comment actions Permalink

Sure, here it is the output:

2013-05-21 10:24:03,510 [ 253176]   WARN - loyment.ui.WebServerConfigForm - Could not connect to SFTP server at "sftp://xxx.xxx.xxx.xxx/".
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://xxx.xxx.xxx.xxx/".
 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:698)
 at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:624)
 at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:121)
 at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:122)
 at com.jetbrains.plugins.webDeployment.PublishUtils$1$1.run(PublishUtils.java:114)
 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:680)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
Caused by: org.apache.commons.vfs2.FileSystemException: Error during processing known-hosts file "/Users/atopiler/.ssh/known_hosts".
 at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:126)
 at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
 ... 16 more
Caused by: com.jcraft.jsch.JSchException: java.lang.ArrayIndexOutOfBoundsException
 at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:171)
 at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:60)
 at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:269)
 at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:122)
 ... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
2013-05-21 10:42:43,515 [1373181]   WARN - loyment.ui.WebServerConfigForm - Could not connect to SFTP server at "sftp://xxx.xxx.xxx.xxx/".
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://xxx.xxx.xxx.xxx/".
 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:698)
 at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:624)
 at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:121)
 at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:122)
 at com.jetbrains.plugins.webDeployment.PublishUtils$1$1.run(PublishUtils.java:114)
 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:680)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
Caused by: org.apache.commons.vfs2.FileSystemException: Error during processing known-hosts file "/Users/atopiler/.ssh/known_hosts".
 at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:126)
 at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
 ... 16 more
Caused by: com.jcraft.jsch.JSchException: java.lang.ArrayIndexOutOfBoundsException
 at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:171)
 at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:60)
 at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:269)
 at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:122)
 ... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException

0
Comment actions Permalink

Seems similar to http://youtrack.jetbrains.com/issue/WI-12925

Please check comments for a workaround

0
Comment actions Permalink

Thanks - that worked!

0

Please sign in to leave a comment.