FTP file transfer interrupted - socket.io

When I am trying to upload file through my own ftp client application to FTP server , sometimes I am able to upload 20 GB file but sometimes I am getting following error:-
System.IO.Exception: Unable to write data to transport connection:-> An existing connection was forcibly closed by remote host
System.Net.Sockets.SocketException:An existing connection was forcibly closed by remote host
at System.Net.Sockets.Socket.Send(Byte[]buffer, Int32 offset,Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[]buffer, Int32 offset,Int32 size)
Is this problem of FTP application or router which is breaking this connection?

Related

DataGrip - exception when creating MySql connection

Error:
The last packet successfully received from the server was 184 milliseconds ago. The last packet sent successfully to the server was 169 milliseconds ago.
java.io.EOFException: SSL peer shut down incorrectly.
But, I changed to another tool like DBaver and can successfully create the connection:
enter image description here

Tftpd64 unable to transfer file to client

I am using Tftpd64 as server for transferring file to client.
Now when client request the file then i see below error in log viewer window of Tftpd64.
Connection received from 2a01:7e00:e000:11c:3546:7805:766:7110 on port 61445 [23/06 11:50:44.967]
Read request for file <test.ota>. Mode octet [23/06 11:50:44.967]
OACK: <blksize=1200,timeout=5,> [23/06 11:50:44.967]
Using local port 61801 [23/06 11:50:44.967]
File <test.ota> : error 10054 in system call recv An existing connection was forcibly closed by the remote host. [23/06 11:50:45.131]
Is any one have idea about above error?
Also i disabled the firewall in my PC but still getting same error.
Finally i am able to make Tftpd64 server up and running. I made below changes.
Enabled Windows Firewall.
Create rule for Tftp server (Widnows firewall->Advance settings->Inbound Rules->New Rule) to allow connection and apply rule for domain, public and private.

Telnet and passive FTP

I've a problem with my FTP test server. I've installed and configured FileZilla server, It's listening for control connection on port 21, then it can provide passive mode data connection on ports between 50100 and 51100.
I'm trying a local connection 127.0.0.1:21 and retrieve the LIST of files and folders in the root FTP directory.
FileZilla Client: Works
FTP in MS-DOS: Works
TELNET in MS-DOS: Control connection and user authentication OK, then I switch to passive mode, and when I'm trying to retrieve files and folder with the command LIST It respond "Can't open data connection for transfer of "/"".
I've tried setting firewall rules for ports 50100-51100 and the FileZilla server. It's still not working.
You cannot retrieve files over FTP protocol using a Telnet client.
While you can simulate the FTP client by typing FTP commands on a Telnet console, you cannot do file transfers this way. It's because for file transfer you need a separate data transfer connection, what the Telnet client cannot do.
That's why the FTP server fails. In an active mode, it fails to connect back to your client machine, because there's nothing listening. In a passive more, it timeouts waiting for the client to connect to its data port.

Deciphering FTPS conversation

Here is a real life conversation (with IP, Hostname and ports masked) between the product I support and the z/OS based FTPS Server:
Our product uses Java FTP libraries from EnterpriseDT
---> SYST
215 MVS z/OS 011100 is the operating system for Connect:
---> PORT 111,111,111,111,11,111
200 PORT command successful.
---> LIST
150 Opening data connection.
Validating the server certificate when connecting to 'ftp.abc.com'.
Successfully validated the SSL server certificate when connecting to 'ftp.abc.com'
226 List complete. Closing data connection. 1 batches listed.
No input files found on server.
I don't understand the last two lines of the conversation. Why do I only receive a list and not the actual file?

Connection to remote host MongoDB breaks after a certain number of inserts to the collection

I have my Mongo DB v2.1.2 hosted on remote server. After inserting 58070 records i am getting the following message exception more often
Message = "A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)"
I have not run out of memory in the DB folder on the remote server. Is there any restriction on the number of inserts at one go. Also i have provision for all sorts of Mongo Exceptions so it is not a mongo exception just a remote connection drop. When i re run, the connection drops on the same record. When i put this on my local mongo instance it goes through without a problem.
What could be the possible reasons?

Resources