Camel SFTP - 无法将目录更改为“/" [英] Camel SFTP - Cannot change directory to '/'

查看:41
本文介绍了Camel 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=10serverAliveInterval=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.

我感谢任何形式的建议.

I appreciate any kind of suggestions.

推荐答案

我在添加骆驼 SFTP 选项 disconnect=true 后解决了我的问题.

I solved my issue after adding the camel SFTP option disconnect=true.

这篇关于Camel SFTP - 无法将目录更改为“/"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