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("f​t​p​:​/​/​user​@myserver.​f​r​/incoming:​2​1")
    		.idempotentConsumer(header("CamelFileName"),
FileIdempotentRepository.fileIdempotentRepository(new File("data",
PREFIX+"repo.dat")))
    		.process(myProcessor)
    		.inOnly("seda:files");

and the error
C​o​n​s​u​m​e​r​
​F​t​p​C​o​n​s​u​m​e​r​[​f​t​p​:​/​/​myserver.fr?​p​a​s​s​w​o​r​d​=​*​*​*​*​*​*​&​u​s​e​r​n​a​m​e​=user]​
​f​a​i​l​e​d​ ​p​o​l​l​i​n​g​ ​e​n​d​p​o​i​n​t​:​
​E​n​d​p​o​i​n​t​[​f​t​p​:​/​/​myserver.fr?​p​a​s​s​w​o​r​d​=​*​*​*​*​*​*​&​u​s​e​r​n​a​m​e​=user]​.​
​W​i​l​l​ ​t​r​y​ ​a​g​a​i​n​ ​a​t​ ​n​e​x​t​ ​p​o​l​l​.​ ​C​a​u​s​e​d​
​b​y​:​
​[​o​r​g​.​a​p​a​c​h​e​.​c​a​m​e​l​.​c​o​m​p​o​n​e​n​t​.​f​i​l​e​.​G​e​n​e​r​i​c​F​i​l​e​O​p​e​r​a​t​i​o​n​F​a​i​l​e​d​E​x​c​e​p​t​i​o​n​
​-​ ​F​i​l​e​ ​o​p​e​r​a​t​i​o​n​ ​f​a​i​l​e​d​:​ ​5​5​0​ ​F​a​i​l​e​d​
​t​o​ ​c​h​a​n​g​e​ ​d​i​r​e​c​t​o​r​y​.​ ​ ​ ​C​a​n​n​o​t​ ​c​h​a​n​g​e​
​d​i​r​e​c​t​o​r​y​ ​t​o​:​ ​"​.​ ​C​o​d​e​:​ ​5​5​0​]

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 f​t​p​:​/​/​user​@myserver.​f​r​//incoming and
f​t​p​:​/​/​user​@myserver.​f​r/​/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.