Hi, I am using ISPConfig Version: 3.0.5.4p1 in a testing Debian Wheezy environment and I hope to use it in production but I have issues on setting ftp quota. If I set to 2000 MB the Harddisk-Quota field in FTP user tab I can not upload files and the server return "Response: 552 Quota exceeded: [vlc-log.txt] won't be saved". Instead the directory size is 560MB. If I set to -1 the Harddisk-Quota and I restart the server or I wait some minutes (I tried to resync FTP users, restart pure-ftpd-mysql and reload apache but does not work), I can send the file to the server. These are the logs with the Harddisk-Quota field set to 2000MB. syslog: Code: May 24 13:11:26 virtualgigi pure-ftpd: ([email protected]) [INFO] New connection from 192.168.122.1 May 24 13:11:27 virtualgigi pure-ftpd: ([email protected]) [INFO] gigidemo is now logged in Nothing in pure-ftpd/transfer.log. FileZilla Client log: Code: Status: Connecting to 192.168.122.10:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Response: 220-You are user number 1 of 50 allowed. Response: 220-Local time is now 13:13. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 60 seconds of inactivity. Command: USER gigidemo Response: 331 User gigidemo OK. Password required Command: PASS ******** Response: 230-OK. Current restricted directory is / Response: 230 2168405 Kbytes used (105%) - authorized: 2048000 Kb Command: SYST Response: 215 UNIX Type: L8 Command: FEAT Response: 211-Extensions supported: Response: EPRT Response: IDLE Response: MDTM Response: SIZE Response: MFMT Response: REST STREAM Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*; Response: MLSD Response: AUTH TLS Response: PBSZ Response: PROT Response: UTF8 Response: ESTA Response: PASV Response: EPSV Response: SPSV Response: ESTP Response: 211 End. Command: OPTS UTF8 ON Response: 200 OK, UTF-8 enabled Status: Connected Status: Retrieving directory listing... Command: CWD /corridoio Response: 250 OK. Current directory is /corridoio Command: PWD Response: 257 "/corridoio" is your current location Command: TYPE I Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227 Entering Passive Mode (192,168,122,10,61,62) Command: MLSD Response: 150 Accepted data connection Response: 226-Options: -a -l Response: 226 Output truncated to 10000 matches Status: Directory listing successful Status: Connecting to 192.168.122.10:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Response: 220-You are user number 2 of 50 allowed. Response: 220-Local time is now 13:13. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 60 seconds of inactivity. Command: USER gigidemo Response: 331 User gigidemo OK. Password required Command: PASS ******** Response: 230-OK. Current restricted directory is / Response: 230 2168405 Kbytes used (105%) - authorized: 2048000 Kb Command: OPTS UTF8 ON Response: 200 OK, UTF-8 enabled Status: Connected Status: Starting upload of /home/gigi/vlc-log.txt Command: CWD /corridoio Response: 250 OK. Current directory is /corridoio Command: TYPE A Response: 200 TYPE is now ASCII Command: PASV Response: 227 Entering Passive Mode (192,168,122,10,127,235) Command: STOR vlc-log.txt Response: 552 Quota exceeded: [vlc-log.txt] won't be saved Error: Critical file transfer error htf_report.txt: Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** IP-address(es) (as per ifconfig): ***.***.***.*** [WARN] ip addresses from hostname differ from ifconfig output. Please check your ip settings. [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.0.5.4p1 ##### VERSION CHECK ##### [INFO] php (cli) version is 5.4.4-14+deb7u9 [INFO] php-cgi (used for cgi php in default vhost!) is version 5.4.4-14+deb7u9 ##### PORT CHECK ##### ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 2331) [INFO] I found the following mail server(s): Postfix (PID 3219) [INFO] I found the following pop3 server(s): Dovecot (PID 3078) [INFO] I found the following imap server(s): Dovecot (PID 3078) [INFO] I found the following ftp server(s): PureFTP (PID 3249) ##### LISTENING PORTS ##### (only () Local (Address) [localhost]:3306 (2898/mysqld) [anywhere]:587 (3219/master) [localhost]:11211 (2499/memcached) [anywhere]:110 (3078/dovecot) [anywhere]:143 (3078/dovecot) [anywhere]:111 (1678/rpcbind) [anywhere]:465 (3219/master) [anywhere]:44500 (1709/rpc.statd) [anywhere]:21 (3249/pure-ftpd) [anywhere]:22 (2685/sshd) [anywhere]:25 (3219/master) [anywhere]:993 (3078/dovecot) [anywhere]:995 (3078/dovecot) [localhost]:10025 (3219/master) *:*:*:*::*:587 (3219/master) [localhost]10 (3078/dovecot) [localhost]43 (3078/dovecot) [localhost]11 (1678/rpcbind) *:*:*:*::*:8080 (2331/apache2) *:*:*:*::*:80 (2331/apache2) *:*:*:*::*:465 (3219/master) *:*:*:*::*:8081 (2331/apache2) *:*:*:*::*:21 (3249/pure-ftpd) *:*:*:*::*:22 (2685/sshd) *:*:*:*::*:43736 (1709/rpc.statd) *:*:*:*::*:25 (3219/master) *:*:*:*::*:443 (2331/apache2) *:*:*:*::*:993 (3078/dovecot) *:*:*:*::*:995 (3078/dovecot) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993 fail2ban-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 fail2ban-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-dovecot-pop3imap (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-pureftpd (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-sasl (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-ssh (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Thank you for your help
Normally you dont need to set any separate quota for the ftp users as the quota limit is set already in the website settings.
Thank you Till, my web application should manage files uploaded from different FTP users. I found the problem right now, if the web-application "rm" the files, pure-ftpd doesn't update the folder size, I need to launch pure-quotacheck to resync the folder size with pure-ftpd quota status.