I have a new issue with my sftp configuration - the path in the machine I
connect to. I try few options, none of them worked for me:

======
*1. *I added no path. But then I got this exception:

2011-11-17 13:25:02.556 WARN 
org.apache.camel.component.file.remote.RemoteFilePollingConsumerPollStrategy(52)
Consumer Consumer[sftp://sftp.mysite.com:22?password=JTdF1032&username=test]
could not poll endpoint:
sftp://sftp.mysite.com:22?password=pass&username=user caused by: Cannot
change directory to: /
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: /
        at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:408)
        at
org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(SftpOperations.java:378)
        at
org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:51)
        at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:83)
        at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97)
        ...
Caused by: 2: File not found: /
        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2491)
        at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1940)
        at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:301)
        at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:406)
        ... 13 more

======
*2. *I try to give it the full path. But still got error:

2011-11-17 12:47:28.605 WARN 
org.apache.camel.component.file.remote.RemoteFilePollingConsumerPollStrategy(52)
Consumer
Consumer[sftp://sftp.mysite.com:22/users/data/test?password=JTdF1032&username=test]
could not poll endpoint:
sftp://sftp.mysite.com:22/users/data/test?password=pass&username=user caused
by: Cannot change directory to: users
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: users
        at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:408)
        at
org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(SftpOperations.java:393)
        at
org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:77)
        ...
Caused by: 2: File not found: /users/data/test/users
        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2491)
        ... 

=====
*3. *I tried to use only the test sub-path, but then it complained
(rightfully):

2011-11-17 10:08:20.992 WARN 
org.apache.camel.component.file.remote.RemoteFilePollingConsumerPollStrategy(52)
Consumer
Consumer[sftp://sftp.mysite.com:22/test?password=pass&username=user] could
not poll endpoint:
sftp://sftp.mysite.com:22/test?password=pass&username=user caused by: Cannot
change directory to: test
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: test
        at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:408)
        ...
Caused by: 2: File not found: /users/data/test/test
        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2491)
        ... 

=====
*4. *so eventually I created test folder under my account. Then I got,
again:

2011-11-17 10:09:53.891 WARN 
org.apache.camel.component.file.remote.RemoteFilePollingConsumerPollStrategy(52)
Consumer
Consumer[sftp://sftp.mysite.com:22/test?password=pass&username=user] could
not poll endpoint:
sftp://sftp.mysite.com:22/test?password=pass&username=user caused by: Cannot
change directory to: /
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: /
        at
org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:408)
        ...
Caused by: 2: File not found: /
        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2491)
        ... 

 I have no more ideas...

--
View this message in context: 
http://camel.465427.n5.nabble.com/sftp-and-path-tp5002111p5002111.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to