Re: [twsocket] FTP Error 426

2012-04-19 Thread Arno Garrels
Matt Minnis wrote:
 You guys rock!
 Thanks Arno  Angus!

You are welcome.

-- 
Arno 
--
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] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 I am getting a spurious error 426 (426 Operation aborted.) when I run
 my program automated to upload files to a ftp site.  When I do the
 exact same steps manually in same exe, it works fine. Error Listed
 below from my own logs.

Please try to reproduce the issue with latest ICSv7 from here:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

Any change?

-- 
Arno   

  

--
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] FTP Error 426

2012-04-18 Thread Matt Minnis
Tried latest snapshot, no dice still :(
I was on the latest stable release which is significantly older, so I had
hopes that this might do it.
Ignoring the error and attempting to plow on doesn't work either.

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 3:05 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 I am getting a spurious error 426 (426 Operation aborted.) when I run 
 my program automated to upload files to a ftp site.  When I do the 
 exact same steps manually in same exe, it works fine. Error Listed 
 below from my own logs.

Please try to reproduce the issue with latest ICSv7 from here:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

Any change?

-- 
Arno   

  

--
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] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:

 16:05:56: FTP: FtpClient1ReadyToTransmit: 
 ftp Request PutAsync Done.
 ftp StatusCode = 150
 ftp LastResponse was : '150 Opening BINARY mode data connection for 
 4071Ascend4.09.7z'
  ftp Error = 426 (426 Operation aborted.)
 16:05:57: FTP Upload Process Canceled

You must be calling Abort while the component is still uploading.

-- 
Arno  


--
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] FTP Error 426

2012-04-18 Thread Matt Minnis
Not intentionally.

Here is the ICS Logger output for 2 attempt cycles (log below).
Can see the Shutdown before the data sent.
Does this help at all?

Thanks,
Matt

10:42:33:450 01E8D474 Socket handle created 964
10:42:33:499 TWSocket will connect to 206.196.105.44:21
10:42:33:580 01E8D474 TriggerDataSent 964
10:42:33:634 01E8D474 TriggerDataSent 964
10:42:33:703 01E8D474 TriggerDataSent 964
10:42:33:848 01E8D474 TriggerDataSent 964
10:42:33:923 01E8D474 TriggerDataSent 964
10:42:34:118 01E8D474 TriggerDataSent 964
10:42:34:302 01E8D474 TriggerDataSent 964
10:42:34:492 01E8D474 TriggerDataSent 964
10:42:34:781 01E8D474 TriggerDataSent 964
10:42:34:852 01E8D474 TriggerDataSent 964
10:42:34:975 01E8DD60 Socket accepted 1056
10:42:34:988 01E8DD60 TCustomWSocket.Shutdown 1 1044
10:42:35:005 01E8DD60 TriggerDataSent 1056
10:42:35:047 01E8DD60 TCustomWSocket.Shutdown 1 1056
10:42:45:097 01E8D474 Socket handle created 20
10:42:45:111 TWSocket will connect to 206.196.105.44:21
10:42:45:176 01E8D474 TriggerDataSent 20
10:42:45:243 01E8D474 TriggerDataSent 20
10:42:45:310 01E8D474 TriggerDataSent 20
10:42:45:451 01E8D474 TriggerDataSent 20
10:42:45:532 01E8D474 TriggerDataSent 20
10:42:45:715 01E8D474 TriggerDataSent 20
10:42:45:889 01E8D474 TriggerDataSent 20
10:42:46:085 01E8D474 TriggerDataSent 20
10:42:46:302 01E8D474 TriggerDataSent 20
10:42:46:369 01E8D474 TriggerDataSent 20
10:42:46:490 01E8DD60 Socket accepted 1064
10:42:46:503 01E8DD60 TCustomWSocket.Shutdown 1 1052
10:42:46:517 01E8DD60 TriggerDataSent 1064
10:42:46:538 01E8DD60 TCustomWSocket.Shutdown 1 1064

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 9:56 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:

 16:05:56: FTP: FtpClient1ReadyToTransmit: 
 ftp Request PutAsync Done.
 ftp StatusCode = 150
 ftp LastResponse was : '150 Opening BINARY mode data connection for
4071Ascend4.09.7z'
  ftp Error = 426 (426 Operation aborted.)
 16:05:57: FTP Upload Process Canceled

You must be calling Abort while the component is still uploading.

-- 
Arno  


