You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "manoj.sahu" <ma...@yahoo.com> on 2010/11/26 08:41:14 UTC
SFTP file retrieval does not seem to work but no exception
Hi -
I am trying to get a file from a remote sftp server. It does not give me
any exception but does not work either.
Here is my route :
from("sftp://dwsftp@10.0.0.149:2222//sftp/?initialDelay=8000&move=.done&password=xxxx")
.to("log:input")
.unmarshal(bindy)
.process(new CbProcessor());
I have tried many combination. I gave the filename ... nothing worked.
Here is the logfile:
02:29:20,093 DEBUG SftpConsumer:111 - Not connected/logged in, connecting
to: sftp://dwsftp@10.0.0.149:2222
02:29:20,124 DEBUG SftpOperations:152 - Using StrickHostKeyChecking: no
02:29:20,124 INFO SftpOperations:216 - JSCH -> Connecting to 10.0.0.149
port 2222
02:29:20,155 INFO SftpOperations:216 - JSCH -> Connection established
02:29:20,171 INFO SftpOperations:216 - JSCH -> Remote version string:
SSH-2.0-mod_sftp/0.9.7
02:29:20,171 INFO SftpOperations:216 - JSCH -> Local version string:
SSH-2.0-JSCH-0.1.42
02:29:20,171 INFO SftpOperations:216 - JSCH -> CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
02:29:20,186 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT sent
02:29:20,186 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT received
02:29:20,186 INFO SftpOperations:216 - JSCH -> kex: server->client
aes128-ctr hmac-md5 none
02:29:20,186 INFO SftpOperations:216 - JSCH -> kex: client->server
aes128-ctr hmac-md5 none
02:29:20,202 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXDH_INIT sent
02:29:20,202 INFO SftpOperations:216 - JSCH -> expecting
SSH_MSG_KEXDH_REPLY
02:29:20,436 INFO SftpOperations:216 - JSCH -> ssh_rsa_verify: signature
true
02:29:20,436 WARN SftpOperations:213 - JSCH -> Permanently added
'10.0.0.149' (RSA) to the list of known hosts.
02:29:20,436 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS sent
02:29:20,452 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS received
02:29:20,468 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_REQUEST sent
02:29:20,483 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_ACCEPT
received
02:29:20,499 INFO SftpOperations:216 - JSCH -> Authentications that can
continue: password
02:29:20,499 INFO SftpOperations:216 - JSCH -> Next authentication method:
password
02:29:20,530 INFO SftpOperations:216 - JSCH -> Authentication succeeded
(password).
Then nothing. I have debug level on. That's all I get. Can someone give
me some pointers?
Thanks
--
View this message in context: http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3280951.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: SFTP file retrieval does not seem to work but no exception
Posted by Bengt Rodehav <be...@rodehav.com>.
Very strange indeed...
I'm surprised that you don't get anything more in your log file. It's
as if Camel is not even trying to poll your remote file system. Have
you checked any logs at the sftp server on the other side in order to
find out if Camel is actually trying to list files? Also, have you
tried your route against any other sftp server than this one. It might
be useful just to verify that your environment is correctly set up.
Finally it could be interesting to try Camel 2.4.0 since the file2
component was changed quite a bit in version 2.5.0. Perhaps a bug was
introduced?
/Bengt
2010/11/28 manoj.sahu <ma...@yahoo.com>:
>
> Hi Bengt,
> I have used the winSCP client to login to the remote server and I see there
> is file to pick up. I am also able to move files using the same credential
> as my Java program using Camel. On the remote server I have a jail
> (chroot) account. That should not make any difference.
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3283641.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: SFTP file retrieval does not seem to work but no exception
Posted by "manoj.sahu" <ma...@yahoo.com>.
Hi Bengt,
I have used the winSCP client to login to the remote server and I see there
is file to pick up. I am also able to move files using the same credential
as my Java program using Camel. On the remote server I have a jail
(chroot) account. That should not make any difference.
Thanks
--
View this message in context: http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3283641.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: SFTP file retrieval does not seem to work but no exception
Posted by Bengt Rodehav <be...@rodehav.com>.
Manoj,
You seem to succeed in logging in but have you checked (using an ordinary
sftp client) that there are any files to poll at the URL you use?
/Bengt
2010/11/26 manoj.sahu <ma...@yahoo.com>
>
> Thank you for attention Claus!
>
> I had switched on trace :
> log4j.logger.org.apache.camel=TRACE
>
> I did not get any further logging. I am 2.5.0 version.
>
>
> 11:06:23,873 DEBUG SpringCamelContext:94 - onApplicationEvent:
> 11:06:23,873 TRACE SpringCamelContext:206 - Ignoring maybeStart() as Apache
> Camel is already started
> 11:06:23,873 INFO DispatcherServlet:320 - FrameworkServlet 'rest':
> initialization completed in 1703 ms
> 11:06:30,123 TRACE ScheduledPollConsumer:87 - Starting to poll:
> Endpoint[sftp://
> dwsftp@10.0.0.149:2222//sftp/chargeback-sample.csv?initialDelay=8000&move=.done&noop=true&password=dwsftp&recursive=true
> ]
> 11:06:30,123 DEBUG SftpConsumer:111 - Not connected/logged in, connecting
> to: sftp://dwsftp@10.0.0.149:2222
> 11:06:30,452 DEBUG SftpOperations:152 - Using StrickHostKeyChecking: no
> 11:06:30,452 INFO SftpOperations:216 - JSCH -> Connecting to 10.0.0.149
> port 2222
> 11:06:30,467 INFO SftpOperations:216 - JSCH -> Connection established
> 11:06:30,467 INFO SftpOperations:216 - JSCH -> Remote version string:
> SSH-2.0-mod_sftp/0.9.7
> 11:06:30,467 INFO SftpOperations:216 - JSCH -> Local version string:
> SSH-2.0-JSCH-0.1.42
> 11:06:30,467 INFO SftpOperations:216 - JSCH -> CheckCiphers:
>
> aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
> 11:06:30,670 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT sent
> 11:06:30,670 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT received
> 11:06:30,670 INFO SftpOperations:216 - JSCH -> kex: server->client
> aes128-ctr hmac-md5 none
> 11:06:30,670 INFO SftpOperations:216 - JSCH -> kex: client->server
> aes128-ctr hmac-md5 none
> 11:06:30,702 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXDH_INIT sent
> 11:06:30,702 INFO SftpOperations:216 - JSCH -> expecting
> SSH_MSG_KEXDH_REPLY
> 11:06:30,733 INFO SftpOperations:216 - JSCH -> ssh_rsa_verify: signature
> true
> 11:06:30,748 WARN SftpOperations:213 - JSCH -> Permanently added
> '10.0.0.149' (RSA) to the list of known hosts.
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS sent
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS received
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_REQUEST
> sent
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_ACCEPT
> received
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> Authentications that can
> continue: password
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> Next authentication method:
> password
> 11:06:30,748 INFO SftpOperations:216 - JSCH -> Authentication succeeded
> (password).
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3281496.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: SFTP file retrieval does not seem to work but no exception
Posted by "manoj.sahu" <ma...@yahoo.com>.
Thank you for attention Claus!
I had switched on trace :
log4j.logger.org.apache.camel=TRACE
I did not get any further logging. I am 2.5.0 version.
11:06:23,873 DEBUG SpringCamelContext:94 - onApplicationEvent:
11:06:23,873 TRACE SpringCamelContext:206 - Ignoring maybeStart() as Apache
Camel is already started
11:06:23,873 INFO DispatcherServlet:320 - FrameworkServlet 'rest':
initialization completed in 1703 ms
11:06:30,123 TRACE ScheduledPollConsumer:87 - Starting to poll:
Endpoint[sftp://dwsftp@10.0.0.149:2222//sftp/chargeback-sample.csv?initialDelay=8000&move=.done&noop=true&password=dwsftp&recursive=true]
11:06:30,123 DEBUG SftpConsumer:111 - Not connected/logged in, connecting
to: sftp://dwsftp@10.0.0.149:2222
11:06:30,452 DEBUG SftpOperations:152 - Using StrickHostKeyChecking: no
11:06:30,452 INFO SftpOperations:216 - JSCH -> Connecting to 10.0.0.149
port 2222
11:06:30,467 INFO SftpOperations:216 - JSCH -> Connection established
11:06:30,467 INFO SftpOperations:216 - JSCH -> Remote version string:
SSH-2.0-mod_sftp/0.9.7
11:06:30,467 INFO SftpOperations:216 - JSCH -> Local version string:
SSH-2.0-JSCH-0.1.42
11:06:30,467 INFO SftpOperations:216 - JSCH -> CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
11:06:30,670 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT sent
11:06:30,670 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT received
11:06:30,670 INFO SftpOperations:216 - JSCH -> kex: server->client
aes128-ctr hmac-md5 none
11:06:30,670 INFO SftpOperations:216 - JSCH -> kex: client->server
aes128-ctr hmac-md5 none
11:06:30,702 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXDH_INIT sent
11:06:30,702 INFO SftpOperations:216 - JSCH -> expecting
SSH_MSG_KEXDH_REPLY
11:06:30,733 INFO SftpOperations:216 - JSCH -> ssh_rsa_verify: signature
true
11:06:30,748 WARN SftpOperations:213 - JSCH -> Permanently added
'10.0.0.149' (RSA) to the list of known hosts.
11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS sent
11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS received
11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_REQUEST sent
11:06:30,748 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_ACCEPT
received
11:06:30,748 INFO SftpOperations:216 - JSCH -> Authentications that can
continue: password
11:06:30,748 INFO SftpOperations:216 - JSCH -> Next authentication method:
password
11:06:30,748 INFO SftpOperations:216 - JSCH -> Authentication succeeded
(password).
--
View this message in context: http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3281496.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: SFTP file retrieval does not seem to work but no exception
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Enable DEBUG/TRACE logging to see more details.
What Camel version are you using?
Consider try using the latest release.
On Fri, Nov 26, 2010 at 8:41 AM, manoj.sahu <ma...@yahoo.com> wrote:
>
> Hi -
> I am trying to get a file from a remote sftp server. It does not give me
> any exception but does not work either.
>
> Here is my route :
> from("sftp://dwsftp@10.0.0.149:2222//sftp/?initialDelay=8000&move=.done&password=xxxx")
> .to("log:input")
> .unmarshal(bindy)
> .process(new CbProcessor());
>
> I have tried many combination. I gave the filename ... nothing worked.
> Here is the logfile:
>
> 02:29:20,093 DEBUG SftpConsumer:111 - Not connected/logged in, connecting
> to: sftp://dwsftp@10.0.0.149:2222
> 02:29:20,124 DEBUG SftpOperations:152 - Using StrickHostKeyChecking: no
> 02:29:20,124 INFO SftpOperations:216 - JSCH -> Connecting to 10.0.0.149
> port 2222
> 02:29:20,155 INFO SftpOperations:216 - JSCH -> Connection established
> 02:29:20,171 INFO SftpOperations:216 - JSCH -> Remote version string:
> SSH-2.0-mod_sftp/0.9.7
> 02:29:20,171 INFO SftpOperations:216 - JSCH -> Local version string:
> SSH-2.0-JSCH-0.1.42
> 02:29:20,171 INFO SftpOperations:216 - JSCH -> CheckCiphers:
> aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
> 02:29:20,186 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT sent
> 02:29:20,186 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXINIT received
> 02:29:20,186 INFO SftpOperations:216 - JSCH -> kex: server->client
> aes128-ctr hmac-md5 none
> 02:29:20,186 INFO SftpOperations:216 - JSCH -> kex: client->server
> aes128-ctr hmac-md5 none
> 02:29:20,202 INFO SftpOperations:216 - JSCH -> SSH_MSG_KEXDH_INIT sent
> 02:29:20,202 INFO SftpOperations:216 - JSCH -> expecting
> SSH_MSG_KEXDH_REPLY
> 02:29:20,436 INFO SftpOperations:216 - JSCH -> ssh_rsa_verify: signature
> true
> 02:29:20,436 WARN SftpOperations:213 - JSCH -> Permanently added
> '10.0.0.149' (RSA) to the list of known hosts.
> 02:29:20,436 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS sent
> 02:29:20,452 INFO SftpOperations:216 - JSCH -> SSH_MSG_NEWKEYS received
> 02:29:20,468 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_REQUEST sent
> 02:29:20,483 INFO SftpOperations:216 - JSCH -> SSH_MSG_SERVICE_ACCEPT
> received
> 02:29:20,499 INFO SftpOperations:216 - JSCH -> Authentications that can
> continue: password
> 02:29:20,499 INFO SftpOperations:216 - JSCH -> Next authentication method:
> password
> 02:29:20,530 INFO SftpOperations:216 - JSCH -> Authentication succeeded
> (password).
>
>
> Then nothing. I have debug level on. That's all I get. Can someone give
> me some pointers?
> Thanks
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/SFTP-file-retrieval-does-not-seem-to-work-but-no-exception-tp3280951p3280951.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/