Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-05-06 Thread James Foreman
Thank you.  Thank you. Thank you.

-Original Message-
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of
twsoc...@kglt.net
Sent: Monday, May 05, 2014 10:54 PM
To: ICS support mailing
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...



James,

Try updating your version of ICS to the current nightly build.  You are
having the same problem I was having.  The 221 response is sent and the
sever closes the socket.  The client processes the 221 but returns the 500
error because the socket was closed.  This got patched in the current
version.

JohnC

> Hello,
> 
> 
> 
> We have a
small FTP server program using the TFTPServer component that we
>
connect to upload a file every day using the TFtpClient program.
>

> 
> 
> We upload a file from each site every day
but I noticed one site has a
> peculiar problem .
> 
> 
> 
> The Transmit method returns failure even
though the file is successfully
> uploaded. Notice how the request
is 18, the StatusCode is 226 but an Error
> 500 is returned with a
winsock error of #10053).
> 
> 
> 
> The
server side log is listed below and reports file received ok.
>

> 
> 
> Any suggestions  on what may be going
on?
> 
> 
> 
> Thanks in advance,
> 
> 
> 
> James
> 
> 
> 
> "4/14/2014 03:17:01", "  1",
"01 Focus", "   50", "Katrina", " 
626",
> "Start
> internet FTP transfer of file
CHECK0214201400018999A.FTP size 18999."
> 
>
"4/14/2014 03:17:01", "  1", "01 Focus",
"   50", "Katrina", "  628", "FTP
> Session Connected, error = 0."
> 
>
"4/14/2014 03:17:03", "  1", "01 Focus",
"   50", "Katrina", "  629", "FTP
> Request Done : Request 18 Done. StatusCode = 226 LastResponse was :
'226
> File received ok Error = 500 (500 Control connection
closed. Connection
> aborted (Winsock error #10053))."
> 
> "4/14/2014 03:17:03", "  1",
"01 Focus", "   50", "Katrina", " 
884", "FTP
> transmit of file CHECK0214201400018999A.FTP
failed."
> 
> 
> 
> 
> 
> "4/13/2014 00:02:59", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: < 50.10.41.178 USER
NrG-2526.",0,0,0
> 
> "4/13/2014 00:02:59",
"  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
> 50.10.41.178 331 Password required for
>
NrG-2526..",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 PASS XX.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: ! 50.10.41.178 User 'NrG-2526' is authenticated
> Restaurant:*NC - NrG 2526 *.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: > 50.10.41.178 230 User NrG-2526 logged
in..",0,0,0
> 
> "4/13/2014 00:02:59",
"  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 CWD c:\focus\.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: > 50.10.41.178 250 CWD command successful.
> "c:/pollingdata/upload/" is current
directory..",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 TYPE A.",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
> 50.10.41.178 200 Type set to A..",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: < 50.10.41.178 PASV .",0,0,0
> 
> "4/13/2014 00:02:59", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: > 50.10.41.178 227 Entering
Passive Mode
> (172,16,200,45,197,238)..",0,0,0
> 
> "4/13/

Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-05-05 Thread twsocket


James,

Try updating your version of ICS to the current nightly
build.  You are having the same problem I was having.  The 221
response is sent and the sever closes the socket.  The client
processes the 221 but returns the 500 error because the socket was
closed.  This got patched in the current version.

JohnC

> Hello,
> 
> 
> 
> We have a
small FTP server program using the TFTPServer component that we
>
connect to upload a file every day using the TFtpClient program.
>

> 
> 
> We upload a file from each site every day
but I noticed one site has a
> peculiar problem .
> 
> 
> 
> The Transmit method returns failure even
though the file is successfully
> uploaded. Notice how the request
is 18, the StatusCode is 226 but an Error
> 500 is returned with a
winsock error of #10053).
> 
> 
> 
> The
server side log is listed below and reports file received ok.
>

> 
> 
> Any suggestions  on what may be going
on?
> 
> 
> 
> Thanks in advance,
> 
> 
> 
> James
> 
> 
> 
> "4/14/2014 03:17:01", "  1",
"01 Focus", "   50", "Katrina", " 
626",
> "Start
> internet FTP transfer of file
CHECK0214201400018999A.FTP size 18999."
> 
>
"4/14/2014 03:17:01", "  1", "01 Focus",
"   50", "Katrina", "  628", "FTP
> Session Connected, error = 0."
> 
>
"4/14/2014 03:17:03", "  1", "01 Focus",
"   50", "Katrina", "  629", "FTP
> Request Done : Request 18 Done. StatusCode = 226 LastResponse was :
'226
> File received ok Error = 500 (500 Control connection
closed. Connection
> aborted (Winsock error #10053))."
> 
> "4/14/2014 03:17:03", "  1",
"01 Focus", "   50", "Katrina", " 
884", "FTP
> transmit of file CHECK0214201400018999A.FTP
failed."
> 
> 
> 
> 
> 
> "4/13/2014 00:02:59", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: < 50.10.41.178 USER
NrG-2526.",0,0,0
> 
> "4/13/2014 00:02:59",
"  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
> 50.10.41.178 331 Password required for
>
NrG-2526..",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 PASS XX.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: ! 50.10.41.178 User 'NrG-2526' is authenticated
> Restaurant:*NC - NrG 2526 *.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: > 50.10.41.178 230 User NrG-2526 logged
in..",0,0,0
> 
> "4/13/2014 00:02:59",
"  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 CWD c:\focus\.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: > 50.10.41.178 250 CWD command successful.
> "c:/pollingdata/upload/" is current
directory..",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 TYPE A.",0,0,0
> 
> "4/13/2014
00:02:59", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
> 50.10.41.178 200 Type set to A..",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: < 50.10.41.178 PASV .",0,0,0
> 
> "4/13/2014 00:02:59", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: > 50.10.41.178 227 Entering
Passive Mode
> (172,16,200,45,197,238)..",0,0,0
> 
> "4/13/2014 00:02:59", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: < 50.10.41.178 STOR
CHECK0214201400018999A.FTP.",0,0,0
> 
>
"4/13/2014 00:02:59", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: > 50.10.41.178 150 Opening data connection
for
> CHECK0214201400018999A.FTP.0045.TMP..",0,0,0
>

> "4/13/2014 00:03:00", "  0",
"FTPSERV", "0", "FTPSERV", " 
633",
> "FTPSERV message: > 50.10.41.178 226 File
received ok.",0,0,0
> 
> "4/13/2014
00:03:00", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
< 50.10.41.178 QUIT .",0,0,0
> 
> "4/13/2014
00:03:00", "  0", "FTPSERV", "0",
"FTPSERV", "  633",
> "FTPSERV message:
> 50.10.41.178 221 Goodbye..",0,0,0
> 
>
"4/13/2014 00:03:00", "  0", "FTPSERV",
"0", "FTPSERV", "  633",
>
"FTPSERV message: ! 50.10.41.178 disconnected.",0,0,0
>

> --
> To unsubscribe or change your settings for
TWSocket mailing list
> please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit
our website at http://www.overbyte.be
>
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-25 Thread Angus Robertson - Magenta Systems Ltd
> Not sure if this gives us more information to go on.  Any ideas?

Assuming you are logging OnError, I can see no errors reported, so all we have
is the error code 500 after a sequence of FTP events that all appear to have
completed correctly. Are you logging the ErrorMessage property at the end, it
may have something? 

However, there seems to be a missing response to QUIT, it should be:

> QUIT
< 221 Goodbye.
FTP Session Closed

so maybe this is where your abort error is coming from.  If you log a different
client without the error, do you see 221? 

I've never used TRANSMIT, or any of the other methods that do a complete FTP
session using a single method, the problem is you really have no idea when it
fails as to why, as you've discovered.  I use the separate methods and check
for errors after every command.  But I ignore errors for QUIT and ABORT, since
nothing actually matters at that point.

Angus







-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-25 Thread James Foreman
227 Entering
Passive Mode (208,77,57,139,209,91). Msg=< 227 Entering Passive Mode
(208,77,57,139,209,91)."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnDisplay 227 227 Entering
Passive Mode (208,77,57,139,209,91). Msg=> STOR CHECK022620140259A.FTP"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnResponse 227 150 Opening data
connection for CHECK022620140259A.FTP.0045.TMP."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnDisplay 150 150 Opening data
connection for CHECK022620140259A.FTP.0045.TMP. Msg=< 150 Opening data
connection for CHECK022620140259A.FTP.0045.TMP."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnResponse 150 226 File
received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnDisplay 226 226 File received
ok Msg=< 226 File received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnDisplay 226 226 File received
ok Msg=! 259 bytes received/sent in 0 seconds (592 Bytes/sec)"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP  OnDisplay 226 226 File received
ok Msg=> QUIT"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", " 1271", "FTP
Generic Message: CHECK022620140259A.FTP 226 226 File received ok"
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", "  629", "FTP
Request Done : Request 18 Done. StatusCode = 226 LastResponse was : '226
File received ok Error = 500 (500 Control connection closed. Connection
aborted (Winsock error #10053))."
"4/23/2014 00:03:30", "  1", "01 Focus", "   46", "Kellie", "  884", "FTP
transmit of file CHECK022620140259A.FTP failed."




-Original Message-
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of Angus
Robertson - Magenta Systems Ltd
Sent: Tuesday, April 22, 2014 4:07 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...

> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode is 
> 226 but an Error 500 is returned with a winsock error of #10053).

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not
logging enough to see where the error is happening.  You really need to log
the onDisplay, OnError and OnResponse events so you see all the command
responses being processed. 

#10053 is connection aborted, which generally does not matter if the
important commands have already been successful. 

Angus


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-Original Message-
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of Angus
Robertson - Magenta Systems Ltd
Sent: Tuesday, April 22, 2014 4:07 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...

> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode is 
> 226 but an Error 500 is returned with a winsock error of #10053).

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not
logging enough to see where the error is happening.  You really need to log
the onDisplay, OnError and OnResponse events so you see all the command
responses being processed. 

#10053 is connection aborted, which generally does not matter if the
important commands have already been successful. 

Angus


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-22 Thread James Foreman
I will log those other events and get a log to look at.

Thanks,

James

-Original Message-
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of Angus
Robertson - Magenta Systems Ltd
Sent: Tuesday, April 22, 2014 4:07 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] TFtipClient and TFtpServer and 10053 error after
Transmit successful...

> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode is 
> 226 but an Error 500 is returned with a winsock error of #10053).

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not
logging enough to see where the error is happening.  You really need to log
the onDisplay, OnError and OnResponse events so you see all the command
responses being processed. 

#10053 is connection aborted, which generally does not matter if the
important commands have already been successful. 

Angus


--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-22 Thread Angus Robertson - Magenta Systems Ltd
> The Transmit method returns failure even though the file is 
> successfully uploaded. Notice how the request is 18, the StatusCode
> is 226 but an Error 500 is returned with a winsock error of #10053).  

226 is success, so no idea why you get 500 as well.  

The transmit method does several commands in sequence, but you are not logging
enough to see where the error is happening.  You really need to log the
onDisplay, OnError and OnResponse events so you see all the command responses
being processed. 

#10053 is connection aborted, which generally does not matter if the important
commands have already been successful. 

Angus


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be