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
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

Is anyone else seeing this issue?

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


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(
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(
at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(
at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(
at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(
at com.jetbrains.plugins.webDeployment.RemoteHostTask$5.compute(
at com.jetbrains.plugins.webDeployment.RemoteHostTask$5.compute(
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection$2.compute(
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperation(
at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(
at com.jetbrains.plugins.webDeployment.AutoUploadComponent$FileListenerImpl$
at com.intellij.openapi.progress.impl.CoreProgressManager$
at com.intellij.openapi.progress.impl.CoreProgressManager$
at com.intellij.openapi.progress.impl.CoreProgressManager.a(
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(
at com.intellij.openapi.progress.impl.ProgressManagerImpl$
at com.intellij.openapi.application.impl.ApplicationImpl$
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.jetbrains.ide.PooledThreadExecutor$1$
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(
at com.jetbrains.plugins.webDeployment.FileTransferUtil.copyContent(
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(
... 25 more
Caused by: Pipe closed
at com.jcraft.jsch.ChannelSftp.fill(
at com.jcraft.jsch.ChannelSftp.header(
at com.jcraft.jsch.ChannelSftp.checkStatus(
at com.jcraft.jsch.ChannelSftp.access$300(
at com.jcraft.jsch.ChannelSftp$1.flush(
at com.jcraft.jsch.ChannelSftp$1.close(
at org.apache.commons.vfs2.util.MonitorOutputStream.close(
at org.apache.commons.vfs2.util.MonitorOutputStream.close(
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(
... 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. 



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.

Vladimir Luchansky


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?


Please sign in to leave a comment.