--
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] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Not intentionally.
 
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

No it doesn't since the log options do not include the
loProtSpecxxx type of options, try something like:
[loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loWsockDump,loProtSpecErr,loProtSpecInfo,loProtSpecDump]

-- 
Arno


--
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] FTP Error 426

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

Sorry, no.  The ICS FTP component is very stable and widely used.  Any
issues with it are likely to be your implementation, or circumstances
unconnected with your application.  The FTP server may have closed the
connection, or a firewall or NAT router somewhere may be unhappy.   

Is this problem reproducible against different FTP servers in different
locations.  I have a public ICS FTP server you can test against,
anonymous download access at ics.ftptest.org you will need to request an
account if you need to upload.  The same host has other FTP servers for
testing against. 

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] FTP Error 426

2012-04-18 Thread Matt Minnis
Here is the ICS log segment that applies with those options:
12:04:33:532 ! HighLevelAsync 0
12:04:33:546 ! HighLevelAsync done
12:04:33:579 01EFD47C TriggerDataSent 972
12:04:33:640 |200 Type set to I|

12:04:33:669 01EFD47C TriggerDataSent 972
12:04:33:744 |250 CWD command successful|

12:04:33:930 01EFD47C TriggerDataSent 972
12:04:33:994 |257 / is the current directory|

12:04:34:127 01EFD47C TriggerDataSent 972
12:04:34:181 |213 20120418163737|

12:04:34:320 01EFD47C TriggerDataSent 972
12:04:34:381 |213 0|

12:04:34:567 ! HighLevelAsync 0
12:04:34:607 01EFD47C TriggerDataSent 972
12:04:34:654 |200 PORT command successful|

12:04:34:692 ! HighLevelAsync 0
12:04:34:733 01EFD47C TriggerDataSent 972
12:04:34:836 |150 Opening BINARY mode data connection for
4071Ascend4.09.7z|

12:04:34:856 ! Data Session requested
12:04:34:870 01EFDD68 Socket accepted 1052
12:04:34:887 01EFDD68 TCustomWSocket.Shutdown 1 1044
12:04:34:910 ! Data Session opened
12:04:34:943 01EFDD68 TriggerDataSent 1052
12:04:34:975 ! Aborting
12:04:35:003 ! HighLevelAsync 0
12:04:35:030 ! Abort detected
12:04:35:052 ! HighLevelAsync done
12:04:35:081 01EFDD68 TCustomWSocket.Shutdown 1 1052
12:04:35:108 ! Data Session closed
12:04:35:125 ! Next3PutAsync
12:04:35:148 ! Aborting

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 11:50 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Not intentionally.
 
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

No it doesn't since the log options do not include the loProtSpecxxx type of
options, try something like:
[loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loWsockDump,loProtSpecErr,
loProtSpecInfo,loProtSpecDump]

--
Arno


--
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] FTP Error 426

2012-04-18 Thread Matt Minnis
Ok, let me try some different ones and see what happens.

I know ICS is very stable, I have used it several times over the years,
that's pretty much why I am using it.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Wednesday, April 18, 2012 11:50 AM
To: twsocket@elists.org
Subject: Re: [twsocket] FTP Error 426

 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

Sorry, no.  The ICS FTP component is very stable and widely used.  Any
issues with it are likely to be your implementation, or circumstances
unconnected with your application.  The FTP server may have closed the
connection, or a firewall or NAT router somewhere may be unhappy.   

Is this problem reproducible against different FTP servers in different
locations.  I have a public ICS FTP server you can test against, anonymous
download access at ics.ftptest.org you will need to request an account if
you need to upload.  The same host has other FTP servers for testing
against. 

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] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Here is the ICS log segment that applies with those options:

OK, open your project and then OverbyteIcsFtpCli.pas in the editor.
Add a breakpoint in:

procedure TCustomFtpCli.AbortAsync;
{var
bFlag : Boolean; } { 2.106 }
begin
{$IFNDEF NO_DEBUG_LOG} { 2.105 }
if CheckLogOptions(loProtSpecInfo) then // =*** here 
DebugLog(loProtSpecInfo, '! Aborting');
{$ENDIF}

Run the app. with debug symbols under the debugger and when it stops at
the breakpoint copy the call stack and post it here.

-- 
Arno

--
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] FTP Error 426

