You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by roger_rabbit <ro...@gmx.fr> on 2013/08/28 12:39:06 UTC
Another code 550 on camel-ftp
Hi,
I got an error using camel-ftp.
I usually work on a local ftp server during developpement, and switch to
production server when I am about to finalize the route.
Unfortunately, what did work for my local server does not on the production
one.
So here's the route :
from("ftp://user@myserver.fr/incoming:21")
.idempotentConsumer(header("CamelFileName"),
FileIdempotentRepository.fileIdempotentRepository(new File("data",
PREFIX+"repo.dat")))
.process(myProcessor)
.inOnly("seda:files");
and the error
Consumer
FtpConsumer[ftp://myserver.fr?password=******&username=user]
failed polling endpoint:
Endpoint[ftp://myserver.fr?password=******&username=user].
Will try again at next poll. Caused
by:
[org.apache.camel.component.file.GenericFileOperationFailedException
- File operation failed: 550 Failed
to change directory. Cannot change
directory to: ". Code: 550]
When I use ftp://user@localhost/incoming:21, it works fine. The content of
it is the same!
According to this post
<http://camel.465427.n5.nabble.com/Cannot-change-directory-to-quot-Code-550-on-FTP-component-td5734612.html#a5734786>
, I changed my commons-net version to both 3.3 and 3.1. I even uninstalled
3.2 from the (fuse-mq) bus in order to be sure it is not used (The
dependency is set with scope "provided"). None of these solutions worked.
Il also tried to use ftp://user@myserver.fr//incoming and
ftp://user@myserver.fr//incoming/ in order to be sure it is not
the problem, but it was not. Il also tried too not use subdirectoried, but I
get the same error... so it looks like it is not related to subdirectories
here.
I also switched to other servers (not local) I used to poll, and it works.
Thus, I must assume eventually that it is :
* not caused by subdirectoried
* related to the server (which address and infos I unfortunately cannot
provide here)
So if any of you have a tip here in order to find out where the problem
could come from.... I'll listen to them with great attention!
Thanks for reading it!
--
View this message in context: http://camel.465427.n5.nabble.com/Another-code-550-on-camel-ftp-tp5738145.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Another code 550 on camel-ftp
Posted by roger_rabbit <ro...@gmx.fr>.
After a while , I ended up finding the problem here.
I added those parameters to the uri, and all worked suddenly well :
> passiveMode=false&binary=true
I hope this solution will be usefull for others!
Thanks to all those who had a look!
--
View this message in context: http://camel.465427.n5.nabble.com/Another-code-550-on-camel-ftp-tp5738145p5738696.html
Sent from the Camel - Users mailing list archive at Nabble.com.