骆驼SFTP-无法将目录更改为"/" [英] Camel SFTP - Cannot change directory to '/'
本文介绍了骆驼SFTP-无法将目录更改为"/"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要通过SFTP连接到服务器,并且收到此错误:
I need to connect via SFTP to a server and I receive this error:
INFO [org.apache.camel.component.file.remote.SftpOperations.connect]: **Connected to sftp://myserver.com:22**
INFO [org.apache.camel.component.file.remote.RemoteFileProducer.connectIfNecessary]: **Connected and logged in to: Endpoint[sftp://myserver.com:22//home/tomcat/directory?password=******]
INFO [org.apache.camel.component.file.remote.SftpOperations$JSchLogger.log]: JSCH -> **Caught an exception, leaving main loop due to Read timed out**
INFO [org.apache.camel.component.file.remote.SftpOperations$JSchLogger.log]: JSCH -> **Disconnecting from myserver.com port 22**
WARN [org.apache.camel.component.file.remote.RemoteFileProducer.handleFailedWrite]: **Writing file failed with: Cannot change directory to: /**
我尝试使用骆驼SFTP选项maximumReconnectAttempts=10
,serverAliveInterval=60
,并将骆驼版本更改为 2.12.0 ,然后更改为 2.10.7 (该问题已解决),但这些都无法解决我的问题.
似乎是一个错误,但奇怪的是,它并非每次都重现,我尝试连接到服务器.
I tried to use camel SFTP options maximumReconnectAttempts=10
, serverAliveInterval=60
and to change the camel version to 2.12.0 and then to 2.10.7 (versions where the issue is fixed), but none of these fixed my issue.
Seems to be a bug , but the weird thing is that it is not reproduced every time I try to connect to my server.
我感谢任何建议.
推荐答案
添加骆驼SFTP选项disconnect=true
后,我解决了问题.
I solved my issue after adding the camel SFTP option disconnect=true
.
这篇关于骆驼SFTP-无法将目录更改为"/"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文