This project has moved. For the latest updates, please go here.

Unable to connect to Sftp host, after network connection resumes from network maintenance

Dec 22, 2010 at 10:55 AM

Hi Mikael,

We are having a problem with the SFTP adapter trying to connect to the SFTP host, after the network connection resumes from network maintenance.

By right, shouldn't the SFTP adapter be able to resume the connection after the network connection resumes.

Is there any way for the adapter to detect the connection has been resumed and reconnect?

From our observation, we found that we had to restart the host instance before the SFTP adapter could reconnect to the SFTP host.

Wondering if there is any part in the source code that we can change to do this checking? does this exist in the first place?

Hope you can help. Attached below is the event log.

Thanks.

regards,

HW

 

Windows Event Log (Application)

Event Type:    Error
Event Source:    SFTPAdapter
Event Category:    None
Event ID:    1002
Date:        12/15/2010
Time:        12:00:11 AM
User:        N/A
Computer:    ********03
Description:
The description for Event ID ( 1002 ) in Source ( SFTPAdapter ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Method: Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Dir
Error: Unable to connect to Sftp host [XXXX.xxxx.xxx.xx]

------------------------------
Information:
Type: System.Exception
Target: Void connect(Boolean)
Message: Unable to connect to Sftp host [XXXX.xxxx.xxx.xx]
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.reConnect()
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Dir(String fileMask, String uri, ArrayList filesInProcess, Boolean trace)

------------------------------
Type: Tamir.SharpSsh.jsch.JSchException
Target: Void connect(Int32)
Message: Session.connect: System.ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.Enter(Object obj)
   at Tamir.SharpSsh.jsch.Session.send_kexinit()
   at Tamir.SharpSsh.jsch.Session.receive_kexinit(Buffer buf)
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
Stacktrace:
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
   at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
   at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)


.

Dec 23, 2010 at 8:55 AM

I forgot to add that we are using Blogical SFTP adapter 1.3.6.

I noticed in the changelog that 1.3.7 fixes some reconnecting issue. Is this fix related to my problem I am facing? Will it solve the problem?

Thanks.

50091
by wmmihaa
Aug 31 at
7:12 PM
2 1.3.7 - Fixed the re-connecting issue.