Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.1k views
in .NET FTP by (220 points)
We have an issue downlaoding files from a provider. If the file is small, the file can be downloaded. The file that can't be downloaded is 82k which wouldn't seem to be too large. An error code 0 is returned. I can download the file using CoreFTP. Here is the part of the log with the error:

ALL [SFTPMessage] 27 Oct 2010 13:10:18.095 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=5
handle=30
ALL [SFTPMessage] 27 Oct 2010 13:10:18.095 : Send : Name=SSH_FXP_READ,Type=5,RequestID=6
handle=30,offset=0,len=65535
DEBUG [SSH2Channel] 27 Oct 2010 13:10:18.095 : Transmit 4 bytes
DEBUG [ChannelDataWindow] 27 Oct 2010 13:10:18.095 : Remote window size decreased to 130793
DEBUG [SSH2Channel] 27 Oct 2010 13:10:18.095 : Transmit 22 bytes
DEBUG [ChannelDataWindow] 27 Oct 2010 13:10:18.095 : Remote window size decreased to 130771
DEBUG [PlainSocket] 27 Oct 2010 13:10:18.267 : RepeatCallback received 0 bytes
DEBUG [SFTPChannelReceiver] 27 Oct 2010 13:10:18.267 : Connection closed: (code=0)
ERROR [SFTPMessageStore] 27 Oct 2010 13:10:18.267 : Disconnected unexpectedly ( [errorcode=0])
ERROR [SFTPMessageStore] 27 Oct 2010 13:10:18.282 : [errorcode=0] : EnterpriseDT.Net.Ftp.Ssh.SFTPException: [errorcode=0]
EnterpriseDT.Net.Ftp.Ssh.SFTPException: [errorcode=0]
at fe.b(Int32 A_0)
ALL [SFTPMessage] 27 Oct 2010 13:10:18.282 : Send : Name=SSH_FXP_CLOSE,Type=4,RequestID=7
handle=30
DEBUG [SSH2Channel] 27 Oct 2010 13:10:18.282 : Transmit 4 bytes
DEBUG [ChannelDataWindow] 27 Oct 2010 13:10:18.282 : Remote window size decreased to 130767
DEBUG [SSH2Channel] 27 Oct 2010 13:10:18.282 : Transmit 10 bytes
DEBUG [ChannelDataWindow] 27 Oct 2010 13:10:18.282 : Remote window size decreased to 130757
ERROR [SFTPMessageStore] 27 Oct 2010 13:15:18.380 : GetMessage timed out (request id=7)
ERROR [SFTPMessageStore] 27 Oct 2010 13:15:18.380 : GetMessage timed out (request id=7) : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=7)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=7)
at fe.b(Int32 A_0)
ERROR [SSHFTPClient] 27 Oct 2010 13:15:18.380 : Failed to close input stream in Get() : EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=7)
EnterpriseDT.Net.Ftp.Ssh.SFTPException: GetMessage timed out (request id=7)
at fe.b(Int32 A_0)
at ag.a(Int32 A_0)
at ag.c(Byte[] A_0)
at ag.c(al A_0)
at al.f()
at ej.b()
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2)
ERROR [SSHFTPClient] 27 Oct 2010 13:15:18.380 : Caught exception : EnterpriseDT.Net.Ftp.Ssh.SFTPException: [errorcode=0]
EnterpriseDT.Net.Ftp.Ssh.SFTPException: [errorcode=0]
at fe.b(Int32 A_0)
at ag.b(Byte[] A_0, Int64 A_1, Byte[] A_2, Int32 A_3, Int32 A_4)
at ej.b(Byte[] A_0, Int32 A_1, Int32 A_2)
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, Stream A_1, TransferDirection A_2, String A_3, Int64 A_4)
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2)

7 Answers

0 votes
by (51.6k points)
It looks like the server is closing the connection. If you have access to the server logs then you may find the reason in there.

- Hans (EnterpriseDT)
0 votes
by (162k points)
In addition to what Hans has said, please ensure your timeout is set to at least 60,000, and email us the entire log file starting from login (zipped please).
0 votes
by (220 points)
What is errorcode 0? What address should I email the log to?
0 votes
by (220 points)
Just an update. I wrote a new driver using Secure Black Box and was able to download the file. I checked the properties on your control but didn't find anything that would keep the control from downloading the file. Very confusing. I've used your control for years in multiple projects without any issues. I don't like SBB but need to move forward on the project. Please let me know of any solutions.
0 votes
by (162k points)
Address for zipped log file is support@enterprisedt.com.
0 votes
by (162k points)
Looking at your log file I can see you are using 5.0.5. This is a few years old and I strongly recommend upgrading to the latest version, 7.2.0. There have been many releases and many fixes since then:

http://www.enterprisedt.com/products/ed ... story.html

If that doesn't solve the problem, please send us another log file for 7.2.0 - server problems are always solvable one way or another.
0 votes
by (162k points)
The customer has reported that upgrading to 7.2.0 has fixed the problem.

Categories

...