Hello all, I have pureftpd working without problems. But there is something that is not as good as I want... When uploading multiple files (2 or more), between them, when file 1 finish, there is a delay of almost 1 second before begin with next file. When I have to upload a site with lots of smalls files (eg Joomla), lot of time is wasted waiting end/begin of files... This happens in active and passive mode, DontResolve is set to yes, and I don't know where to begin to fix this... upload of one zip file and uncompresse server side is the best workaround right now, but will be great if I can fix this... Thanks in advance...
Have you tried to enable debugging in pure-ftpd to see why it waits asecond on your server? I have not experienced any delays on my servers yet.
Code: Sep 5 17:49:03 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_languages.ini uploaded (3824 bytes, 1.37KB/sec) Sep 5 17:49:03 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_languages.ini] Sep 5 17:49:03 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:03 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_languages.sys.ini] Sep 5 17:49:06 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_languages.sys.ini uploaded (724 bytes, 0.26KB/sec) Sep 5 17:49:06 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_languages.sys.ini] Sep 5 17:49:06 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:06 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_login.ini] Sep 5 17:49:09 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_login.ini uploaded (2677 bytes, 0.96KB/sec) Sep 5 17:49:09 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_login.ini] Sep 5 17:49:09 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:09 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_login.sys.ini] Sep 5 17:49:12 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_login.sys.ini uploaded (885 bytes, 0.32KB/sec) Sep 5 17:49:12 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_login.sys.ini] Sep 5 17:49:12 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:12 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_menu.ini] Sep 5 17:49:15 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_menu.ini uploaded (1921 bytes, 0.69KB/sec) Sep 5 17:49:15 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_menu.ini] Sep 5 17:49:15 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:15 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_menu.sys.ini] Sep 5 17:49:18 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_menu.sys.ini uploaded (651 bytes, 0.23KB/sec) Sep 5 17:49:18 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_menu.sys.ini] Sep 5 17:49:18 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:18 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_random_image.ini] Sep 5 17:49:20 site1 pure-ftpd: ([email protected]) [NOTICE] /tecdata/www/clients/client3/web3//web/language/es-ES/es-ES.mod_random_image.ini uploaded (1539 bytes, 0.56KB/sec) Sep 5 17:49:21 site1 pure-ftpd: ([email protected]) [DEBUG] Command [size] [es-ES.mod_random_image.ini] Sep 5 17:49:21 site1 pure-ftpd: ([email protected]) [DEBUG] Command [pasv] [] Sep 5 17:49:21 site1 pure-ftpd: ([email protected]) [DEBUG] Command [stor] [es-ES.mod_random_image.sys.ini] It looks like all is ok... but the delay is there... lots of small files takes hours to be uploaded.... Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -d -E -H -Y 1 -p 22000:25000 -c 100 -8 UTF-8 -I 10 -O stats:/var/log/pure-ftpd/transfer.stats.log -L 5000:500 -u 1000 -T 64 -b -A -k 95 -4 -D -B I have no problem if I upload a large file, transference speed is ok, the problem is when the upload is finished... it takes half/entire second to continue with next file... with 5000 files, well... it is a neverending upload...
I can't see any difference between Active or Passive mode... in active mode, after 1000 files (+- 500 ), it hangs... with Passive mode I have no problem at all. I will install pure-ftpd without config in a VM and test without any parameter... I have to wait 5 hours to upload a joomla... if I upload a zip file, a few minutes are enought (64k max upload bw)... Thanks for all help you can give me...
Ok, fixed... UserBandwidth = 64 was the problem... My upload speed of my home connection is 50KB max... so, a limit of 64 should not be a problem at all but... in some way, is was affecting speed between files... is difficult to guess what could be happening, maybe a "check" delay of user bandwidth, I don't know... but well, I deleted that value and all is working as it should. Thanks for your help guys.