IntelliJ sftp deployment stuck at 100%

IntelliJ deployment upload is getting stuck when uploading changed files. I've set the IDE to deploy automatically when it detects changes and it kicks it off as soon as I change a file. The project is a 'static' web project containing PHP, html, js, etc. files.  Unfortunately, it appears to stick at 100% and will run indefinitely. It also blocks the shutdown of the IDE so I have to kill the process. I setup logging and it look the underlying issue is with the ssh key, but the IDE should probably handle this a little better

14112 - 65.325: [m: 6723 972] total classes: processed=37000 instrumented=34205 ms=13797 ms
14112 - 65.535: SP: pinned com.intellij.openapi.util.WriteExternalException
14112 - 65.770: SP: pinned java.security.InvalidKeyException
14112 - 83.769: SP: pinned java.awt.datatransfer.MimeTypeParseException
14112 - 86.760: f_t_a_d: #31 trn=46 conv=0/170 ms=1
14112 - 151.634: f_t_a_d: #47 trn=23 conv=0/176 ms=1
14112 - 157.921: f_t_a_d: #48 trn=66 conv=0/177 ms=1
14112 - 252.426: f_t_a_d: #51 trn=51 conv=0/172 ms=1
14112 - 366.794: SP: pinned java.net.SocketTimeoutException

Is anyone else seeing this issue?

 I should note I'm using IntelliJ 2016.2.1 on Linux Mint 18 x64.

3 comments
Comment actions Permalink

I switched back to IntelliJ 15.0.6 and am seeing the same behavior, though base on the follow log information maybe it's an issue with our server? Here output from the IntelliJ 15.0.6 idea.log file:

2016-08-09 10:53:08,568 [ 42619] INFO - s.webDeployment.PublishUtils$2 - Using "/tmp/vfs_cache" as temporary files store. 
2016-08-09 10:53:08,662 [ 42713] INFO - ellij.project.impl.ProjectImpl - 27 project components initialized in 24 ms
2016-08-09 10:53:08,662 [ 42713] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2016-08-09 10:54:10,291 [ 104342] WARN - ins.webDeployment.TransferTask - Copy: file:///home/work/cloud/code/esweb/template/AccountSaleStatement.tpl to sftp://********/home/zac/code/esweb/template/AccountSaleStatement.tplfailed
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///home/work/cloud/code/esweb/template/AccountSaleStatement.tpl" to "sftp://********/home/zac/code/esweb/template/AccountSaleStatement.tpl".
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:854)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(TransferOperation.java:736)
at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(TransferOperation.java:28)
at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(TransferOperation.java:228)
at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(TransferTask.java:499)
at com.jetbrains.plugins.webDeployment.RemoteHostTask$5.compute(RemoteHostTask.java:232)
at com.jetbrains.plugins.webDeployment.RemoteHostTask$5.compute(RemoteHostTask.java:230)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection$2.compute(RemoteConnection.java:58)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(RemoteConnectionPool.java:108)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperation(RemoteConnection.java:56)
at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(RemoteHostTask.java:230)
at com.jetbrains.plugins.webDeployment.AutoUploadComponent$FileListenerImpl$2.run(AutoUploadComponent.java:474)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
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)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not close the output stream for file "sftp://********/home/zac/code/esweb/template/AccountSaleStatement.tpl".
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:770)
at com.jetbrains.plugins.webDeployment.FileTransferUtil.copyContent(FileTransferUtil.java:50)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:851)
... 25 more
Caused by: java.io.IOException: Pipe closed
at java.io.PipedInputStream.read(PipedInputStream.java:307)
at java.io.PipedInputStream.read(PipedInputStream.java:377)
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2882)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2908)
at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:2446)
at com.jcraft.jsch.ChannelSftp.access$300(ChannelSftp.java:36)
at com.jcraft.jsch.ChannelSftp$1.flush(ChannelSftp.java:836)
at com.jcraft.jsch.ChannelSftp$1.close(ChannelSftp.java:852)
at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:76)
at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:76)
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:766)
... 27 more

-- EDIT --

IntelliJ 15 does not hang indefinitely, it times out after 1 minute so I can continue working and close the application normally. 

 

0
Comment actions Permalink

Well, as a last ditch effort I thought, why not try a reboot? So I did and uploading via sftp is working now. No idea what or why but, there it is. And this is't even a windows box.

0
Avatar
Vladimir Luchansky
Comment actions Permalink

Hello,

Pipe error surely tells us about networking problems and, unfortunately, the whole thing has been happening under the Java's hood so I can't tell now why it happened. Maybe there were some pending updates? Was there anything in system logs at that time frame?

0

Please sign in to leave a comment.