Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in .NET FTP by (240 points)
Hello there!

I'm encountering some strange problem using edtFTPnet free version. I'm connecting from Windows-based .NET client to Linux FTP, periodically downloading some files, and, when they become obsolete, I need to delete them. The code
private FTPClient client;
client.Delete(path_to_file);

do well for me, files become deleted, BUT the amount of free space, available on /dev/sda1 doesn't increase... As new files on Linux continue to appear, soon or late it ends and "Out of space" error raises. All of space, occupied by deleted files, become available when FTP connection is closed. Here is some syslog from target Linux:
Jan 22 10:37:23 KAES_BUKM2 supervisor: Correct time: modes = 0x00000003  phase = -6  freq = 9175040  tick = 10000
Jan 22 10:37:52 KAES_BUKM2 supervisor: /dev/sda1: FreeBlocks: 35614  TotalBlocks: 242942
Jan 22 10:37:52 KAES_BUKM2 supervisor: RAM: MemFree: 4728 kB  MemTotal: 248896 kB
Jan 22 10:38:23 KAES_BUKM2 supervisor: Correct time: modes = 0x00000001  phase = -50  freq = 9175040  tick = 10000
Jan 22 10:38:53 KAES_BUKM2 supervisor: /dev/sda1: FreeBlocks: 35599  TotalBlocks: 242942
Jan 22 10:38:53 KAES_BUKM2 supervisor: RAM: MemFree: 4728 kB  MemTotal: 248896 kB

Jan 22 10:39:15 KAES_BUKM2 proftpd[19381]: KAES_BUKM2 (192.168.19.10[192.168.19.10]) - FTP session closed. 

Jan 22 10:39:23 KAES_BUKM2 supervisor: Correct time: modes = 0x00000001  phase = 59  freq = 9175040  tick = 10000
Jan 22 10:39:54 KAES_BUKM2 supervisor: /dev/sda1: FreeBlocks: 187910  TotalBlocks: 242942
Jan 22 10:39:54 KAES_BUKM2 supervisor: RAM: MemFree: 160224 kB  MemTotal: 248896 kB
Jan 22 10:40:23 KAES_BUKM2 supervisor: Correct time: modes = 0x00000001  phase = -9  freq = 9175040  tick = 10000
Jan 22 10:40:55 KAES_BUKM2 supervisor: /dev/sda1: FreeBlocks: 187906  TotalBlocks: 242942
Jan 22 10:40:55 KAES_BUKM2 supervisor: RAM: MemFree: 160240 kB  MemTotal: 248896 kB 


Is it normal? Maybe I need to reconnect FTP after each file deletion? Or am I paranoid?)))

5 Answers

0 votes
by (162k points)
There could be a bug in the Linux server. Files generally won't get deleted until there are no open file descriptors for them. It might be that the Linux server does not close all fd's to these files until you disconnect.
0 votes
by (240 points)
The most strange thing in this situation is that this "hanging" of free space & RAM is inconstant. I mean that on other computer (other Windows and lust slightly different Linux) it doesn't seems to appear, free space grows exactly after deleting file with your component... What can it be? Linux settings? Access rights? Some FTP-server settings?

Thanks in advance for your answers!
0 votes
by (162k points)
Does it happen using Filezilla as well?
0 votes
by (240 points)
Does it happen using Filezilla as well?

I'll try to check it out...
0 votes
by (240 points)
Hello again!
You know, Filezilla working just fine... All files deleting free space immediately. I don't know what to think, maybe it's some ftpd settings... And since we have a lot of clients, it's not possible to gain statistics & setting from each of them(.

Well, anyway, thanks for your help, we'll try to solve that problem some other way.

Categories

...