Problem Deleting File - WeOnlyDo Discussion board

Problem Deleting File (General questions)

by dtw01, Monday, December 04, 2006, 16:12 (6564 days ago)

I'm having a little trouble deleting a file from one specific FTP server we connect to. This server is the one that Kreso spefically added the L8 directory format option for.

The error I'm receiving in the response is: 506 Connection manager error on file deletion

It does actually delete the file.

I'm contemplating adding code to just treat this as a warning and not have my program abort.

Just wanted to run this by you to see if you had any ideas.

Re: Problem Deleting File

by woddrazen, Monday, December 04, 2006, 17:36 (6564 days ago) @ dtw01

Hi Dave,


We need to isolate your problem. Maybe you have problem with permissions.

Did you try to delete that file with some other FTP client? What is result?

If problem isn't with permissions, please can you send us FTPReply?

--------------------------------------------
Private Sub dlx1_FtpReplyEvent(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.FtpReplyArgs) Handles dlx1.FtpReplyEvent
Debug.Print(Args.Command & & Args.ReplyText)
End Sub
--------------------------------------------


Hope I helped.


Regards,
Drazen

Re: Problem Deleting File

by dtw01, Monday, December 04, 2006, 18:50 (6564 days ago) @ woddrazen

I know it's not a permission problem. Here is the entire log.

====================================================================================================
12/4/2006 7:44:48 AM MTPS_FTP (2.0.0.3) starting.
====================================================================================================
CommandLineArgs:
\EDISRV05SERVERAPPS$PRODMTPS_FTPMTPS_FTP.EXE -j:P-SDL-MAZ-INU-010 -S:SDL-NOR-INST -T:DOWNLOAD -L:\EDISRV05Jobs$PRODSDLMAZINU -R:/ACK* -l:\EDISRV05Jobs$PRODSDLMAZINUSDLMAZINU-010-FTP_2006-12-04_07-44-47.LOG -D:Y
----------------------------------------------------------------------------------------------------
-j:P-SDL-MAZ-INU-010
-S:SDL-NOR-INST
-T:DOWNLOAD
-L:\EDISRV05Jobs$PRODSDLMAZINU
-R:/ACK*
-l:\EDISRV05Jobs$PRODSDLMAZINUSDLMAZINU-010-FTP_2006-12-04_07-44-47.LOG
-D:Y
----------------------------------------------------------------------------------------------------
12/4/2006 7:44:50 AM Successfully connected to CLMSQL02PROD
----------------------------------------------------------------------------------------------------

Connecting to Site: SDL-NOR-INST Settings: Protocol=FTP Port=21 PASV=False TransferMode=Binary

Status: Connecting to server
Response: 220 stx2-533-prd FTP server starting...
Status: Sending authentication data
Command: USER bg01316
Response: 331 User bg01316 OK. Password required.
Command: PASS ********
Response: 230 OK. Logged in
Command: PWD
Response: 230 <virtual directory>
Status: Connected to server - idle

Calling Ftp1.ListDir(/)
Status: Setting transfer mode
Command: TYPE A
Response: 200 TYPE is now ASCII
Status: Changing current directory
Command: CWD /
Response: 230 <virtual directory>
Status: Downloading directory list from the server
Command: PORT 129,176,128,162,11,142
Response: 200 PORT command successful
Command: LIST
Response: 150 Connecting to mailbox
Options: -l
6116 Dec 01 2006 19:33:58 GENRPTSDLMAZOCU.CLM_00001.8920
269 Dec 01 2006 19:25:44 ACK.SDLMAZOCU.CLM_00001.2980
154 Dec 01 2006 16:01:57 TA162318_00001.txt
248577 Dec 01 2006 09:32:59 MA4010A1835FFI.20061201.093233.3867
154 Nov 30 2006 16:01:21 TA145837_00001.txt
154 Nov 29 2006 16:01:39 TA160842_00001.txt
154 Nov 28 2006 16:01:30 TA182409_00001.txt
154 Nov 27 2006 16:03:52 TA193518_00001.txt
154 Nov 24 2006 16:01:56 TA149641_00001.txt
154 Nov 22 2006 16:01:37 TA167796_00001.txt
154 Nov 21 2006 16:01:33 TA164811_00001.txt
154 Nov 20 2006 16:02:02 TA192427_00001.txt
154 Nov 17 2006 16:01:41 TA119425_00001.txt
154 Nov 16 2006 16:01:26 TA137163_00001.txt
154 Nov 15 2006 16:01:46 TA156557_00001.txt
154 Nov 14 2006 16:01:47 TA165153_00001.txt
154 Nov 13 2006 16:02:20 TA183562_00001.txt
154 Nov 10 2006 16:01:58 TA100198_00001.txt
154 Nov 09 2006 16:01:51 TA118484_00001.txt
154 Nov 08 2006 16:01:36 TA135935_00001.txt
154 Nov 07 2006 16:01:50 TA142530_00001.txt
154 Nov 06 2006 16:01:54 TA147855_00001.txt
99765 Nov 06 2006 11:34:29 Carrier_ID_Routing_Code_Changes_UPDATED.htm
154 Nov 03 2006 16:01:22 TA154594_00001.txt
154 Nov 02 2006 16:01:15 TA167362_00001.txt
154 Nov 01 2006 16:01:14 TA183971_00001.txt
99408 Nov 01 2006 12:50:27 Carrier_ID_Routing_Code_Changes.htm
154 Oct 31 2006 16:01:16 TA102759_00001.txt
154 Oct 30 2006 16:02:02 TA195508_00001.txt
154 Oct 27 2006 16:02:07 TA140047_00001.txt
154 Oct 26 2006 16:01:43 TA159074_00001.txt
154 Oct 25 2006 16:01:36 TA177448_00001.txt
154 Oct 24 2006 16:01:47 TA194080_00001.txt
154 Oct 23 2006 16:02:26 TA114460_00001.txt
Response: 226 34 matches total
Status: Connected to server - idle
Total objects in DirItems structure = 34

