could not close the output stream for file Follow
I'm using PhpStorm to develop my online website and using FTP Synchronization for that. everything was good but unfortunately now when i saving my file, php file not uploading and just print this error in file transfer window:
[3/4/2016 2:16 AM] Failed to transfer file 'C:\Users\hamid\PhpstormProjects\dlepersian.ir\engine\inc\hyvip.php': could not close the output stream for file "ftp://dlepersian.ir/engine/inc/hyvip.php".
Please sign in to leave a comment.
Please try to enable File | Settings | Build, Execution, Deployment | Deployment > Your server > Advanced options > Passive Mode and check if the issue can be reproduced after that.
Hello, thanks for your answer, but problem happens when that option enabled.
this is my default options:
Passive Mode: Enabled
Compatibility Mode: Enabled
Always use List Command: Enabled
We would like to take a look at the detailed log. Please enable debug information collection by following next steps:
I was thinking the problem maybe caused by my Server, so I changed That, But after 2-3 hours, problem happens again. this is what you want. thank you for your helps.
I have the same problem, it used to work in the passed, this doesn't happen every time
I am having this problem as well... This does not happen in FileZilla or Netbeans connecting to the same server. If I toggle between passive modes or go to the server and force a disconnect it will re-connect and work but only for a couple of uploads before throwing the error again.
This is the only deployment capable software I actually PAY for so having this as an error is frustrating when it does not work.
Unfortunately, currently there's no solution. For the reference: https://youtrack.jetbrains.com/issue/WI-20698
any update on this issue? When will it be resolved?
Unfortunately, there is no ETA available on this issue resolution, sorry.
Same problem here when trying to upload files to a project that was previously deployed with PHPStorm / FTP without issues.
EDIT: I selected every folder in the project and deployed it manually via context menu. It worked. So PHPStorm is overwhelmed by a few dozen files apparently.
Hi Michael, please check out the solution mentioned here: https://youtrack.jetbrains.com/issue/WI-47822
Works like a charm for me.
Because another ftp client connected to same server , with same ip .
try disconnect another ftp connection .
this was works for me.
This bug still exists in version 111 211.7442.50 june 4 2021
What I experienced: On the server side: no more incoming requests, no errors, the firewall is not blocking anything.
If I restart PHPStorm, the problem will be fixed
If the File | Settings | Build, Execution, Deployment | Deployment> Your server> Advanced options> Passive Mode check or uncheck (whichever happens, it works back there), the error will be fixed immediately.
I think some cache is cleared when the check mark is inserted or removed.
Or just smoothly PhpStorm deletes the connection stuff and re-initializes it.
It comes out very thinly if they went densely, you may come across two uploads, I don't know, but that's not good!
Unfortunately, there is no single solution and there could be plenty of reasons for deployment misbehaviour and logs could be a nice starting point to check out what is really happening. Before collecting these and contacting the support team, please enable the extended log level. To increase the deployment actions logging level, please add the following lines to the "Help > Diagnostic Tools > Debug Log Settings" section:
Afterwards, you may collect logs with the "Help > Collect Logs" menu option.
here to report the same issue. worked a few days back but since yesterday i cant upload shit, whilst the connection works fine. bug report is being sent.
ok: false alert.
in my case i just realized, that the server package was limited/full so the server refused taking any new files..
Sorry, not sure if I understand your concern, what bar?
Sometime this issue is caused when server's space is full.
Hi, I had the same issue and the space on server was full in my case.
[31.08.2022 18:40] Upload to mktp
[31.08.2022 18:40] Upload file '.../Service.php' to '/var/www/.../release/src/.../Service.php'
[31.08.2022 18:40] Failed to transfer file '.../Service.php'. Could not close the output stream for file "sftp://server-hostname/src/.../Service.php".
Dear all, I face exactly the same problem. I have been working on the concerned project for several years with PhpStorm and never had any issues with FTP uploads. I can't exactly tell when these issues started, but it's been a couple of months now for sure.
The 'workaround' I found this morning based on the above posts is that I only upload single files and before each upload I have to first disable passive mode and then re-eneable it again. This must clearly be a bug in PhpStorm (or related libraries it uses).
PS: There is more than enough server space and I have no problems uploading files using FileZilla, for example.
I have exactly the same problem. So long do I see the company can't solve this software problem? My version is: PhpStorm 2022.2.1. It is not free software.
09.09.2022 13:38] Failed to transfer file 'C:\MyCode\2022\newsletter2022\smarty\templates\users.tpl'. Could not close the output stream for file "ftp://127.0.0.1:7272/smarty/templates/users.tpl". (Connection refused: no further
What am I supposed to do with it?
Daniel Baettig, Info Sawa23, in the Advanced options of your FTP deployment configuration, please try limiting the number of connections to 1. Would that improve the situation?
It doesn't change anything. Other programs with this FTP work fine. The problem is PhpStorm.
[09.09.2022 15:27] Failed to transfer file 'C:\MyCode\2022\newsletter2022\smarty\templates\index.tpl'. Could not close the output stream for file "ftp://127.0.0.1:7272/smarty/templates/index.tpl". (Connection refused: no further information)
Thanks a lot for your fast reply, Eugene. I did a quick test now with setting the number of connections to 1 and it seemed to work. However, I will perform some more checks over the coming days as it sometimes works and then suddenly fails again. I will keep you posted.
Info Sawa23, please add
#com.jetbrains.plugins.webDeploymentto Help | Diagnostic Tools | Debug Log Settings, restart the IDE, reproduce the issue once again, and then share the logs (Help | Collect Logs and Diagnostic Data) in a support ticket (Help | Contact Support); we need to troubleshoot the issue. Thanks!
Daniel Baettig, thank you for the update; happy to hear it got a bit better!
unfortunately, the problem persists. I have tried both "tricks" (enabling/disabling passive mode and limiting the connections to 1). Sometimes I manage to upload an individual file, but generally it does not work. I have been using PhpStorm for many years now and never had problems with deploying files to an FTP server. This has started a few months ago only.
After several trials I usually upload my files using FileZilla - which continues to work without any problems, so it must be an issue with PhpStorm... Can you please provide further advice?
Thank you and kind regards, Daniel
PS: My installation of PhpStorm is up to date.
Daniel Baettig, really sorry to hear that! Let's troubleshoot the issue, then.
#sshjtoo in case you are using SFTP and not FTP) to Help | Diagnostic Tools | Debug Log Settings, reproduce the issue (preferably with a single-file upload), and then submit the logs (Help | Collect Logs and Diagnostic Data) in a support ticket (Help | Contact Support).
Strangely, this does not occur with files smaller than 16KByte. The code of the files that are not transferred correctly always ends at approx. 16KByte (see PHP message when calling up these defective files).
Is there any chance that you have a locally installed firewall/antivirus? I have seen a similar issue with the ESET firewall and files were not fully uploaded until PhpStorm was not added to the exclusions list.
... the same behaviour with Bitdefender Firewall deactivated.
I tested a upload with WinSCP - same connection setup - no problems at all. So it is a problem of PHPStorm/JetBrains. All other applications like Nextcloud, Thunderbird were closed.