Hi Thomas,

Could you please try defining the vfs property "transport.vfs.Locking" as
follows.

<endpoint name="ftpEndpoint">
   <address
uri="vfs:sftp://hostname:port/xx/xx/?transport.vfs.Locking=disable"/>
</endpoint>


Thanks,
Prabushi


On Mon, Feb 26, 2018 at 2:36 PM, Thomas LEGRAND <
[email protected]> wrote:

> Hello everybody,
>
> I tried to send a file to a FTP server from my sequence but I have the
> same error appearing each time:
>
> TID: [-1234] [] [2018-02-26 10:02:41,017]  WARN
> {org.apache.synapse.transport.vfs.VFSTransportSender} -  Couldn't get the
> lock for the file : ftp://esb":***@"myserver/D11DEAC5310D294
> A5A1519635762262.xml, retry : 1 scheduled after : 30000
> {org.apache.synapse.transport.vfs.VFSTransportSender}
>
> <?xml version="1.0" encoding="UTF-8"?>
> <sequence name="sendUpdateCorrespondenceNotification" xmlns="
> http://ws.apache.org/ns/synapse";>
>     <property
>         expression="get-property('registry', 'gov:/local-cfg-esb/common.
> ftp.user')"
>         name="user" scope="default" type="STRING" xmlns:ns="
> http://org.apache.synapse/xsd"/>
>     <property
>         expression="get-property('registry', 'gov:/local-cfg-esb/common.
> ftp.passwd')"
>         name="pwd" scope="default" type="STRING" xmlns:ns="
> http://org.apache.synapse/xsd"/>
>     <property
>         expression="get-property('registry', 'gov:/local-cfg-esb/common.
> ftp.host')"
>         name="host" scope="default" type="STRING" xmlns:ns="
> http://org.apache.synapse/xsd"/>
>     <property
>         expression="get-property('registry', 'gov:/local-cfg-esb/common.
> ftp.dir')"
>         name="directory" scope="default" type="STRING" xmlns:ns="
> http://org.apache.synapse/xsd"/>
>     <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
>     <property name="vfs.passive" scope="transport" type="STRING"
> value="true"/>
>     <property
>         expression="fn:concat(fn:substring-after(get-property('MessageID'),
> 'urn:uuid:'), '.xml')"
>         name="transport.vfs.ReplyFileName" scope="transport"
>         type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>
>     <property name="transport.vfs.Locking" scope="transport"
>         type="STRING" value="disable"/>
>     <property
>         expression="fn:concat('vfs:ftp://', $ctx:user, ':', $ctx:pwd,
> '@', $ctx:host, '/', $ctx:transport.vfs.ReplyFileName)"
>         name="ftpEndpoint" scope="default" type="STRING" xmlns:ns="
> http://org.apache.synapse/xsd"/>
>     <call>
>         <endpoint name="ftpEndpoint">
>             <address uri="${ftpEndpoint}"/>
>         </endpoint>
>     </call>
> </sequence>
>
> As you can see, I defined the transport.vfs.Locking property to disabled
> but the ESB tries to generate a lock file...
>
> I tried to connect directly to the FTP server via my FTP client and I can
> write in the directory.
>
> Am I missing something?
>
> Regards,
>
> Thomas
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Prabushi Samarakoon*
Software Engineer
Mobile: +94715434580
Email: [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to