wodSFTP.NET (General questions)

by sanjay Shenvekar @, (5994 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

locked

Re: wodSFTP.NET

by wodDamir @, (5994 days ago) @ sanjay Shenvekar

Sanjay,

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

Regards,
Damba

locked

Re: wodSFTP.NET

by tom @, (5181 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

locked

Re: wodSFTP.NET

by tom @, (5181 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

locked

Re: wodSFTP.NET

by woddrazen @, (5181 days ago) @ tom

Tom,


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

Let us know how it goes.


Drazen

locked

Re: wodSFTP.NET

by tom @, (5181 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

locked

Re: wodSFTP.NET

by woddrazen @, (5181 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

locked

Re: wodSFTP.NET

by tom @, (5181 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

locked