You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/02/03 09:59:51 UTC

[jira] [Commented] (CAMEL-10782) SFTP: cannot get files from users home with readlock changed

    [ https://issues.apache.org/jira/browse/CAMEL-10782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851283#comment-15851283 ] 

Claus Ibsen commented on CAMEL-10782:
-------------------------------------

Can rely on the FTP client to provide the timstampe / file size. And if the client returns 0 all the time, then there is nothing Camel can do.

Can you do TRACE logging from the sub folders where it shows those values.

Then try to reach out to the FTP client project and see if they can find an issue/bug in their library.

> SFTP: cannot get files from users home with readlock changed
> ------------------------------------------------------------
>
>                 Key: CAMEL-10782
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10782
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.16.4
>         Environment: servicemix 7.0.0, Linux SFTP server
>            Reporter: Stefan Roos
>            Priority: Minor
>
> Camel cannot fetch files from users home directory when using readlock=changed. 
> Route from URI is defined like this:
> <from uri="sftp://testi@server:22?password=password&amp;include=PSOP_123-.*\.(xml|pdf)&amp;delete=true&amp;readLock=changed&amp;readLockTimeout=360000&amp;readLockCheckInterval=180000&amp;readLockMinAge=10s&amp;maxMessagesPerPoll=100"/>
> And from TRACE logs I can see stuff like this:
> 2017-02-03 10:59:45,146 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | Using full directory listing to update file information for RemoteFile[PSOP_123-sdfsd.xml]. Consider enabling fastExistsCheck option.
> 2017-02-03 10:59:45,146 | TRACE | //testi@infra:22 | SftpOperations                   | 225 - org.apache.camel.camel-ftp - 2.16.4 | listFiles(/)
> 2017-02-03 10:59:45,150 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | List files PSOP_123-sdfsd.xml found 23 files
> 2017-02-03 10:59:45,150 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | Previous last modified: 0, new last modified: 0
> 2017-02-03 10:59:45,150 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | Previous length: 0, new length: 0
> 2017-02-03 10:59:45,150 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | New older than threshold: 1486112375150
> 2017-02-03 10:59:45,150 | TRACE | //testi@infra:22 | ChangedExclusiveReadLockStrategy | 225 - org.apache.camel.camel-ftp - 2.16.4 | Exclusive read lock not granted. Sleeping for 20000 millis.
> User home directory contains only 1 file, which does match to include parameter. It does seem, that camel-ftp is trying to check file readlock from the server root. 
> When placing the files to a subdirectory in users home, this does not happen. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)