• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue FTP drops connection while processing files

Novadiei

New Pleskian
Server operating system version
AlmaLinux 8.6 (Sky Tiger)
Plesk version and microupdate number
Plesk Obsidian v18.0.46_build1800220920.14 os_RedHat el8
Hi,

We have a weird issue with FTP connections. Connection works fine, but once a selection is made lets say of 2-3k files to be deleted, it gets processing and after 1000 or so deleted files it throws an error:

Error: Could not write to socket: ECONNABORTED - Connection aborted Error: Disconnected from server Error: Could not read from socket: ENOTCONN - Socket not connected Error: Disconnected from server after deleting files

It starts with this (you can see the counter in filezilla going down regarding deleted files):
Status: Deleting 49579 files from "/****/wp-content/uploads/2022/08"

Then after some seconds the commands for DELE start popping out in the filezilla upper console, until it goes to the error line.

(...)
Response: 250 DELE command successful
Command: DELE DAS_2222146_20210902_125032-300x300.jpg
Response: 250 DELE command successful
Command: DELE DAS_2222146_20210902_125032-150x150.jpg
Response: 250 DELE command successful
Command: DELE DAS_2222146_20210902_125032-1024x1024.jpg
Error: Could not write to socket: ECONNABORTED - Connection aborted
Error: Disconnected from server
Error: Could not read from socket: ENOTCONN - Socket not connected
Error: Disconnected from server

After some more seconds more DELE commands start comming out, and then it finally stops, but this time with "No such file or directory":

(...)
Response: 550 DAS_2222200_20210716_114804-150x150.jpg: No such file or directory
Command: DELE DAS_2222200_20210716_114804-1024x1024.jpg
Response: 550 DAS_2222200_20210716_114804-1024x1024.jpg: No such file or directory
Command: DELE DAS_2222200_20210716_114804-100x100.jpg
Response: 550 DAS_2222200_20210716_114804-100x100.jpg: No such file or directory
Command: DELE DAS_2222199_20210812_150819.jpg
Response: 550 DAS_2222199_20210812_150819.jpg: No such file or directory
Command: DELE DAS_2222199_20210812_150819-768x768.jpg
Error: Disconnected from server: ECONNABORTED - Connection aborted

I have tried default, passive, active mode, the connection is normal authetification over TLS.
Filezilla is updated to latest version.

Any ideas?:)
 
This could be anything. You can try to check ProFTPD settings on your server for parameters such as MaxInstances, MaxClients, TimeoutIdle, TimeoutStalled or whatever influences network connectivity or availability of an FTP connection. It is also possible that this is a network issue. Maybe something very simple like a changing IP address while a transfer is ongoing. It is even possible that some local software or router interferes with the connection or an antivirus software. In such cases you need to go through all of the components that are involved in the connection to find the cause.
 
probably make cense additionally check file2ban if it is installed ?
is yor session present in Tools&Settings>Active FTP Sessions when errors started to appear ?


did you try another clients (ftp connection in FarManager or totalcommander, for example) ?
 
This could be anything. You can try to check ProFTPD settings on your server for parameters such as MaxInstances, MaxClients, TimeoutIdle, TimeoutStalled or whatever influences network connectivity or availability of an FTP connection. It is also possible that this is a network issue. Maybe something very simple like a changing IP address while a transfer is ongoing. It is even possible that some local software or router interferes with the connection or an antivirus software. In such cases you need to go through all of the components that are involved in the connection to find the cause.
probably make cense additionally check file2ban if it is installed ?
is yor session present in Tools&Settings>Active FTP Sessions when errors started to appear ?


did you try another clients (ftp connection in FarManager or totalcommander, for example) ?
This happens to another employee too, in a different internet provider, he is using filezilla too.

No, I am not banned in fail2ban, as I can reconnect ant keep doing the delete operations.

I have not tried another client, I will tho, and will post findings.
 
Back
Top