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 174443 - FTP logout repeated error
Summary: FTP logout repeated error
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P1 blocker with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 179203 197228 202280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-13 13:34 UTC by laurent_h
Modified: 2011-09-21 12:45 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ftp error logout (19.07 KB, image/png)
2009-10-13 13:34 UTC, laurent_h
Details
FTP log with logout error (5.39 KB, text/plain)
2011-02-16 15:09 UTC, CheeseSucker
Details
IDE log after FTP logout error (59.97 KB, text/plain)
2011-02-16 15:09 UTC, CheeseSucker
Details
Faildialog (10.30 KB, image/png)
2011-02-16 15:21 UTC, CheeseSucker
Details
Save failed, version 7.0.1 - Ignore connection errors checked. (43.53 KB, image/png)
2011-08-08 09:29 UTC, melight
Details
IDE Log, just after the error. (55.65 KB, text/plain)
2011-08-08 12:39 UTC, melight
Details
keep alive/upload on save issue with ignore connection errors checked (32.93 KB, text/x-log)
2011-09-21 10:45 UTC, ramzih
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurent_h 2009-10-13 13:34:07 UTC
Hi,

when I upload a document some times an error occured at end of connection with this message:
Cannot logout from server

It is very uncomfortable for a user that use ftp all along the day

I attach a screenshot
Comment 1 laurent_h 2009-10-13 13:34:58 UTC
Created attachment 89366 [details]
ftp error logout
Comment 2 Filip Zamboj 2009-10-13 15:04:15 UTC
hi, yep, this happens sometimes. I guess it happens when a timeout at logout occurs but am not sure about this.

Anyway, could you please start NetBeans using:

netbeans -J-Dorg.netbeans.modules.php.project.connections.level=500 

and then attach your IDE log (View > IDE Log) - please, do not copy&paste but attach, please
Comment 3 Tomas Mysik 2009-11-02 16:01:51 UTC
No response from reporter for a long time, so closing as WORKSFORME. Feel free to reopen if you disagree.

Thanks for reporting.
Comment 4 CheeseSucker 2011-02-16 15:09:27 UTC
Created attachment 106073 [details]
FTP log with logout error
Comment 5 CheeseSucker 2011-02-16 15:09:54 UTC
Created attachment 106074 [details]
IDE  log after FTP logout error
Comment 6 CheeseSucker 2011-02-16 15:20:58 UTC
Product Version: NetBeans IDE Dev (Build 201102160501)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; no_NO (nb)

I get this often too. I have "Upload on save" enabled, so I get a dialog box telling me the upload failed, and asks me if I want to disable the "upload on save" feature. (See attachment).

If this error should prove to be too difficult to fix, would it be possible to disable the dialog which appear? It gets quite annoying after getting it a few times.

I have attached the FTP and IDE log after getting the error. The server address and my company's name has been anonymized in these logs.

I did this when creating the logs:
 - Opened netbeans
 - Saved a file until it gave an ftp logout error. This happened on the fifth try.
Comment 7 CheeseSucker 2011-02-16 15:21:53 UTC
Created attachment 106076 [details]
Faildialog
Comment 8 Tomas Mysik 2011-06-03 06:31:05 UTC
*** Bug 197228 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Mysik 2011-06-06 09:42:37 UTC
*** Bug 197228 has been marked as a duplicate of this bug. ***
Comment 10 Tomas Mysik 2011-06-06 14:29:30 UTC
Fixed in trunk.

http://hg.netbeans.org/web-main/rev/2689a0566936
Comment 11 Tomas Mysik 2011-06-06 14:40:03 UTC
Transplanted to release 7.0.1.

http://hg.netbeans.org/releases/rev/47ef47dcb6d8
Comment 12 melight 2011-06-06 14:51:39 UTC
No WAY!!! Is it really fixed? Those are great great news. Waiting for the release :D
Comment 13 Tomas Mysik 2011-06-06 15:04:20 UTC
Well, to be honest - the error is just ignored (can be changed in remote connection configuration) since I have no idea why this occurs (upload is fine but logout is not).

If you want to try it sooner, download PHP development build 3313 (currently not finished yet) or newer [1] and let us know, any feedback is more than welcome.

Thanks for reporting.
[1] http://bertram.netbeans.org/hudson/job/PHP-build/
Comment 14 Tomas Mysik 2011-06-06 15:33:59 UTC
*** Bug 179203 has been marked as a duplicate of this bug. ***
Comment 15 Quality Engineering 2011-06-07 06:31:13 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/
User: 
Log:
Comment 16 Vladimir Riha 2011-07-27 11:10:14 UTC
I can verify that there is an option to "Ignore disconnect errors" and it's checked by default. Since it is basically the core of fix and no erros were displayed with this checked option, verified for me...

