Here are tips for tuning the FTP/SFTP connector where the FTP/SFTP server closes the connection early due to security reasons. It will show an error like "Caused by: java.io.IOException: Pipe" closed." However, subsequent retries are fine.
org.mule.runtime.api.exception.MuleRuntimeException: Found exception trying to obtain path /test at org.mule.extension.file.common.api.command.AbstractFileCommand.exception(AbstractFileCommand.java:209) at org.mule.extension.sftp.internal.command.SftpCommand.getFile(SftpCommand.java:92) at org.mule.extension.sftp.internal.command.SftpCommand.getExistingFile(SftpCommand.java:71) at org.mule.extension.sftp.internal.command.SftpListCommand.list(SftpListCommand.java:77) at org.mule.extension.file.common.api.AbstractFileSystem.list(AbstractFileSystem.java:112) at org.mule.extension.sftp.internal.source.SftpDirectoryListener.poll(SftpDirectoryListener.java:184) at org.mule.runtime.module.extension.internal.runtime.source.poll.PollingSourceWrapper.lambda$poll$3(PollingSourceWrapper.java:192) at org.mule.runtime.core.api.util.func.CheckedRunnable.run(CheckedRunnable.java:22) at org.mule.runtime.module.extension.internal.runtime.source.poll.PollingSourceWrapper.withWatermarkLock(PollingSourceWrapper.java:497) at org.mule.runtime.module.extension.internal.runtime.source.poll.PollingSourceWrapper.poll(PollingSourceWrapper.java:189) at org.mule.runtime.module.extension.internal.runtime.source.poll.PollingSourceWrapper.lambda$onStart$0(PollingSourceWrapper.java:136) at org.mule.runtime.module.extension.internal.runtime.source.poll.DelegateRunnable.run(DelegateRunnable.java:41) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.mule.service.scheduler.internal.AbstractRunnableFutureDecorator.doRun(AbstractRunnableFutureDecorator.java:111) at org.mule.service.scheduler.internal.RunnableRepeatableFutureDecorator.run(RunnableRepeatableFutureDecorator.java:83) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.mule.runtime.api.exception.MuleRuntimeException: Could not obtain attributes for path /test at org.mule.extension.sftp.internal.connection.SftpClient.exception(SftpClient.java:415) at org.mule.extension.sftp.internal.connection.SftpClient.exception(SftpClient.java:409) at org.mule.extension.sftp.internal.connection.SftpClient.getAttributes(SftpClient.java:142) at org.mule.extension.sftp.internal.command.SftpCommand.getFile(SftpCommand.java:88) ... 17 more Caused by: org.mule.runtime.api.connection.ConnectionException: ... 20 more Caused by: 4: at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:2204) at org.mule.extension.sftp.internal.connection.SftpClient.getAttributes(SftpClient.java:137) ... 18 more Caused by: java.io.IOException: Pipe closed at java.io.PipedInputStream.read(PipedInputStream.java:307) at com.jcraft.jsch.Channel$MyPipedInputStream.updateReadSide(Channel.java:362) at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:2194) ... 19 more
001116180

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.