PureFTPd Problem, it just sucks.
Hi There,Can someone help me out with this, using PureFTPd 1.0.12 I am unable to DOWNLOAD in binary mode. I can upload in anymode though. Previously I was not able to download ANYTHING, even ASCII mode files. I did a graceful reboot last night and now ASCII downloads work. I know this for sure because I set CuteFTP Pro 3.0 to download JPG as ASCII and they download content, in BINARY mode they download 0kb files and give the following error.
*** CuteFTP Pro 3.0 - build Nov 4 2002 ***
STATUS:> Getting listing ""...
STATUS:> Resolving host name ftp.myaddress.com...
STATUS:> Host name ftp.myaddresss.com resolved: ip = server.ip.address.here.
STATUS:> Connecting to ftp server ftp.myaddress.com:21 (ip = server.ip.address.here)...
STATUS:> Socket connected. Waiting for welcome message...
220-=(<*>)=-.:. (( Welcome to PureFTPd 1.0.12 )) .:.-=(<*>)=-
220-You are user number 1 of 50 allowed.
220-Local time is now 14:47 and the load is 0.02. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
STATUS:> Connected. Authenticating...
COMMAND:> USER mysol
331 User mysol OK. Password required
COMMAND:> PASS *****
230-User mysol has group access to: mysol
230 OK. Current restricted directory is /
STATUS:> Login successful.
COMMAND:> PWD
257 "/" is your current location
STATUS:> Home directory: /
COMMAND:> FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
ESTA
ESTP
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
PASV
EPSV
SPSV
211 End.
STATUS:> This site supports features.
STATUS:> This site supports SIZE.
STATUS:> This site can resume broken downloads.
COMMAND:> REST 0
350 Restarting at 0
COMMAND:> PORT 192,168,0,2,11,88
200 PORT command successful
COMMAND:> LIST
150 Connecting to port 2904
226-Options: -l
226 7 matches total
STATUS:> Transfer complete.
STATUS:> Getting listing "/public_html"...
COMMAND:> CWD /public_html
250 OK. Current directory is /public_html
STATUS:> PWD skipped. Current dir: "/public_html".
COMMAND:> PORT 192,168,0,2,11,89
200 PORT command successful
COMMAND:> LIST
150 Connecting to port 2905
226-Options: -l
226 19 matches total
STATUS:> Transfer complete.
NOTE:> New transfer created for \"myhosting.jpg\" <39>
STATUS:> Transferring file "/public_html/myhosting.jpg"...
COMMAND:> TYPE I
200 TYPE is now 8-bit binary
COMMAND:> PORT 192,168,0,2,11,90
200 PORT command successful
COMMAND:> RETR myhosting.jpg
150-Connecting to port 2906
150 9.8 kbytes to download
STATUS:> Data connection closed, bytes transferred: 0, expected: 10084.
450 Error during write to data connection: Invalid argument
STATUS:> Getting listing ""...
STATUS:> Resolving host name ftp.myaddress.com...
STATUS:> Host name ftp.myaddresss.com resolved: ip = server.ip.address.here.
STATUS:> Connecting to ftp server ftp.myaddress.com:21 (ip = server.ip.address.here)...
STATUS:> Socket connected. Waiting for welcome message...
220-=(<*>)=-.:. (( Welcome to PureFTPd 1.0.12 )) .:.-=(<*>)=-
220-You are user number 1 of 50 allowed.
220-Local time is now 14:47 and the load is 0.02. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
STATUS:> Connected. Authenticating...
COMMAND:> USER mysol
331 User mysol OK. Password required
COMMAND:> PASS *****
230-User mysol has group access to: mysol
230 OK. Current restricted directory is /
STATUS:> Login successful.
COMMAND:> PWD
257 "/" is your current location
STATUS:> Home directory: /
COMMAND:> FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
ESTA
ESTP
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
PASV
EPSV
SPSV
211 End.
STATUS:> This site supports features.
STATUS:> This site supports SIZE.
STATUS:> This site can resume broken downloads.
COMMAND:> REST 0
350 Restarting at 0
COMMAND:> PORT 192,168,0,2,11,88
200 PORT command successful
COMMAND:> LIST
150 Connecting to port 2904
226-Options: -l
226 7 matches total
STATUS:> Transfer complete.
STATUS:> Getting listing "/public_html"...
COMMAND:> CWD /public_html
250 OK. Current directory is /public_html
STATUS:> PWD skipped. Current dir: "/public_html".
COMMAND:> PORT 192,168,0,2,11,89
200 PORT command successful
COMMAND:> LIST
150 Connecting to port 2905
226-Options: -l
226 19 matches total
STATUS:> Transfer complete.
NOTE:> New transfer created for \"myhosting.jpg\" <39>
STATUS:> Transferring file "/public_html/myhosting.jpg"...
COMMAND:> TYPE I
200 TYPE is now 8-bit binary
COMMAND:> PORT 192,168,0,2,11,90
200 PORT command successful
COMMAND:> RETR myhosting.jpg
150-Connecting to port 2906
150 9.8 kbytes to download
STATUS:> Data connection closed, bytes transferred: 0, expected: 10084.
450 Error during write to data connection: Invalid argument

I had this problem and went to ProFTPd, but, that thing is slow even with reverse dns off and it does take a lot of memory to use. So, I want PureFTPd. I also have tried multiple FTP clients such as CuteFTP Pro 3.0, WS_FTP, DOS FTP, PHP FTP Functions. I have also tried behind multiple networks and firewalls. I have even tried without using a firewall (speaking of which, FLIP, firewall back on). I have also tried via SFTP hoping something else, but, same issue. Any help is appreciated.
I also tried the fix provided in this post, but, I don't even have that file/directory line in my ProFTPd conf file and don't see how it has to do with PureFTPd.
http://forums.cpanel.net/showthread....valid+argument
Thanks,
kmsd