using Conga to do non-passive mode FTP

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

Re: using Conga to do non-passive mode FTP

Postby PhilGray on Sun Sep 05, 2010 1:12 pm

Just another small point ..
It seems that many FTP users have similar problems with Binary FTP uploads .. even using standard FT-Client software.
So the "timeout" problem using Congo for Binary FTP-Uploads is probably not be a Conga problem.
ASCII uploads run without any problem .. on Conga or FTP-Clients.
FWIW

PS: Even with a disabled or no local Firewall including disabling my Router Firewall .. the Binary Upload is still not smooth.

It could of course be my own Router that is causing the problem :

Malicious routers, firewalls and data sabotage
http://wiki.filezilla-project.org/Network_Configuration#Malicious_routers.2C_firewalls_and_data_sabotage
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: using Conga to do non-passive mode FTP

Postby PhilGray on Sun Sep 05, 2010 8:58 pm

Well, I decided to try using my old FTP code from 4 years ago again, just to see if it still worked. The old code uses the old Dyalog FTP Workspace .

I transferred 6 JPG files without a hitch .. each ca. 650 KB.

I repeated many times .. works perfectly.
( as well as Text files of course )

RUNFTPTEST
Testing Internet connection ...
220 Speak friend, and enter
331 FTP login okay, send password.
230 User logged in, proceed.
250 Directory changed to /
Connected to root
200 Using BINARY mode to transfer data.
200 PORT command successful.
150 Opening BINARY mode data connection.
226 Transfer complete. Closing data connection.
...
...
226 Transfer complete. Closing data connection.
200 Using BINARY mode to transfer data.
200 PORT command successful.
150 Opening BINARY mode data connection.
226 Transfer complete. Closing data connection.
226 Transfer complete. Closing data connection.
Ubertragung war OK !
221 Goodbye.


Does the new Conga code use different DLLs than the old FTP code I wonder ?

Anyway .. I'll now just carry on with the "old" FTP version ... unless someone comes up with an idea.

Thanks to all for the help.
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: using Conga to do non-passive mode FTP

Postby Phil Last on Sun Sep 05, 2010 11:19 pm

kai wrote:originally "Client". In order to improve readability that was changed to "Clt"


Nice!
User avatar
Phil Last
 
Posts: 628
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

Re: using Conga to do non-passive mode FTP

Postby Dick Bowman on Tue Sep 07, 2010 7:41 am

I mostly use FTP to get files rather than send them.

Switched an applications FTP from Conga to .NET a few months ago (after following up on Simon Marsden's post to the APL Wiki). Transfer times are dramatically better - whether this is a direct consequence or coincidence I don't know).

Might be worth checking out whether .NET for FTP might solve any problems.
Visit http://apl.dickbowman.com to read more from Dick Bowman
User avatar
Dick Bowman
 
Posts: 235
Joined: Thu Jun 18, 2009 4:55 pm

Re: using Conga to do non-passive mode FTP

Postby Morten|Dyalog on Tue Sep 07, 2010 10:46 am

kai wrote:In Conga (DRC that is) the name was originally "Client". In order to improve readability that was changed to "Clt in Conga 2.0.


Interesting theory :-). In fact, Conga 2.0 has a new function Clt which combines the old Client and SecureClient functions into a single function. The same change was made for Srv (Server + SecureServer). The changes are discussed in the Conga 2.0 Users Guide, which you can find at http://www.dyalog.com/documentation/12.1/index.htm. We decided that the number of users of Conga was still quite small at the time, so we allowed ourselves this change to the interface. I don't think we'll be able to do that again, it may have been a mistake already.

You will need to use the DRC namespace which matches (was shipped with) your Conga DLL.

I see that the FTPClient class has one reference to the old function, in the PutData method. Unfortunately our QA scipt does not do a PutData, or we would have found it :-(.

Simply replace the function name in the line in question:

[7] :If 0=⊃(r conn)←DRC.Clt''Host DataPort type(10+⍴Data)
User avatar
Morten|Dyalog
 
Posts: 454
Joined: Tue Sep 09, 2008 3:52 pm

Re: using Conga to do non-passive mode FTP

Postby PhilGray on Tue Sep 07, 2010 12:04 pm

Code: Select all
[7] :If 0=⊃(r conn)←DRC.Clt''Host DataPort type(10+⍴Data)


Hi Morten,
I already did that , but the actual problem was that on uploading larger files, the FTP hung on a Timeout. I am now using the old FTP workspace - with out any problems.

I thought at first it was because my test-file was Binary, but on more experimenting , I discovered that it I had the same Timeout problem when uploading a large ASCII files.



Code: Select all
    ∇ r←Do cmd;head
      ⍝ Execute FTP command, return output
     
      :Access Public
      :If 0≠⍴cmd←,cmd
      :AndIf 0≠⊃r←DRC.Send Conn(cmd,CRLF)
          r←(-⊃r)('Error in Send: ',⍕r) ⋄ →0
      :EndIf
     
      Response←,⊂r←ReadReply
                   ^
       Error in Wait: 100  TIMEOUT

      :If '-'=4⊃r ⍝ If first response is nnn-...
          head←4↑3↑r
          :Repeat ⋄ Response,←⊂r←ReadReply
          :Until head≡4↑r ⍝ Re-read until we see nnn ...
     


It would be nice if someone else tried to upload a large file using Conga from their PC.

The only thing I can think of is that maybe my WinXP SP2 drivers are not up-to-date !
.. or this a Conga coding problem ?
Cheers
phil
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: using Conga to do non-passive mode FTP

Postby PhilGray on Fri Oct 01, 2010 9:49 pm

It would be nice if someone else tried to upload a large file using Conga from their PC.


Has anyone tried this yet ?
TIA
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: using Conga to do non-passive mode FTP

Postby Vince|Dyalog on Mon Oct 04, 2010 9:45 am

Hi Phil,

I've contacted Bjørn. He has tried larger file transfer via Conga and FTP. It works, but you first have to increase the timeout in the FTPCLient as the standard setting will timeout as larger files take longer to transfer.

Regards,

Vince
Vince|Dyalog
 
Posts: 414
Joined: Wed Oct 01, 2008 9:39 am

Re: using Conga to do non-passive mode FTP

Postby PhilGray on Mon Oct 04, 2010 1:19 pm

Hi Vince,
as I said, I'd already tried varying the timeouts, but thanks anyway.

My conclusion after doing some more expirimenting : My firewall is the problem.

I used Conga to upload varying sizes in steps of 500K, to discover that at ca. 3.5 MB, the problems start. I disabled the firewall, and retried the Conga code as well as the "Filezilla FTPClient" both to no avail - my guess is that the firewall may not be "completely" disabled ( Outpost ).
I retried the Filzilla transfers on another PC that had no firewall installed - the 3.5 MB file transferred successfully after second attempt ( the first one timed out ).

So I'll now close this discussion - seems I was on the wrong path in thinking Conga might be the problem.
Thanks everyone !
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: using Conga to do non-passive mode FTP

Postby Richard Procter on Mon Oct 26, 2015 5:38 pm

Does anybody know if Conga can function as an SFTP client?

If not, any other suggestions on what to use (from within APL)?

thanks.
Richard Procter
 
Posts: 6
Joined: Tue Jul 20, 2010 6:18 pm
Location: Canada

PreviousNext

Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest