Deleting large number of files over FTPS disconnecting
Moderators: Hacker, petermad, Stefan2, white
Deleting large number of files over FTPS disconnecting
When connected to ftps://server, deleting large number of files (thousands) causes total commander to disconnect very often. And also it freezes during transferring files to a server or from a server for a few seconds and then continues.
It does that only with ftps. It works correctly using ftp only. I think it's a bug in TC. Is it possible to fix it? I am using the latest version 10.52 64bit.
For testing just take a folder with 5000 files and copy it to ftps somewhere and then delete.
See the picture:
Image: https://ibb.co/QKTH0mS
It does that only with ftps. It works correctly using ftp only. I think it's a bug in TC. Is it possible to fix it? I am using the latest version 10.52 64bit.
For testing just take a folder with 5000 files and copy it to ftps somewhere and then delete.
See the picture:
Image: https://ibb.co/QKTH0mS
- ghisler(Author)
- Site Admin
- Posts: 50486
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Deleting large number of files over FTPS disconnecting
Do you see anything in the log file? You can create it via Configuration - Options - FTP.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Deleting large number of files over FTPS disconnecting
After deleting bunch of files it ended with error 10054. I can continue deleting files after reconnecting and then it fails again.
RMD Client
250-170622 Kbytes used (17%) - authorized: 976562 Kb
250 The directory was successfully removed
PWD
OFFLINE2, error=10054
RMD Client
250-170622 Kbytes used (17%) - authorized: 976562 Kb
250 The directory was successfully removed
PWD
OFFLINE2, error=10054
- ghisler(Author)
- Site Admin
- Posts: 50486
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Deleting large number of files over FTPS disconnecting
TCP/IP error 10054 is "connection reset by peer" - it usually happens when the internet connection is unstable and you have temporary connection losses.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Deleting large number of files over FTPS disconnecting
Hello,
Thank you for the reply. I tested it and found out that the problem causes windows firewall:
https://www.febooti.com/products/automation-workshop/online-help/disable-stateful-ftp-filtering/
https://winscp.net/eng/docs/message_disconnected
It keeps disconnecting using another ftps software too. It does that on my local network too where I have an FTP server. It's not a problem with internet connection.
So, it needs a setting like this and then it works perfectly:
Thank you for the reply. I tested it and found out that the problem causes windows firewall:
https://www.febooti.com/products/automation-workshop/online-help/disable-stateful-ftp-filtering/
https://winscp.net/eng/docs/message_disconnected
It keeps disconnecting using another ftps software too. It does that on my local network too where I have an FTP server. It's not a problem with internet connection.
So, it needs a setting like this and then it works perfectly:
Code: Select all
netsh advfirewall set global StatefulFTP disable
netsh advfirewall show global StatefulFTP
- ghisler(Author)
- Site Admin
- Posts: 50486
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Deleting large number of files over FTPS disconnecting
Nice find, that actually makes some sense because with FTPS the FTP command connection is encrypted, so the stateful ftp inspector cannot see what's happening...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Deleting large number of files over FTPS disconnecting
But the question is why it does that only sometimes during the deletion. I was deleting like 7000 files and it disconnected 5 times. And I did not test it with a different firewall, maybe could be better.
- ghisler(Author)
- Site Admin
- Posts: 50486
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Deleting large number of files over FTPS disconnecting
Maybe it depends on the port number? FTP uses random port numbers for the data transfers.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com