Camel - Cannot change directory to: FTP. Code: 550

Solution Verified - Updated -


  • In a day two or three time route not works, its showing error, can't change directory.

  • But if i restart bundle , its working properly again and after few hours same issue occured.

  • Recently, we start to notice some warnings in our logs about a camel ftp consumer that is no not being able to change to a certain folder on a ftp site "Cannot change directory to: Test. Code: 550"

  • Logs
2021-07-27 00:00:41,913 | WARN  | | FtpConsumer                      | 193 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Consumer FtpConsumer[] failed polling endpoint: Endpoint[ Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - File operation failed: 550 The system cannot find the file specified.
 Cannot change directory to: FTP. Code: 550]
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 550 The system cannot find the file specified.
 Cannot change directory to: FTP. Code: 550
        at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory([198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
        at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory([198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
        at org.apache.camel.component.file.remote.FtpConsumer.doPollDirectory([198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
        at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory([198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
        at org.apache.camel.component.file.GenericFileConsumer.poll([193:org.apache.camel.camel-core:2.15.1.redhat-620133]
        at org.apache.camel.impl.ScheduledPollConsumer.doRun([193:org.apache.camel.camel-core:2.15.1.redhat-620133]
        at java.util.concurrent.Executors$[:1.8.0_181]
        at java.util.concurrent.FutureTask.runAndReset([:1.8.0_181]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301([:1.8.0_181]
        at java.util.concurrent.ScheduledThreadPoolExecutor$[:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor.runWorker([:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor$[:1.8.0_181]


  • Red Hat Fuse
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content