Support Questions

Find answers, ask questions, and share your expertise

[NIFI 1.3.0] getFTP : Read timed out

avatar
Rising Star

Hi all,

It is a bug issue ?

I'm using the last nifi 1.3.0 with simple getFTP for testing. I'm running in this error.

Any ideas?

thanks

2017-06-14 15:26:23,268 ERROR [Timer-Driven Process Thread-8] o.apache.nifi.processors.standard.GetFTP GetFTP[id=a1795c3d-015c-1000-ffff-ffff8f0fe9d8] Unable to retrieve file ./2.gz due to org.apache.nifi.processor.exception.FlowFileAccessException: Unable to create ContentClaim due to java.net.SocketTimeoutException: Read timed out: org.apache.nifi.processor.exception.FlowFileAccessException: Failed to import data from org.apache.commons.net.io.SocketInputStream@21604c14 for StandardFlowFileRecord[uuid=e1e144ed-5256-43b4-a387-067c5f98b45a,claim=,offset=0,name=104910841947330,size=0] due to org.apache.nifi.processor.exception.FlowFileAccessException: Unable to create ContentClaim due to java.net.SocketTimeoutException: Read timed out
org.apache.nifi.processor.exception.FlowFileAccessException: Failed to import data from org.apache.commons.net.io.SocketInputStream@21604c14 for StandardFlowFileRecord[uuid=e1e144ed-5256-43b4-a387-067c5f98b45a,claim=,offset=0,name=104910841947330,size=0] due to org.apache.nifi.processor.exception.FlowFileAccessException: Unable to create ContentClaim due to java.net.SocketTimeoutException: Read timed out
        at org.apache.nifi.controller.repository.StandardProcessSession.importFrom(StandardProcessSession.java:2900)
        at org.apache.nifi.processors.standard.GetFileTransfer.onTrigger(GetFileTransfer.java:194)
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1120)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.nifi.processor.exception.FlowFileAccessException: Unable to create ContentClaim due to java.net.SocketTimeoutException: Read timed out
        at org.apache.nifi.controller.repository.StandardProcessSession.importFrom(StandardProcessSession.java:2893)
        ... 13 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:170)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at java.io.FilterInputStream.read(FilterInputStream.java:107)
        at org.apache.nifi.stream.io.StreamUtils.copy(StreamUtils.java:35)
        at org.apache.nifi.controller.repository.FileSystemRepository.importFrom(FileSystemRepository.java:706)
        at org.apache.nifi.controller.repository.StandardProcessSession.importFrom(StandardProcessSession.java:2890)
        ... 13 common frames omitted

1 ACCEPTED SOLUTION

avatar
3 REPLIES 3

avatar

@mayki wogno

Was does the configuration of the GetFTP processor look like?

avatar
Rising Star

@Wynner : all defaults parameters. I've changed "Data timeout" "connection timeout" from 30s to 60s and now it is ok.

avatar