could not close the output stream for file

 

Hey!
I heve this problem :
[28.09.2018 9:26] Failed to transfer file 'D:\progects\###########/\page-news.php': could not close the output stream for file "ftp://###########//wp-content/themes/university2/page-news.php".
[28.09.2018 9:26] Failed to transfer file 'D:\progects\###########/\page-news.php': could not create FTP directory "ftp://###########//wp-content".

what should I do?

 

 

 

2018-09-28 09:26:33,650 [4364515] WARN - ins.webDeployment.TransferTask - Copy: file:///D:/progects/###########/page-news.php to ftp://###########/wp-content/themes/university2/page-news.phpfailed
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///D:/progects/###########/page-news.php" to "ftp://###########/wp-content/themes/university2/page-news.php".
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:849)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(TransferOperation.java:737)
at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(TransferOperation.java:24)
at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(TransferOperation.java:216)
at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(TransferTask.java:503)
at com.jetbrains.plugins.webDeployment.RemoteHostTask.lambda$doRun$0(RemoteHostTask.java:240)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.lambda$executeServerOperationSilently$1(RemoteConnection.java:43)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(RemoteConnectionPool.java:104)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperationSilently(RemoteConnection.java:43)
at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(RemoteHostTask.java:240)
at com.jetbrains.plugins.webDeployment.AutoUploadComponent$FileListenerImpl$2.run(AutoUploadComponent.java:538)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
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 close the output stream for file "ftp://###########/wp-content/themes/university2/page-news.php".
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:770)
at com.jetbrains.plugins.webDeployment.FileTransferUtil.copyContent(FileTransferUtil.java:47)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:846)
... 23 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.read(BufferedReader.java:182)
at org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:314)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)
at org.apache.commons.net.ftp.FTP.getReply(FTP.java:692)
at org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1813)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.completePendingCommand(FTPClientWrapper.java:262)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject$FtpOutputStream.onClose(FtpFileObject.java:833)
at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:86)
at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:76)
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:766)
... 25 more
2018-09-28 09:26:36,865 [4367730] WARN - ins.webDeployment.TransferTask - Copy: file:///D:/progects/###########/page-news.php to ftp://###########/wp-content/themes/university2/page-news.phpfailed
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///D:/progects/###########/page-news.php" to "ftp://###########/wp-content/themes/university2/page-news.php".
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:849)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(TransferOperation.java:737)
at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(TransferOperation.java:24)
at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(TransferOperation.java:216)
at com.jetbrains.plugins.webDeployment.TransferTask.executeOperations(TransferTask.java:503)
at com.jetbrains.plugins.webDeployment.RemoteHostTask.lambda$doRun$0(RemoteHostTask.java:240)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.lambda$executeServerOperationSilently$1(RemoteConnection.java:43)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool$RemoteConnectionImpl.executeServerOperation(RemoteConnectionPool.java:104)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnection.executeServerOperationSilently(RemoteConnection.java:43)
at com.jetbrains.plugins.webDeployment.RemoteHostTask.doRun(RemoteHostTask.java:240)
at com.jetbrains.plugins.webDeployment.AutoUploadComponent$FileListenerImpl$2.run(AutoUploadComponent.java:538)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
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 create folder "ftp://###########/wp-content".
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:426)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:409)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:409)
at org.apache.commons.vfs2.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1372)
at org.apache.commons.vfs2.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:481)
at org.apache.commons.vfs2.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:459)
at com.jetbrains.plugins.webDeployment.FileTransferUtil.copyContent(FileTransferUtil.java:42)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:846)
... 23 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not create FTP directory "ftp://###########/wp-content".
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doCreateFolder(FtpFileObject.java:576)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:415)
... 30 more

0
7 comments

How did you get this error? Is this some deployment operation? Did you check if you're able to upload the same project using e.g. FileZilla?

0

I'm trying to upload a modified file via ftp

if i trying to upload file with fileZilla, once empty file was uploaded, once all right

0

if i trying to upload file with fileZilla, once empty file was uploaded, once all right

There's something wrong with the connection to the server, or with the server itself then. Please check what can cause the issue on your side, try uploading from a different ISP or something similar.

0

I have the same problem, it used to work in the passed, this doesn't happen every time

0

@Elia Weiss, please submit a support ticket attaching the IDE log while having #com.jetbrains.plugins.webDeployment added to Help | Debug Log Settings. Please also make a connection attempt prior to collecting the log.

0

For everyone who faced with it - check additionally if you have enough disk space on your remote server:

$ df -h

In my case it was just 100% usage of the disk space. After clearing the disk space everything got work again.

2

I have the same problem, it coursed by my disk is full, so I solved this problem after I cleaned my remote server disk

0

Please sign in to leave a comment.