wodSFTP.NET - WeOnlyDo Discussion board

wodSFTP.NET (General questions)

by sanjay Shenvekar, Monday, December 08, 2008, 08:04 (5828 days ago)

Hi,

This is Urgent
I go the following error message while putting the file on Server.

Execution Line
i.e. DestSFTP.PutFile(FileName)

The error is
WeOnlyDo.Exceptions.SFTP.TimeoutException: Timeout occured due to inactivity

It trsansfers quite good amount of files and then gives this errors
The file format is PDF.

Regards
Sanjay

Re: wodSFTP.NET

by wodDamir, Monday, December 08, 2008, 08:51 (5828 days ago) @ sanjay Shenvekar

Sanjay,

I've already responded to you on Ticketing system. Please check your e-mail.

Regards,
Damba

Re: wodSFTP.NET

by tom, Tuesday, March 01, 2011, 12:13 (5015 days ago) @ wodDamir

Sanjay,

I've already responded to you on Ticketing system. Please check your e-mail.

Regards,
Damba

Hallo,

is it possible to get this answer, because we have the same problem when we upload some text files to a linux server.

thanks

Re: wodSFTP.NET

by woddrazen, Tuesday, March 01, 2011, 12:19 (5015 days ago) @ tom

Hi Tom,


Does it work maybe if you increase Timeout Property value or you set it to 0?

More help for Timeout Properly you can find here:
http://www.weonlydo.com/SFTP.NET/Help/WeOnlyDo.Client.SFTP.Timeout.html

Let us know how it goes.


Regards,
Drazen

Re: wodSFTP.NET

by tom, Tuesday, March 01, 2011, 12:36 (5015 days ago) @ woddrazen

Hi Tom,


Does it work maybe if you increase Timeout Property value or you set it to 0?

More help for Timeout Properly you can find here:
http://www.weonlydo.com/SFTP.NET/Help/WeOnlyDo.Client.SFTP.Timeout.html

Let us know how it goes.


Regards,
Drazen


Hallo,

thanks for your answer. We already have the timeout value set to 10 seconds. In most cases the transfer works perfectly, but sometimes it times out. On the server side is nothing to see about this problem (the component connects and after the timeout the connection is closed). I can set the timeout value to a higher value (100 seconds ?)

Thanks

tom

Re: wodSFTP.NET

by woddrazen, Tuesday, March 01, 2011, 12:38 (5015 days ago) @ tom

Tom,


Yes, you can try with 100 seconds. 10 seconds is probably too short.

Let us know how it goes.


Drazen

Re: wodSFTP.NET

by tom, Tuesday, March 01, 2011, 13:03 (5015 days ago) @ woddrazen

Tom,


Yes, you can try with 100 seconds. 10 seconds is probably too short.

Let us know how it goes.


Drazen

Hallo

The timeouts further appear after i set the timeout value to 100 seconds. But i think that also the server side does cancel the connection. In the server log i found this entry:

Mar 1 12:39:01 ###### sshd[18006]: Connection from *.*.*.* port 53239
Mar 1 12:40:41 ###### sshd[18006]: Did not receive identification string from UNKNOWN

The identification string is set (constant) in the vb program and the failure appears from time to time.

tom

Re: wodSFTP.NET

by woddrazen, Tuesday, March 01, 2011, 13:11 (5015 days ago) @ tom

Tom,


Did you try with Timeout = 0?

Also, what happens if you try same using our samples? You can find samples inside component Samples folder.

Maybe you can try some other SFTP client like FileZilla and see if same issue occur there.


Drazen

Re: wodSFTP.NET

by tom, Tuesday, March 01, 2011, 15:49 (5015 days ago) @ woddrazen

Tom,


Did you try with Timeout = 0?

Also, what happens if you try same using our samples? You can find samples inside component Samples folder.

Maybe you can try some other SFTP client like FileZilla and see if same issue occur there.


Drazen

Hallo,

I have tried it with a timeout value 0. But i also get this timeout errors.
Than i recompiled your sample application with VS 2010, like my application but i couln't reproduce this timeout error. Maybe a problem in my application.
Now i think i have found the problem

in a loop for different file transfers i had this code:

Sftp1.Hostname = SFTPServerName
Sftp1.Login = SFTPUser
Sftp1.Password = SFTPPW
Sftp1.Authentication = WeOnlyDo.Client.SFTP.Authentications.Password
Sftp1.Encryption = WeOnlyDo.Client.SFTP.Encryptions.Auto
Sftp1.Port = 22
Sftp1.Blocking = True
Sftp1.TransferMode = WeOnlyDo.Client.SFTP.TransferModes.ASCII
Sftp1.Timeout = 0
Sftp1.Connect()

Sftp1.PutFile(strXMLFile, OutputPath & / & OutputFile)

Sftp1.Disconnect()
Sftp1.Dispose()

outside of this loop i had created the instance of the SFTP client. Now i moved this statement:

Sftp1 = New WeOnlyDo.Client.SFTP

also in the loop and the timeout problem seems the be disappeard

thanks

tom