Hello,
I am using RebexTotalPack-2021R1 with dotNet 3.5 for a program on an WinCE 6 Computer connecting to a Filezilla Server 0.9.60 beta on a Windows Server 2019 Standard 1809.
The WinCE Computer is connected with a GSM modem to the internet. There is a VPN connection from WinCE to Win Server. I can use the VPN connection or can connect without VPN to the Filezilla Server.
The FTP Transfer (passive mode) ist starting and some kB or MB are transfered but stops after one minute with an Error in Rebex Logfile: "An existing connection was forcibly closed by the remote host".
2023-01-02 10:35:48 VERBOSE Ftp(4)[163047862] Info: Received 5948 bytes of data through data connection.
2023-01-02 10:35:48 VERBOSE Ftp(4)[163047862] Info: Checking incoming data.
2023-01-02 10:35:49 VERBOSE Ftp(4)[163047862] Info: Received 1424 bytes of data through data connection.
2023-01-02 10:35:49 VERBOSE Ftp(4)[163047862] Info: Checking incoming data.
2023-01-02 10:35:49 ERROR Ftp(4)[163047862] Info: Error while reading data: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at wsit.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at eeox.ywsw(Byte[] xr, Int32 xs, Int32 xt)
at eeox.Read(Byte[] buffer, Int32 offset, Int32 count)
at eeof.Read(Byte[] buffer, Int32 offset, Int32 count)
at Rebex.Net.Ftp.pgfa(String hq, Boolean hr, Stream hs, Int64 ht, String hu, cjiq hv)
at Rebex.Net.Ftp.pgfl(String io, String ip, Int64 iq, Int64 ir, cjiq is)
at Rebex.Net.Ftp.GetFile(String remotePath, String localPath, Int64 remoteOffset, Int64 localOffset)
at Rebex.Net.Ftp.GetFile(String remotePath, String localPath)
at FtpPush.FtpRebex.GetFileFromFtp(String sourceFilename, String localDestinationFilename, Boolean isBinaryFile)
at FtpPush.TargetFtp.DownloadFileFromTarget(FtpRebex mFt, String FileName, String distFile)
at FtpPush.TargetFtp.DownloadFileToDirectory(String Filename, String distDIR)
at FtpPush.TargetFtp.DownloadFileToTempLocation(String ToChFile, String tempDir)
at FtpPush.FtpSession.DownloadSystemUpdateFromTarget(TargetFtp targt, String[] updateFileNames, Action`1 statusUpdate, UpdateReceivedDelegate updateReceived)
at FtpPush.FtpSession.CheckForUpdatesDownloadIfValid(List`1 listOfTargets, Action`1 statusUpdate, ValidateUpdateSignalReturnFiles validateUpdate, UpdateReceivedDelegate updateReceivedDel)
at FtpPush.FtpSession.StorageLoop()
2023-01-02 10:35:49 DEBUG Ftp(4)[163047862] Info: Data connection failed.
2023-01-02 10:35:49 DEBUG Ftp(4)[163047862] Info: Closing data connection.
2023-01-02 10:35:50 ERROR Ftp(4)[163047862] Info: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at wsit.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at eeox.ywsw(Byte[] xr, Int32 xs, Int32 xt)
at eeox.Read(Byte[] buffer, Int32 offset, Int32 count)
at eeof.Read(Byte[] buffer, Int32 offset, Int32 count)
at Rebex.Net.Ftp.pgfa(String hq, Boolean hr, Stream hs, Int64 ht, String hu, cjiq hv)
at Rebex.Net.Ftp.pgfl(String io, String ip, Int64 iq, Int64 ir, cjiq is)
at Rebex.Net.Ftp.GetFile(String remotePath, String localPath, Int64 remoteOffset, Int64 localOffset)
at Rebex.Net.Ftp.GetFile(String remotePath, String localPath)
at FtpPush.FtpRebex.GetFileFromFtp(String sourceFilename, String localDestinationFilename, Boolean isBinaryFile)
at FtpPush.TargetFtp.DownloadFileFromTarget(FtpRebex mFt, String FileName, String distFile)
at FtpPush.TargetFtp.DownloadFileToDirectory(String Filename, String distDIR)
at FtpPush.TargetFtp.DownloadFileToTempLocation(String ToChFile, String tempDir)
at FtpPush.FtpSession.DownloadSystemUpdateFromTarget(TargetFtp targt, String[] updateFileNames, Action`1 statusUpdate, UpdateReceivedDelegate updateReceived)
at FtpPush.FtpSession.CheckForUpdatesDownloadIfValid(List`1 listOfTargets, Action`1 statusUpdate, ValidateUpdateSignalReturnFiles validateUpdate, UpdateReceivedDelegate updateReceivedDel)
at FtpPush.FtpSession.StorageLoop()
Filezilla Server Log shows only:
(046908)1/2/2023 10:34:34 AM - st (192.168.xxx.xxx)> 150 Opening data channel for file download from server of "/DownloadX/ST35/Update_20221204.zip.DownLoading"
(046908)1/2/2023 10:35:48 AM - st (192.168.xxx.xxx)> 426 Connection closed; aborted transfer of "/DownloadX/ST35/Update_20221204.zip.DownLoading"
(046908)1/2/2023 10:35:49 AM - st (192.168.xxx.xxx)> disconnected.
When i use TotalCommander oder Filezilla Client from Windows Server and connect to WinCE over VPN (without VPN is not possible in this direction) i can transfer files in both directions without any problem.
In Rebex Forum I found lots of issues with "An existing connection was forcibly closed by the remote host". But no answer helped me.
The Windows Server is from a customer. So I can not easily update anyhting like Filezilla.
What can be the problem? Maybe SSL or TSL?
Regards
Dominik