2012-04-18 Thread Matt Minnis
Call stack:
TCustomFtpCli.AbortAsync
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomWSocket.TriggerDataSent(0)
TCustomWSocket.Do_FD_WRITE(???)
TCustomWSocket.WMASyncSelect((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
TCustomWSocket.WndProc(???)
TCustomHttpTunnelWSocket.WndProc(???)
TCustomLineWSocket.WndProc(???)
TIcsWndHandler.WndProc((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
WndControlWindowsProc(???,???,1072,2)
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomFtpCli.WMFtpSendData(???)
TCustomFtpCli.WndProc(???)
TIcsWndHandler.WndProc((1027, 0, 0, 1, 0, 0, 0, 0, 1, 0))
WndControlWindowsProc(???,???,0,0)
TFtpClient.WaitUntilReady
TFtpClient.Synchronize($C1CF8C)
TFtpClient.Put
FTPTransfer('d:\Database\4071Ascend4.09.7z')
TUploadFrm.InitiateFTP2Click(???)
TUploadFrm.tmMasterTimer(???)
DBUpload

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 1:02 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Here is the ICS log segment that applies with those options:

OK, open your project and then OverbyteIcsFtpCli.pas in the editor.
Add a breakpoint in:

procedure TCustomFtpCli.AbortAsync;
{var
bFlag : Boolean; } { 2.106 }
begin
{$IFNDEF NO_DEBUG_LOG} { 2.105 }
if CheckLogOptions(loProtSpecInfo) then // =*** here 
DebugLog(loProtSpecInfo, '! Aborting'); {$ENDIF}

Run the app. with debug symbols under the debugger and when it stops at the
breakpoint copy the call stack and post it here.

--
Arno

--
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] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress

Check your OnProgress or OnProgess64 event handler.
It must set var Abort to true.

-- 
Arno 
--
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] FTP Error 426

2012-04-18 Thread Arno Garrels
Arno Garrels wrote:
 Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress
 
 Check your OnProgress or OnProgess64 event handler.
 It must set var Abort to true.

It should not, however obviously it does.

-- 
Arno 

--
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] FTP Error 426

2012-04-18 Thread Matt Minnis
You guys rock!
Thanks Arno  Angus!

Apparently when running automated, some event tripped one of my exception
handler's which set a form variable to true
UploadFrm.FCanceled
In beginning of OnProgress handler I check for this and set abort to true.
Before initiating the FTP upload I reset this variable and voila! It works!
:)

::happy dance::

Was beating my head against this for some time and knew it would be some
sniggly bit like this that was escaping my radar.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 2:19 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Arno Garrels wrote:
 Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress
 
 Check your OnProgress or OnProgess64 event handler.
 It must set var Abort to true.

It should not, however obviously it does.

--
Arno 

--
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


[twsocket] FTP Error 426

2012-04-17 Thread Matt Minnis
I am getting a spurious error 426 (426 Operation aborted.) when I run my 
program automated to upload files to a ftp site.  When I do the exact same 
steps manually in same exe, it works fine.
Error Listed below from my own logs.
I checked all the settings, they are identical between runs, I exported the 
component settings to XML and they are identical to the byte.

I use the Menu-Click events to trigger each step when running automatically, I 
see no reason why this would be failing.  :(
I am taking a SQL backup of our database, archiving it, then uploading to a FTP 
site.
Since this is being uncooperative, I have hardcoded the settings to rule that 
stuff out.

Anyone have any experience with this error 426 that might be able to shed some 
light on this to help me?

I am using Delphi 7 and ICS7.

Here's what I did to automate this:  (initiated by timer event)
procedure StartProcessing();
begin
  UploadFrm.DBBackup1.Click();
  UploadFrm.GetDBInfo1.Click();
  UploadFrm.Make7Z1.Click();
  UploadFrm.MakeMD51.Click();
  UploadFrm.InitiateFTP2.Click();
end;

These are the same steps I do manually in this same order.  I tried a sleep of 
2000 between each, but no dice.

This is maddening, I have to be overlooking something really really stupid.

If anyone can help, I would appreciate it.

Thanks,
Matt

Error:
###Resume Put
16:05:56: FTP: FtpClient1ReadyToTransmit: 
ftp Request PutAsync Done.
ftp StatusCode = 150
ftp LastResponse was : '150 Opening BINARY mode data connection for 
4071Ascend4.09.7z'
 ftp Error = 426 (426 Operation aborted.)
16:05:57: FTP Upload Process Canceled

--
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