Calling Ftp1.GetFile(\EDIS

Re: Problem Deleting File

by dtw01, Monday, December 04, 2006, 18:54 (6564 days ago) @ dtw01

Previous log got chopped off. Here's the continuation.

Calling Ftp1.GetFile(\EDISRV05Jobs$PRODSDLMAZINUACK.SDLMAZOCU.CLM_00001.2980,/ACK.SDLMAZOCU.CLM_00001.2980)
Status: Setting transfer mode
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Status: Changing current directory
Command: CWD /ACK.SDLMAZOCU.CLM_00001.2980
Response: 230 <virtual directory>
Status: Receiving data from server
Status: Checking remote file size
Command: SIZE ACK.SDLMAZOCU.CLM_00001.2980
Response: 501 Syntax error - invalid command
Status: Receiving data from server
Command: PORT 129,176,128,162,11,146
Response: 200 PORT command successful
Command: RETR ACK.SDLMAZOCU.CLM_00001.2980
Response: 150 Connecting to mailbox
Response: 226 File written successfully
Status: Connected to server - idle
Total Bytes Transferred = 269 (KB 0) (MB 0.00)
Remote File: /ACK.SDLMAZOCU.CLM_00001.2980 was saved as: \EDISRV05Jobs$PRODSDLMAZINUACK.SDLMAZOCU.CLM_00001.2980
Calling Ftp1.Delete(/ACK.SDLMAZOCU.CLM_00001.2980)
Status: Removing file or directory
Command: DELE /ACK.SDLMAZOCU.CLM_00001.2980
Response: 506 Connection manager error on file deletion
Status: Connected to server - idle
====================================================================================================
12/4/2006 7:44:58 AM ***Error*** Ftp1_DoneEvent Args.Error: 506 Args.Description: Connection manager error on file deletion Exiting with RC=9
====================================================================================================

Re: Problem Deleting File

by woddrazen, Monday, December 04, 2006, 20:30 (6564 days ago) @ dtw01

Dave,

I can't duplicate your problem.

Please go to command prompt and type:

telnet your.server.name 21

and send us first line returned.


Drazen

Re: Problem Deleting File

by dtw01, Monday, December 04, 2006, 21:26 (6563 days ago) @ woddrazen

220 Miscrosoft FTP Service

Re: Problem Deleting File

by woddrazen, Monday, December 04, 2006, 22:06 (6563 days ago) @ dtw01

Dave,


I'm still unable to duplicate your problem.

Can you provide us somehow access to your server? Your problem is hard to fix without duplicating it.


Drazen

Re: Problem Deleting File

by dtw01, Monday, December 04, 2006, 22:17 (6563 days ago) @ woddrazen

This is even hard for me to reproduce, since the file truly gets deleted. This is an external production system, so I'll have to try to get something worked out for setting up a test. In the mean while, I'll be downloading you latest version for the other problem. Maybe it will resolve both. I'll let you know.

Re: Problem Deleting File

by dtw01, Monday, December 04, 2006, 23:33 (6563 days ago) @ dtw01

Unfortunately this is still a problem with version 1.1.5.56.

I'll try to find out if we have a way to connect to a test server so that I can consistently reproduce the error.

Re: Problem Deleting File

by dtw01, Wednesday, December 13, 2006, 17:00 (6555 days ago) @ dtw01

I figurued out what's going on. When we download the file from that server, it changes the attributes of the file so we can no longer see it. Why the delete doesn't abort with other programs as well is very misleading. It would be nice if you could get it to kick back the error file not found , instead of Connection manager error on file deletion . Just a thought?

Re: Problem Deleting File

by woddrazen, Wednesday, December 13, 2006, 17:19 (6555 days ago) @ dtw01

Dave,


As you mention that file attributes is changed after download and partly you cannot see that file. I think our error is more appropriate then file not found error.


Drazen