Four Stars

talend5.4 to 6.3 ftp connect issue

Hi all

    Recently we upgrade talend5.4 to talend 6.3,also jdk1.6 to 1.8.  

    After upgrading, old jobs with ftp components cannot work,neither  6.3 nor 5.4. 

    When I roll back to jdk 1.6 , it works fine in talend  5.4 as 6.3 can't run in jdk1.6.

    Have you ever meet this issue? Thanks for any suggestion.

    Here is the error message:  

Exception in component tFTPFileList_1
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.enterprisedt.util.proxy.PlainSocket.createPlainSocket(PlainSocket.java:102)
at com.enterprisedt.net.ftp.FTPControlSocket.<init>(FTPControlSocket.java:355)
at com.enterprisedt.net.ftp.FTPClient.connect(FTPClient.java:958)
at 

 

  • Big Data
13 REPLIES
Four Stars

Re: talend5.4 to 6.3 ftp connect issue

Does anyone meet this problem before?

I tried kinds of methods,but no one works.

stop firewall,change proxy,change java version... 

Moderator

Re: talend5.4 to 6.3 ftp connect issue

Hello,

This exception occurs if no TCP connection can be established. Could you please check if the host name or IP address is Ok?

Could you connect to this FTP server from command line? What's your Connection Mode? Passive or Active?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: talend5.4 to 6.3 ftp connect issue

Thanks @xdsh

When I roll back to jdk 1.6 , it works fine in talend  5.4 as 6.3 can't run in jdk1.6.

I can connect to ftp server via filezilla.  

here will be a connection issue just when i changed jdk to 1.8

 


 

Four Stars

Re: talend5.4 to 6.3 ftp connect issue

connection mode is passive
Moderator

Re: talend5.4 to 6.3 ftp connect issue

Hi,

Are you using open studio or subscription solution? Did you execute the imported ftp job (created on V 5.4) on V 6.3? Is it Ok with you when create a new ftp job on your V 6.3?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: talend5.4 to 6.3 ftp connect issue

Hi @xdshi

 

I am using open studio.

I create a new ftp job on V6.3. But not work.

by the way,I found something new.

I have two test server (A,B),both have talend6.3 installed.

It failed at server A(US server),but success at server B(CN server).

Both have same jdk.

Moderator

Re: talend5.4 to 6.3 ftp connect issue

Hello,

Is your network Ok with you? Any limitation? For your server A, are you behind proxy?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: talend5.4 to 6.3 ftp connect issue

Hi

Network is ok.

Yes,we use a proxy.But I have tried setting socks proxy,not work.

Moderator

Re: talend5.4 to 6.3 ftp connect issue

Hi,

From your description, the talend FTP job should be Ok without error.

We suppose that there is something wrong with your network setting for FTP server(server A). Can you connect to your FTP server through command without using talend tool?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: talend5.4 to 6.3 ftp connect issue

I believe the issue is within Talend non-updated component. We tested with Talend 6.1.1 SE edition, but we have subscription as well which we didn't test.

 

In our case the problem is almost same, but I discover something additional:

tSetProxy -> tFTPConnection

 

When using this flow with SFTP protocol (just for others, it is just check button in GUI of Talend, but FTP and SFTP are totally incompatible protocols merged into single component), connection via proxy works.

 

When switched to FTP there appears after some time the "Connnection timeout issue", but fact is that during execution tFTPComponent fails directly after START(marked RED), at that moment Connection timeout exception doesn't exist.

 

So there is some other error which Talend doesn't display, and it is related to JDK version. The Java 1.8 is not supported by the FTP subsystem with Proxy. To me it is a bug of Talend.

Five Stars

Re: talend5.4 to 6.3 ftp connect issue

We tried today with 6.4 and there is still connection timeout, but the RED mark over the component disappeared. 

 

I will just repeat, that proxying SFTP works, only FTP over proxy result in this timeout. When I use Filezilla application for testing externally ti works for both SFTP and FTP protocols. We tested both tFTPConnection and tFTPGet components.

 

I also executed simple Java example by using Apache Commons Net and I can connect, so Talend issue.

Five Stars

Re: talend5.4 to 6.3 ftp connect issue

I additionally create a bug ticket:

https://jira.talendforge.org/browse/TESB-19923

Moderator

Re: talend5.4 to 6.3 ftp connect issue

Hi,

Thanks for posting your jira issue link here. It seems that only Socks proxy is allowed by current implementation and sends request through proxy.

We are working on this issue and will keep you posted.

Thanks for your time.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.