You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using Fluent FTP to connect to the FTP server and download the data. I created a scheduler with this dll which download the data from FTP on a particular time in a day. This was working fine. But recently I am getting issues to fetch the data from the FTP. If I try the same while debugging through the code, I can fetch the data. That means the issue is not consistent. Sometimes, it connect and sometimes its not. That also not all folder, some folder is not able to download. Following are the different kinds of error I am getting. (The error happens in following scenarios)
While checking the directory exists in ftp s server (Sometime issue happens here for some folder)
List the files inside a directory from FTP server (Sometime issue happens here for some folder)
Downloading the files from FTP server. (Sometime issue happens here for some folder)
But the same folder if I debug through the code and try, it will download.
Following are the different types of error I am getting.>
Logs :
System.TimeoutException: Timed out trying to read data from the socket stream!
at FluentFTP.FtpSocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at FluentFTP.FtpSocketStream.ReadLine(Encoding encoding)
at FluentFTP.FtpClient.GetReply()
at FluentFTP.FtpClient.Execute(String command)
at FluentFTP.FtpClient.GetWorkingDirectory()
at FluentFTP.FtpClient.DirectoryExists(String path)
Authentication failed because the remote party has closed the transport stream.
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at FluentFTP.FtpSocketStream.ActivateEncryption(String targethost, X509CertificateCollection clientCerts, SslProtocols sslProtocols)
at FluentFTP.FtpClient.OpenPassiveDataStream(FtpDataConnectionType type, String command, Int64 restart)
at FluentFTP.FtpClient.OpenDataStream(String command, Int64 restart)
at FluentFTP.FtpClient.GetListing(String path, FtpListOption options)
at FluentFTP.FtpClient.GetListing(String path)
FluentFTP.FtpCommandException: The specified network name is no longer available.
at FluentFTP.FtpClient.GetWorkingDirectory()
at FluentFTP.FtpClient.DirectoryExists(String path)
FluentFTP.FtpException: Failed to get the EPSV port from: Type set to I.
at FluentFTP.FtpClient.OpenPassiveDataStream(FtpDataConnectionType type, String command, Int64 restart)
at FluentFTP.FtpClient.OpenDataStream(String command, Int64 restart)
at FluentFTP.FtpClient.GetListing(String path, FtpListOption options)
at FluentFTP.FtpClient.GetListing(String path)
The text was updated successfully, but these errors were encountered:
Please note if you are using a single FTP client across multiple threads it can give issues, ie, if one command is not finished executing and another thread requests it to process a second command. Recommended way is to create an FTP client instance inside the worker/thread and then disconnect when done.
robinrodricks
changed the title
Fluent FTP issue
Intermittent issues during long running operations
Dec 21, 2017
@bavya-bal Can you check the latest release and report back which errors you are still getting? We've had many fixes and improvements since this was posted. Also remember to use high level API like UploadFile/UploadDirectory rather than implementing it using stream API.
Computer OS: Windows 10
I was using Fluent FTP to connect to the FTP server and download the data. I created a scheduler with this dll which download the data from FTP on a particular time in a day. This was working fine. But recently I am getting issues to fetch the data from the FTP. If I try the same while debugging through the code, I can fetch the data. That means the issue is not consistent. Sometimes, it connect and sometimes its not. That also not all folder, some folder is not able to download. Following are the different kinds of error I am getting. (The error happens in following scenarios)
But the same folder if I debug through the code and try, it will download.
Following are the different types of error I am getting.>
Logs :
System.TimeoutException: Timed out trying to read data from the socket stream!
Authentication failed because the remote party has closed the transport stream.
FluentFTP.FtpCommandException: The specified network name is no longer available.
FluentFTP.FtpException: Failed to get the EPSV port from: Type set to I.
The text was updated successfully, but these errors were encountered: