<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] FTP timeout in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240167#M27738</link>
    <description>@svert. Thanks for this hint. A good idea to use the hash components. When I have time, I give it a trial.</description>
    <pubDate>Wed, 26 Feb 2014 10:53:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-26T10:53:26Z</dc:date>
    <item>
      <title>[resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240160#M27731</link>
      <description>Dear all, 
&lt;BR /&gt;I download files from a ftp server. See my Job design attached. 
&lt;BR /&gt;What I want to do in detail: 
&lt;BR /&gt;On FTP following structure is given: 
&lt;BR /&gt;dir1 
&lt;BR /&gt;-file1 
&lt;BR /&gt;-file2 
&lt;BR /&gt;dir2 
&lt;BR /&gt;-file4 
&lt;BR /&gt;-flie5 
&lt;BR /&gt;I want to copy the whole directory structure. file 1 and file 2 should be deposit in dir1 on my local server etc. That is the reason why I use two FTP FileLists. FtpFileList_1 reads dir1, dir2 etc. and FtpFileList_2 reads the files within the directories. So I'm able to re-use the component parameter to determine the destination directory (see GetZipsFromIn). 
&lt;BR /&gt;Second, I want to make sure the upload of the files is done - that's why I use FTPFileProperty (mtime) and filter for it. 
&lt;BR /&gt;Furthermore I use FtpRename (RenameToPROGRESS) to rename the file before I download it (regard iteration order). This makes sure that a second job (I use cronjob) won't download a file that is currently downloaded by the first job (file mask in FtpFileList_2). Anyway, everything works perfect. 
&lt;BR /&gt;The job downloaded up to 90 files. But whenever the download took more than 5 minutes, I got error messages (see below). I tested it out with one huge file and lots of small/normal files. So too many connections won't be a problem. 
&lt;BR /&gt;Strangely the error occurs after the file(s) has been downloaded even when it took more than 5 minutes! But it leads to an aboration of the job! 
&lt;BR /&gt;Parallel I tested it out with FileZilla (same server, same user). There I didn't have any trouble. So FTP server don't have any restrictions. 
&lt;BR /&gt;Also I modfied the job several times - I got rid of the flowtoiterate component or modified iterations to flows. But every time, I got the same error. I cannot use the ftp connection component, because each component needs a "direct" connection. 
&lt;BR /&gt;Any ideas? It might be a problem to use the component parameter too often.. 
&lt;BR /&gt;Error message (1 big file): 
&lt;BR /&gt;Exception in component tFTPFileProperties_1 
&lt;BR /&gt;com.enterprisedt.net.ftp.FTPConnectionClosedException: Idle timeout (300 seconds): closing control connection 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPControlSocket.validateReplyCode(FTPControlSocket.java:1217) 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1167) 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPClient.quit(FTPClient.java:3949) 
&lt;BR /&gt; at submissionchecker.tesdsg4_0_1.tesdsg4.tFTPFileList_1Process(tesdsg4.java:1806) 
&lt;BR /&gt; at submissionchecker.tesdsg4_0_1.tesdsg4.runJobInTOS(tesdsg4.java:2503) 
&lt;BR /&gt; at submissionchecker.tesdsg4_0_1.tesdsg4.main(tesdsg4.java:2368) 
&lt;BR /&gt;Error message (multiple files with various file size; 0,5 MB - 40 MB): 
&lt;BR /&gt;Exception in component tFTPFileList_1 
&lt;BR /&gt;com.enterprisedt.net.ftp.FTPConnectionClosedException: No transfer timeout (300 seconds): closing control connection 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPControlSocket.validateReplyCode(FTPControlSocket.java:1217) 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1167) 
&lt;BR /&gt; at com.enterprisedt.net.ftp.FTPClient.quit(FTPClient.java:3949) 
&lt;BR /&gt; at submissionchecker.executetranspect_0_3.ExecuteTranspect.tFTPFileList_2Process(ExecuteTranspect.java:4714) 
&lt;BR /&gt; at submissionchecker.executetranspect_0_3.ExecuteTranspect.tFixedFlowInput_1Process(ExecuteTranspect.java:3747) 
&lt;BR /&gt; at submissionchecker.executetranspect_0_3.ExecuteTranspect.runJobInTOS(ExecuteTranspect.java:6090) 
&lt;BR /&gt; at submissionchecker.executetranspect_0_3.ExecuteTranspect.runJob(ExecuteTranspect.java:5936) 
&lt;BR /&gt; at submissionchecker.master_0_1.Master.tRunJob_1Process(Master.java:726) 
&lt;BR /&gt; at submissionchecker.master_0_1.Master.tRunJob_3Process(Master.java:572) 
&lt;BR /&gt; at submissionchecker.master_0_1.Master.runJobInTOS(Master.java:995) 
&lt;BR /&gt; at submissionchecker.master_0_1.Master.main(Master.java:839)</description>
      <pubDate>Tue, 11 Feb 2014 14:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240160#M27731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240161#M27732</link>
      <description>I found out the reason why the connection was terminated. The reason is the FTP server (TransferTimout, TransferIdle). I increased the time to more than five minutes and it worked.
