SFTP arraycopy error on authentication
Just updated to latest version of webstorm on my mac. Last week everything worked fine.. but now, when I login to my server I get: Connect to x.x.x.x failed. Arraycopy: last source index 254 out of bounds for byte[139]
I tried with pycharm, and get the same error.
However, I tried logging in with webstorm on windows 10 without issue, and through terminal on the Mac, again no issue.
log:Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 172 out of bounds for byte[139]
at java.base/java.lang.System.arraycopy(Native Method)
at net.schmizz.sshj.signature.SignatureECDSA.encode(SignatureECDSA.java:96)
at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putSig(KeyedAuthMethod.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.sendSignedReq(AuthPublickey.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.handle(AuthPublickey.java:45)
at net.schmizz.sshj.userauth.UserAuthImpl.handle(UserAuthImpl.java:142)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
Edit: any help appreciated, thanks!
Please sign in to leave a comment.
Please add
#com.intellij.ssh
and#com.jetbrains.plugins.webDeployment
to Help | Debug Log Settings, restart the IDE, try to connect again and then share the generated logs (Help | Compress Logs and Show in Finder).note: I stripped the server address stuff and private from the log
the machine is a new MacBook Pro 2019 8 Core with 16GB RAM
Is this what you need?
2019-08-23 08:53:52,003 [ 9395] WARN - t.connections.RemoteConnection - Retrying connecting to sftp:// in @55f392cc: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not resolve file "sftp://".
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:346)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:315)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:726)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:648)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:257)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
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.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ssh.AuthFailSshTransportException: Authentication failed: arraycopy: last source index 178 out of bounds for byte[139]
at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:447)
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:209)
at com.intellij.ssh.impl.SshConnection.b(SshConnection.kt:205)
at com.intellij.ssh.impl.SshConnection.c(SshConnection.kt:159)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:88)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:172)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:183)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:31)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.a(FailSafeSftpChannel.kt:130)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.access$supplyUnderlyingFileObject(FailSafeSftpChannel.kt:24)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel$file$1.invoke(FailSafeSftpChannel.kt:53)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel$file$1.invoke(FailSafeSftpChannel.kt:24)
at com.intellij.ssh.impl.channels.FailSafeRemoteFileObject.exists(FailSafeRemoteFileObject.kt:253)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.getFileType(PlatformSftpFileSystem.java:94)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.makeFileName(PlatformSftpFileObject.java:56)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:47)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:40)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.createFile(PlatformSftpFileSystem.java:45)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:342)
... 13 more
Caused by: net.schmizz.sshj.userauth.UserAuthException: arraycopy: last source index 178 out of bounds for byte[139]
at net.schmizz.sshj.userauth.UserAuthException$1.chain(UserAuthException.java:33)
at net.schmizz.sshj.userauth.UserAuthException$1.chain(UserAuthException.java:26)
at net.schmizz.concurrent.Promise.deliverError(Promise.java:95)
at net.schmizz.sshj.userauth.UserAuthImpl.notifyError(UserAuthImpl.java:156)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:601)
at net.schmizz.sshj.transport.Reader.run(Reader.java:65)
Caused by: net.schmizz.sshj.common.SSHException: arraycopy: last source index 178 out of bounds for byte[139]
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:36)
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:29)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:595)
... 1 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 178 out of bounds for byte[139]
at java.base/java.lang.System.arraycopy(Native Method)
at net.schmizz.sshj.signature.SignatureECDSA.encode(SignatureECDSA.java:96)
at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putSig(KeyedAuthMethod.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.sendSignedReq(AuthPublickey.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.handle(AuthPublickey.java:45)
at net.schmizz.sshj.userauth.UserAuthImpl.handle(UserAuthImpl.java:142)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
2019-08-23 08:53:52,004 [ 9396] WARN - i.remotebrowser.ServerTreeNode - Could not resolve file "sftp://".
org.apache.commons.vfs2.FileSystemException: Could not resolve file "sftp://".
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:346)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:315)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:726)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:648)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:257)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
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.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ssh.AuthFailSshTransportException: Authentication failed: arraycopy: last source index 178 out of bounds for byte[139]
at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:447)
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:209)
at com.intellij.ssh.impl.SshConnection.b(SshConnection.kt:205)
at com.intellij.ssh.impl.SshConnection.c(SshConnection.kt:159)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:88)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:172)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:183)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:31)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.a(FailSafeSftpChannel.kt:130)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.access$supplyUnderlyingFileObject(FailSafeSftpChannel.kt:24)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel$file$1.invoke(FailSafeSftpChannel.kt:53)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel$file$1.invoke(FailSafeSftpChannel.kt:24)
at com.intellij.ssh.impl.channels.FailSafeRemoteFileObject.exists(FailSafeRemoteFileObject.kt:253)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.getFileType(PlatformSftpFileSystem.java:94)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.makeFileName(PlatformSftpFileObject.java:56)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:47)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:40)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.createFile(PlatformSftpFileSystem.java:45)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:342)
... 13 more
Caused by: net.schmizz.sshj.userauth.UserAuthException: arraycopy: last source index 178 out of bounds for byte[139]
at net.schmizz.sshj.userauth.UserAuthException$1.chain(UserAuthException.java:33)
at net.schmizz.sshj.userauth.UserAuthException$1.chain(UserAuthException.java:26)
at net.schmizz.concurrent.Promise.deliverError(Promise.java:95)
at net.schmizz.sshj.userauth.UserAuthImpl.notifyError(UserAuthImpl.java:156)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:601)
at net.schmizz.sshj.transport.Reader.run(Reader.java:65)
Caused by: net.schmizz.sshj.common.SSHException: arraycopy: last source index 178 out of bounds for byte[139]
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:36)
at net.schmizz.sshj.common.SSHException$1.chain(SSHException.java:29)
at net.schmizz.sshj.transport.TransportImpl.die(TransportImpl.java:595)
... 1 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 178 out of bounds for byte[139]
at java.base/java.lang.System.arraycopy(Native Method)
at net.schmizz.sshj.signature.SignatureECDSA.encode(SignatureECDSA.java:96)
at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putSig(KeyedAuthMethod.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.sendSignedReq(AuthPublickey.java:74)
at net.schmizz.sshj.userauth.method.AuthPublickey.handle(AuthPublickey.java:45)
at net.schmizz.sshj.userauth.UserAuthImpl.handle(UserAuthImpl.java:142)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
2019-08-23 08:53:52,237 [ 9629] INFO - tellij.openapi.util.IconLoader - replace '/nodes/errorIntroduction.svg' with '/icons/nodes/errorIntroduction.svg'
2019-08-23 08:53:53,902 [ 11294] INFO - ings.impl.UpdateCheckerService - channel: release
2019-08-23 08:53:54,791 [ 12183] INFO - tellij.openapi.util.IconLoader - replace '/actions/help.svg' with '/icons/actions/help.svg'
2019-08-23 08:53:57,291 [ 14683] INFO - pi.util.registry.RegistryValue - Registry value 'ide.mac.allowDarkWindowDecorations' has changed to 'false'
=== About ===
Build version: WebStorm 2019.2 Build #WS-192.5728.87 July 22, 2019
Java version: 11.0.3+12-b304.10x86_64
Operating System: Mac OS X (10.14.6, x86_64)
JVM version: OpenJDK 64-Bit Server VM JetBrains s.r.o
=== System ===
Number of CPU: 16
Used memory: 114Mb
Free memory: 67Mb
Total memory: 181Mb
Maximum available memory: 1979Mb
=== Displays ===
Displays:
Display 0: 3360x2100; scale: 2.00
=== Plugins ===
Custom plugins: [Material Theme UI (4.3.5), Markdown (192.5728.98), PostCSS (192.5728.12), JS GraphQL (2.2.0), Ember.js (2019.2.1-0)]
Disabled plugins:[Configuration Script (192.5728.87), Java Server Pages (JSP) (192.5728.87)]
=====PERFORMANCE SUMMARY=====
Filesystem Info:
File system is case sensitive: false
Are there symlinks: false
Number of files: 6
Project Info:
Number of opened files: 0
=== About ===
Build version: WebStorm 2019.2 Build #WS-192.5728.87 July 22, 2019
Java version: 11.0.3+12-b304.10x86_64
Operating System: Mac OS X (10.14.6, x86_64)
JVM version: OpenJDK 64-Bit Server VM JetBrains s.r.o
=== System ===
Number of CPU: 16
Used memory: 114Mb
Free memory: 67Mb
Total memory: 181Mb
Maximum available memory: 1979Mb
=== Displays ===
Displays:
Display 0: 3360x2100; scale: 2.00
=== Plugins ===
Custom plugins: [Material Theme UI (4.3.5), Markdown (192.5728.98), PostCSS (192.5728.12), JS GraphQL (2.2.0), Ember.js (2019.2.1-0)]
Disabled plugins:[Configuration Script (192.5728.87), Java Server Pages (JSP) (192.5728.87)]
=====DEPLOYMENT SETTINGS=====
Default Server : UBS
------------------------
Server name :
Server type : SFTP
Project level : true
Host :
Port :
Root path : "/"
Web URL : "http://"
Mappings :
"" : "null"
Excluded paths :
Auth Type : KEY_PAIR
Ignore info messages : false
Control encoding : UTF-8
Limit concurrent connections : 0
Send keep alive messages each (s) : 300
=====ADDITIONAL SETTINGS=====
Exclude items by name : .svn;.cvs;.idea;.DS_Store;.git;.hg;*.hprof;*.pyc
Operations logging : DETAILS
Stop operation on the first error : false
Overwrite up-to-date files : true
Preserve file timestamps : true
Delete target items when source do not exist : false
Create empty directories : false
Prompt when overwriting or deleting local items : true
Upload changed files automatically : Never
Upload external changes : false
Override default permissions on files : -1
Override default permissions on folders : -1
Warn when uploading over newer file : NONE
Notify of remote changes : false
Hello, just following up on this.
Does anyone have any recommendations on how I can fix this error? I've tried reinstalling, refreshing the keys, resetting the known_host file to name a few solutions.
I'm stuck too, seems like rolling back to an older version of the IDE may be the answer.
Hey, thanks Jon... it feels better knowing I'm not the only one. :-)