Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'am newbie in talend, i try to do my second job on it and i want to retrieve files from a distant directory using an ftp connection.
I followed exactly the step listed on the talend help website (here is the link https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/2Bh7tJbkdtVnEjl4Y4fuGA ), but i got an exception on my job execution which is below :
[statistics] connecting to socket on port 3614
[statistics] connected
Exception in component tFTPFileList_1 (ImportFiles)
java.net.SocketTimeoutException: Accept timed out
at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at com.enterprisedt.net.ftp.internal.FTPActiveDataSocket.acceptConnection(FTPActiveDataSocket.java:190)
at com.enterprisedt.net.ftp.internal.FTPActiveDataSocket.getInputStream(FTPActiveDataSocket.java:217)
at com.enterprisedt.net.ftp.FTPClient.getInputStream(FTPClient.java:3364)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3957)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:4023)
at local_project.importfiles_0_1.ImportFiles.tFTPFileList_1Process(ImportFiles.java:692)
at local_project.importfiles_0_1.ImportFiles.tFTPConnection_1Process(ImportFiles.java:480)
at local_project.importfiles_0_1.ImportFiles.runJobInTOS(ImportFiles.java:2144)
at local_project.importfiles_0_1.ImportFiles.main(ImportFiles.java:1994)
[statistics] disconnected
The ftp server configuration is OK, i tried to browse the distant directory and download files with my browser and everything works fine.
what should i do or post to get help?
Can anyone help please?
Hello,
I resolved my problem.
In the tutorial i followed, the connection mode of the tFTPConnection component was set to "Active". I did the same on my job, but it has to be set to "Passive". Since i turned it to passive mode, every thing worked fine, i was able to iterate trough my files and pull the file i wanted to download.
Keep it up.
Hello,
I resolved my problem.
In the tutorial i followed, the connection mode of the tFTPConnection component was set to "Active". I did the same on my job, but it has to be set to "Passive". Since i turned it to passive mode, every thing worked fine, i was able to iterate trough my files and pull the file i wanted to download.
Keep it up.