&lt;BR /&gt;For me this inidicates that a not-in-use ftp connection is all the time open (it might be the ftp file lists components). This would not be a problem for the download itself, but for the job (because I cannot capture the error message even when I use the subjob error or component error link).</description>
      <pubDate>Wed, 12 Feb 2014 14:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240161#M27732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-12T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240162#M27733</link>
      <description>Hi _OZ_
&lt;BR /&gt;thats because I have recently published a tFTPClose component because the tFTPConnection component or an other FTP components does not close the connection. Only the death of the job closes the connection.</description>
      <pubDate>Wed, 12 Feb 2014 20:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240162#M27733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-12T20:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240163#M27734</link>
      <description>Dear jlolling,
&lt;BR /&gt;thanks for your reply.
&lt;BR /&gt;I downloaded the ftpclose component too. But I only can use it, when i pick up a ftpconnection component. But using a ftpconnection component doesn't make sense, because I have to open a connection for each component (ftpfilelist, ftpfileproperty etc.) separately. 
&lt;BR /&gt;Or does it mean ftpclose closes all open connection even when it is a connection opened with other ftp components?</description>
      <pubDate>Thu, 13 Feb 2014 07:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240163#M27734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T07:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240164#M27735</link>
      <description>For your luck, the tFTPget/put/list connections closes it internal connections for it self. Take a look at the source code and scroll to the end part and you will find the close/disconnected call.&lt;BR /&gt;The tFTPClose closes ONLY the connection which are established from a tFTPConnection component, anything else does not make sense.&lt;BR /&gt;BUT:&lt;BR /&gt;If you start transfers within a loop or iteration take care you do not establish to much connections:&lt;BR /&gt;tFileList --(iteration)--&amp;gt; tFTPPut (creates it own connection for every file!)  &lt;BR /&gt;this will cause probably a kind of problem you have. You can adapt this example also for the get operation.</description>
      <pubDate>Thu, 13 Feb 2014 08:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240164#M27735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240165#M27736</link>
      <description>Make sense that each component closes the ftp connection for itself. 
&lt;BR /&gt;I guess the problem is the FTPFileList. It will keep the connection alive until all list objects (files/directories) are processed respectively until the subjob is done (which takes in my case a while). Therefore the only solution is to increase the server params... I can live with that solution, but honestly it would be better to capture/to get rid of the error message or the redesign the job (but honestly I have no idea how to design it without a FtpFileList)... 
&lt;BR /&gt;Thanks again for ideas/help. I appreciate it.</description>
      <pubDate>Thu, 13 Feb 2014 08:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240165#M27736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T08:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240166#M27737</link>
      <description>Hi,
&lt;BR /&gt;You can store the list (from FTPFileList) in a:
&lt;BR /&gt;- temporary file
&lt;BR /&gt;- temporary buffer (using the "technical" tHashOutput/tHashInput components)
&lt;BR /&gt;So your FTP connection will be closed faster
&lt;BR /&gt;regards
&lt;BR /&gt;
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/140536/128456_FTPFileList_sample.png" /&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240166#M27737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-26T10:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240167#M27738</link>
      <description>@svert. Thanks for this hint. A good idea to use the hash components. When I have time, I give it a trial.</description>
      <pubDate>Wed, 26 Feb 2014 10:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240167#M27738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-26T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240168#M27739</link>
      <description>Hi ,&lt;BR /&gt;does the tftp get close its connection?</description>
      <pubDate>Tue, 08 Apr 2014 10:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240168#M27739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T10:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] FTP timeout</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240169#M27740</link>
      <description>Hi twincam16, 
&lt;BR /&gt;So far, there is no tFTPClose component in talend. You can vote for this feature jira issue 
&lt;A href="https://jira.talendforge.org/browse/TDI-20134" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-20134&lt;/A&gt; or have a look at custom component 
&lt;A href="http://www.talendforge.org/exchange/index.php?eid=1079&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendExchange:tFTPClose&lt;/A&gt; written by 
&lt;A href="http://www.talendforge.org/forum/profile.php?id=22952" target="_blank" rel="nofollow noopener noreferrer"&gt;jlolling&lt;/A&gt; to see if it is OK with you. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Apr 2014 11:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-FTP-timeout/m-p/2240169#M27740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-08T11:08:19Z</dc:date>
    </item>
  </channel>
</rss>

