This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233485 - Error on closing remote connection by FTP server
Summary: Error on closing remote connection by FTP server
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 11:42 UTC by mmolda
Modified: 2013-08-28 14:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Warning screenshot (35.43 KB, image/png)
2013-07-26 11:42 UTC, mmolda
Details
Remote Log - connection (604 bytes, text/plain)
2013-07-26 13:47 UTC, mmolda
Details
Remote Log: Remote synchronization (1.35 KB, text/plain)
2013-07-26 13:48 UTC, mmolda
Details
NOOP failed IDE log (3.38 KB, text/plain)
2013-08-19 15:47 UTC, mmolda
Details
NOOP failed full IDE log (67.33 KB, text/plain)
2013-08-22 12:44 UTC, mmolda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mmolda 2013-07-26 11:42:17 UTC
Created attachment 137857 [details]
Warning screenshot

My FTP server is set to close connection after 600 seconds of no transfer, so when I'm inactive for a few minutes, NetBeans is trying to keep-alive connection by sending 200 NOOP command. After 600 seconds server sends:
421 No transfer timeout (600 seconds): closing control connection
QUIT
Keep-alive failed for server moldamil.sk (unknown reason).

NetBeans shows Warning window with Error message (see screenshot). I'm not sure but I think this warning should not pop out.

Tomasi, what do you think?
Comment 1 Tomas Mysik 2013-07-26 12:20:30 UTC
Well, since it is an error (the line is red), I don't think we can distinguish it from some other error... But I will try to look at it.

Thanks.
Comment 2 Tomas Mysik 2013-07-26 13:19:14 UTC
Please, paste here your full FTP remote log.

Thanks.
Comment 3 mmolda 2013-07-26 13:47:03 UTC
Created attachment 137863 [details]
Remote Log - connection

Remote Log output (creating remote project and downloading files(index.php) from FTP)
Comment 4 mmolda 2013-07-26 13:48:15 UTC
Created attachment 137864 [details]
Remote Log: Remote synchronization

Edited index.php and Uploaded On Save.
Comment 5 Tomas Mysik 2013-07-29 04:29:06 UTC
Weird, after ten NOOPs, there should be some "real" FTP operation. I will look at it.

Thanks.
Comment 6 Tomas Mysik 2013-07-29 05:01:03 UTC
Aha, the "real" operation is not logged in the Output window. Could you please start NB with [1], reproduce your problem and attach IDE log?

Thanks.
[1] -J-Dorg.netbeans.modules.php.project.connections.ftp.level=FINE
Comment 7 mmolda 2013-08-19 15:46:42 UTC
Attaching IDE log.
Comment 8 mmolda 2013-08-19 15:47:12 UTC
Created attachment 138876 [details]
NOOP failed IDE log
Comment 9 Tomas Mysik 2013-08-20 09:07:15 UTC
Please, always attach the full log. Thanks.
Comment 10 mmolda 2013-08-22 12:44:03 UTC
Created attachment 139061 [details]
NOOP failed full IDE log

Sorry, here it is.
Comment 11 Tomas Mysik 2013-08-23 05:16:16 UTC
So, this is "problem" of your FTP server - it simply has some timeout for being idle (it seems to me that if you don't transfer any file during this time interval, server will disconnect you). Have a look e.g. here [1]. I will try to improve the current behaviour to avoid this (using LIST command instead of PWD, it apparently does not help, at least in your case).

Thanks.
[1] http://www.smartftp.com/support/kb/421-no-transfer-timeout-f45.html
Comment 12 Tomas Mysik 2013-08-23 05:22:12 UTC
Could you please try it now?

Thanks.

http://hg.netbeans.org/web-main/rev/4b0c50d2a1f2
Comment 13 mmolda 2013-08-23 10:13:39 UTC
(In reply to Tomas Mysik from comment #11)
> So, this is "problem" of your FTP server - it simply has some timeout for
> being idle (it seems to me that if you don't transfer any file during this
> time interval, server will disconnect you).

Yes, that is what I wrote in bug description. I will test it, thanks :)
Comment 14 Tomas Mysik 2013-08-23 10:46:36 UTC
For the next version of NetBeans, we could try to implement automatic reconnect if keep-alive fails. Please, submit it as a new enhancement.

Thanks.
Comment 15 mmolda 2013-08-28 14:29:38 UTC
> I will try to improve the current behaviour to avoid this (using LIST command
> instead of PWD

Looks like using LIST command solves the problem. Thank you! Verified.

> For the next version of NetBeans, we could try to implement automatic
> reconnect if keep-alive fails. Please, submit it as a new enhancement.

Reported as Bug 234871. Thanks.
Comment 16 mmolda 2013-08-28 14:32:04 UTC
Product Version: NetBeans IDE Dev (Build 201308280001)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)