Page 1 of 1

LFTP error: "An invalid argument was supplied."

Posted: Fri Apr 08, 2005 12:43 pm
by dan.hetherington
Hello all.

I'm having difficulty downloading certain individual files from Cerberus using LFTP. Most files are fine, but certain ones fail with an "An invalid argument was supplied" error in the Cerberus logs. The files that fail can be downloaded fine with FTP (the default *nix client). Here is an excerpt from the failing log:

Fri Apr 08 09:56:53 2005 1 Incoming connection request on interface 192.168.0.1
Fri Apr 08 09:56:53 2005 1 Connection request accepted from 192.168.0.222
Fri Apr 08 09:56:53 2005 1 FEAT
Fri Apr 08 09:56:53 2005 1 AUTH TLS
Fri Apr 08 09:56:53 2005 1 USER backup
Fri Apr 08 09:56:53 2005 1 PASS ***********
Fri Apr 08 09:56:53 2005 1 PWD
Fri Apr 08 09:56:53 2005 1 PASV
Fri Apr 08 09:56:53 2005 1 Connection with data socket accepted
Fri Apr 08 09:56:53 2005 1 LIST
Fri Apr 08 09:56:53 2005 1 The data connection was closed by the remote socket
Fri Apr 08 09:56:56 2005 1 CWD /My Documents
Fri Apr 08 09:56:57 2005 1 PASV
Fri Apr 08 09:56:57 2005 1 Connection with data socket accepted
Fri Apr 08 09:56:57 2005 1 LIST
Fri Apr 08 09:56:58 2005 1 The data connection was closed by the remote socket
Fri Apr 08 09:57:06 2005 1 TYPE I
Fri Apr 08 09:57:06 2005 1 SIZE POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:57:06 2005 1 MDTM POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:57:06 2005 1 PASV
Fri Apr 08 09:57:06 2005 1 Connection with data socket accepted
Fri Apr 08 09:57:06 2005 1 RETR POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:57:06 2005 2 Incoming connection request on interface 192.168.0.1
Fri Apr 08 09:57:06 2005 2 Connection request accepted from 192.168.0.222
Fri Apr 08 09:57:06 2005 2 FEAT
Fri Apr 08 09:57:06 2005 2 AUTH TLS
Fri Apr 08 09:57:06 2005 2 USER backup
Fri Apr 08 09:57:06 2005 2 PASS ***********
Fri Apr 08 09:57:06 2005 2 CWD /My Documents
Fri Apr 08 09:57:06 2005 2 TYPE I
Fri Apr 08 09:57:06 2005 2 MDTM POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:57:06 2005 1 An invalid argument was supplied.
Fri Apr 08 09:57:06 2005 1 The connection was closed by the remote socket.
Fri Apr 08 09:57:06 2005 2 PASV
Fri Apr 08 09:57:06 2005 2 Connection with data socket accepted
Fri Apr 08 09:57:06 2005 2 REST 147456
Fri Apr 08 09:57:06 2005 1 Connection terminated.
Fri Apr 08 09:57:06 2005 2 RETR POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:57:06 2005 2 An invalid argument was supplied.

(LFTP automatically retries failed connections.)

From the LFTP side this exchange looks like:

---- Connecting to server (192.168.0.1) port 21
<--- 220-Cerberus FTP Server Personal Edition
<--- 220-UNREGISTERED
<--- 220 Cerberus FTP on Servidor
---> FEAT
<--- 500 Not logged in
---> AUTH TLS
<--- 500 Not logged in
---> USER backup
<--- 331 User backup, password please
---> PASS XXXX
<--- 230 Password Ok, User logged in
---> PWD
<--- 257 "/" is the current directory
---> PASV
<--- 227 Entering Passive Mode (192,168,0,1,4,7)
---- Connecting data socket to (192.168.0.1) port 1031
---> LIST
<--- 150 Opening data connection
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> CWD /My Documents
<--- 250 Change directory ok
---> PASV
<--- 227 Entering Passive Mode (192,168,0,1,4,8)
---- Connecting data socket to (192.168.0.1) port 1032
---> LIST
<--- 150 Opening data connection
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> TYPE I
<--- 200 Type Binary
---> SIZE POR SI LAS MOSCAS 2.doc
<--- 213 13000192
---> MDTM POR SI LAS MOSCAS 2.doc
<--- 550 MDTM failed: Invalid path
---> PASV
<--- 227 Entering Passive Mode (192,168,0,1,4,9)
---- Connecting data socket to (192.168.0.1) port 1033
---> RETR POR SI LAS MOSCAS 2.doc
<--- 150 Opening data connection
**** data-socket: Connection reset by peer
---- Closing data socket
---- Closing control socket

Whereas with FTP there is no problem:

Fri Apr 08 09:55:22 2005 0 Incoming connection request on interface 192.168.0.1
Fri Apr 08 09:55:22 2005 0 Connection request accepted from 192.168.0.222
Fri Apr 08 09:55:25 2005 0 USER backup
Fri Apr 08 09:55:32 2005 0 PASS ***********
Fri Apr 08 09:55:32 2005 0 SYST
Fri Apr 08 09:55:35 2005 0 PORT 192,168,0,222,128,108
Fri Apr 08 09:55:35 2005 0 LIST
Fri Apr 08 09:55:35 2005 0 Data connection established
Fri Apr 08 09:55:35 2005 0 The data connection was closed by the remote socket
Fri Apr 08 09:55:42 2005 0 CWD My Documents
Fri Apr 08 09:55:44 2005 0 PORT 192,168,0,222,128,109
Fri Apr 08 09:55:44 2005 0 LIST
Fri Apr 08 09:55:44 2005 0 Data connection established
Fri Apr 08 09:55:44 2005 0 The data connection was closed by the remote socket
Fri Apr 08 09:56:05 2005 0 TYPE I
Fri Apr 08 09:56:05 2005 0 PORT 192,168,0,222,128,110
Fri Apr 08 09:56:05 2005 0 RETR POR SI LAS MOSCAS 2.doc
Fri Apr 08 09:56:05 2005 0 Data connection established
Fri Apr 08 09:56:08 2005 0 File transfer complete
Fri Apr 08 09:56:08 2005 0 The data connection was closed by the remote socket
Fri Apr 08 09:56:11 2005 0 QUIT
Fri Apr 08 09:56:11 2005 0 The connection was closed by the remote socket.
Fri Apr 08 09:56:11 2005 0 Connection terminated.

The clients are running on Slackware 10.1, kernel 2.4.29, LFTP version 3.0.13; server on XP.

Any ideas gratefully welcomed.

TIA,

Dan