I am using WSO2 Enterprise integrator (ESB) V6.3.0 to move files from one FTP server to another. There are around 10 very small files which needs to be moved daily at midnight.
But I found that, EI somehow stuck somewhere while moving the files and stops rest of the operation though it remains in running status. I have to restart EI every week on PROD which is not a good sign.
Kindly suggest if there are any configuration settings or any other thing which could fix this problem.
Attaching below one of the sample proxy service
<?xml version="1.0" encoding="UTF-8"?>
<proxy name="SFTPFileTransferProxy" startOnLoad="true"
trace="disable" transports="vfs" xmlns="http://ws.apache.org/ns/synapse">
<target>
<inSequence>
<property expression="$trp:FILE_NAME" name="FILE_NAME"
scope="default" type="STRING"/>
<log level="custom">
<property name="sequence" value="File transfer Proxy"/>
<property expression="$ctx:FILE_NAME" name="FL2"/>
</log>
</inSequence>
<outSequence/>
<faultSequence/>
</target>
<parameter name="transport.PollInterval">300</parameter>
<parameter name="transport.vfs.FileURI">vfs:sftp://server_name/out/xyz?transport.vfs.AvoidPermissionCheck=true</parameter>
<parameter name="transport.vfs.ContentType">text/plain</parameter>
<parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
<parameter name="transport.vfs.MoveAfterFailure">file:///C:/files/failed/xyz_in</parameter>
<parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
<parameter name="transport.vfs.Locking">disable</parameter>
<parameter name="transport.vfs.FileNamePattern">.*\.csv</parameter>
<parameter name="transport.vfs.MoveAfterProcess">smb://server_in/files/xyz_in</parameter>
</proxy>
Attaching thread dump from server on github directory.