Product Version: NetBeans IDE 7.0.1 (Build 201107211357)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 17 melight 2011-08-08 08:41:40 UTC
(In reply to comment #16)
> I can verify that there is an option to "Ignore disconnect errors" and it's
> checked by default. Since it is basically the core of fix and no erros were
> displayed with this checked option, verified for me...
> 
> Product Version: NetBeans IDE 7.0.1 (Build 201107211357)
> Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
> System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Where is the "Ignore disconnect errors" option found?? I'd really love to ignore those errors...
Comment 18 Tomas Mysik 2011-08-08 09:02:20 UTC
(In reply to comment #17)
> Where is the "Ignore disconnect errors" option found?? I'd really love to
> ignore those errors...

In FTP configuration details (in Manage Remote Connections window).
Comment 19 melight 2011-08-08 09:29:08 UTC
Created attachment 109847 [details]
Save failed, version 7.0.1 - Ignore connection errors checked.

I got this just now, checking the ingnore connection errors in the connection's settings didn't help :( 

Save failed, version 7.0.1 - Ignore connection errors checked.
Comment 20 Tomas Mysik 2011-08-08 09:36:24 UTC
Screenshot is useless, we need IDE log with the exception.
Comment 21 melight 2011-08-08 12:39:45 UTC
Created attachment 109856 [details]
IDE Log, just after the error.

Added log
Comment 22 Tomas Mysik 2011-08-08 13:28:30 UTC
Two exceptions in the log:


1) Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot log out from server ftp.pnc.co.il.
	at org.netbeans.modules.php.project.connections.ftp.FtpClient.disconnect(FtpClient.java:179)

Looking at sources of NB 7.0.1 [1], it seems that the "Ignore Disconnect Errors" is NOT checked. Please, double check the settings of the proper FTP connection (since the default value is unchecked, it means do not ignore errors).


2) Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot connect to server ftp.pnc.co.il.
	at org.netbeans.modules.php.project.connections.ftp.FtpClient.connect(FtpClient.java:163)

This one is irrelevant, FTP client cannot connect.

Thanks for reporting.
[1] http://hg.netbeans.org/releases/file/618b573e7ab8/php.project/src/org/netbeans/modules/php/project/connections/ftp/FtpClient.java
Comment 23 melight 2011-08-08 13:32:45 UTC
(In reply to comment #22)
> Two exceptions in the log:
> 
> 
> 1) Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot
> log out from server ftp.pnc.co.il.
>     at
> org.netbeans.modules.php.project.connections.ftp.FtpClient.disconnect(FtpClient.java:179)
> 
> Looking at sources of NB 7.0.1 [1], it seems that the "Ignore Disconnect
> Errors" is NOT checked. Please, double check the settings of the proper FTP
> connection (since the default value is unchecked, it means do not ignore
> errors).
> 
> 
> 2) Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot
> connect to server ftp.pnc.co.il.
>     at
> org.netbeans.modules.php.project.connections.ftp.FtpClient.connect(FtpClient.java:163)
> 
> This one is irrelevant, FTP client cannot connect.
> 
> Thanks for reporting.
> [1]
> http://hg.netbeans.org/releases/file/618b573e7ab8/php.project/src/org/netbeans/modules/php/project/connections/ftp/FtpClient.java

I have "Ignore Disconnect Errors" checked for sure. This is the only feature I was waiting for in 7.0.1, so it is checked indeed.
Comment 24 Tomas Mysik 2011-08-08 14:04:22 UTC
(In reply to comment #23)
> I have "Ignore Disconnect Errors" checked for sure.

In such case, I will try to reproduce and let you know.
Comment 25 Tomas Mysik 2011-08-09 09:11:23 UTC
I just verified that it works in the development version of NetBeans (using debugger and simulating an exception during disconnecting).

Unfortunately, since I'm not able to reproduce your problem, I can only repeat - just be sure that the Ignore Disconnect Errors checkbox is checked for the server which is assigned to you project (since this checkbox must be checked for all problematic FTP servers).
Comment 26 Tomas Mysik 2011-09-20 08:58:01 UTC
*** Bug 202280 has been marked as a duplicate of this bug. ***
Comment 27 ramzih 2011-09-21 10:43:27 UTC
(In reply to comment #26)
> *** Bug 202280 has been marked as a duplicate of this bug. ***

Hi,

I checked the Ignore connection errors option but still have the same issue.
I'm still on Scenario 1 described in Bug 187836 and the symptoms are the same as described in Bug 202280.

The log is attached.
Comment 28 ramzih 2011-09-21 10:45:13 UTC
Created attachment 110958 [details]
keep alive/upload on save issue with ignore connection errors checked
Comment 29 Tomas Mysik 2011-09-21 11:50:44 UTC
There is no exception in your log. The only message related to FTP failure is:

> Reason: Cannot change directory to /testapp/protected/views/layouts.

It is another issue, likely you don't have permissions to enter that directory on your server?

BTW I have noticed that you are using OpenJDK - please notice that OpenJDK has some bugs, try to use Sun/Oracle JDK instead.

Thanks.
Comment 30 Tomas Mysik 2011-09-21 11:51:11 UTC
Changing back to verified fixed.
Comment 31 melight 2011-09-21 12:33:45 UTC
Guys,
first of all I'd like to say that I really appreciate your work, and love the IDE. There are some really great and addictive features in it :)

Second, from a user perspective: is there any chance to make the whole FTP/SFTP usage experience transparent to the user? I've seen it done in other software. 
No dialogs, no errors over folders with no permissions, keep alive dialogs, SFTP keys confirmation dialogs on every save etc.
Is there a way to make it simply do it's thing and output all the errors (if found) to the console?

Thanks
Comment 32 Tomas Mysik 2011-09-21 12:45:50 UTC
(In reply to comment #31)
> first of all I'd like to say that I really appreciate your work, and love the
> IDE. There are some really great and addictive features in it :)

Thanks a lot!

> Second, from a user perspective: is there any chance to make the whole FTP/SFTP
> usage experience transparent to the user? I've seen it done in other software. 
> No dialogs, no errors over folders with no permissions, keep alive dialogs,
> SFTP keys confirmation dialogs on every save etc.
> Is there a way to make it simply do it's thing and output all the errors (if
> found) to the console?

Feel free to submit enhancements and/or bugs [1] with description, scenario, expected behavior etc.

Thanks.
[1] please, exactly one enhancement/bug for one idea/problem