Camel - Cannot change directory to: FTP. Code: 550
Issue
-
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 | o.in:22/FTP | FtpConsumer | 193 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Consumer FtpConsumer[ftp://ftp.example.com:22/FTP?delete=true&passiveMode=true&password=xxxxxx&username=test] failed polling endpoint: Endpoint[ftp://ftp.example.com:22/FTP?delete=true&passiveMode=true&password=xxxxxx&username=test. 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(FtpOperations.java:775)[198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:753)[198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
at org.apache.camel.component.file.remote.FtpConsumer.doPollDirectory(FtpConsumer.java:83)[198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(FtpConsumer.java:54)[198:org.apache.camel.camel-ftp:2.15.1.redhat-620133]
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:119)[193:org.apache.camel.camel-core:2.15.1.redhat-620133]
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)[193:org.apache.camel.camel-core:2.15.1.redhat-620133]
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)[193:org.apache.camel.camel-core:2.15.1.redhat-620133]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_181]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_181]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_181]
Environment
- Red Hat Fuse
- 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.