Problem with ftp sync with phpstorm

Hi,

My phpstorm version is 2017.1.3

My project uses FTP to sync.It works fine in the past.

Recently uploaded often unsuccessful.Especially after reconnect the network, upload will fail.

Error infomation :

 Failed to transfer file 'XXXX': could not put FTP file "XXXX".

Test connection is successful.

The user has write access.

I also used passive mode .

But all these does not work.

What's the problem?How to fix it ?

Thank you ~

 

0
6 comments
Avatar
Vladimir Luchansky

Hello,

If you reproduce this and check idea.log file in Help > Show Log in ... , can you see there any detailed errors?

0

This log?

2017-05-11 14:33:01,055 [17401105] WARN - ins.webDeployment.TransferTask - Copy: file:///Users/chenxi23/Program/stock/stock/application/library/Render/Cardlist/UsChannel/Index.php to ftp://10.210.241.170/application/library/Render/Cardlist/UsChannel/Index.phpfailed
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///Users/chenxi23/Program/stock/stock/application/library/Render/Cardlist/UsChannel/Index.php" to "ftp://10.210.241.170/application/library/Render/Cardlist/UsChannel/Index.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:502)
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://10.210.241.170/application/library/Render/Cardlist/UsChannel/Index.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: org.apache.commons.vfs2.FileSystemException: Could not put FTP file "ftp://10.210.241.170/application/library/Render/Cardlist/UsChannel/Index.php".
at org.apache.commons.vfs2.provider.ftp.FtpFileObject$FtpOutputStream.onClose(FtpFileObject.java:842)
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

0

Generally, it's this bug: https://youtrack.jetbrains.com/issue/WI-20698
Does restarting PhpStorm help?

0

Restart does not work

0

Unfortunately there's no solution/workaround for this issue. Please vote/watch the issue to receive updates on it.

0

I have the same problem, it used to work in the passed, this doesn't happen every time, might be a timeout issue

0

Please sign in to leave a comment.