I've inherited support of a system running proftpd and the server
fails after a valid ftp logon whenever a data connection needs to be
created for either a list or a get/put. The info below is for 1.2.9,
but I've also downloaded and compiled 1.2.10 and get the same problem
when run on this server.

Here is the debug info from the server log for when it dies.

server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'LIST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'LIST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'LIST'
to mod_ls
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS: ID switching disabled
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS: ID switching disabled
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD_ERR command
'LIST' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD_ERR command
'LIST' to mod_ls
(A longer snip from the log is included at the end.)

And, here is what the client OS X 10.4 tells me"

ftp> ls
425 Unable to build data connection: Invalid argument

The server is behind a firewall. The same failure occurs whether or
not passive ftp is used. I've also tried a number of gui ftp clients
and they all hang at the same point. BTW, I've installed proftpd on
another server and it runs like a champ. Just can't figure out
what's wrong with this one.

Any help or pointers to answers would be greatly appreciated. Hal

-----------------------------------------------------------------------
System and configuration information follow:
-----------------------------------------------------------------------
Linux 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/
Linux

[chuck]$ /usr/local/sbin/proftpd -vv
- Version: 1.2.9 (stable)
- Scoreboard Version: 01040002
- Build Stamp: Fri May 13 12:12:33 PDT 2005

[chuck]$ /usr/local/sbin/proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_auth_pam.c
mod_cap.c

Config file. -- a simple one that still fails in same way as the real
one which has multiple servers. Plain vanilla, I think.

#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName "Server1"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
MaxInstances 30

DisplayLogin welcome.msg
DisplayFirstChdir .message
#ListOptions "-l"

# Port 21 is the standard FTP port.
Port 21


# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

-----------------------------

server1 (64.81.64.38[64.81.64.38]) - USER
server1 (64.81.64.38[64.81.64.38]) - USER grayowlimages: Login
successful.
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS at mod_auth.c:1174
server1 (64.81.64.38[64.81.64.38]) - opening TransferLog '/var/log/
proftpd/xferlog.legacy'
server1 (64.81.64.38[64.81.64.38]) - RELINQUISH PRIVS at mod_auth.c:1203
server1 (64.81.64.38[64.81.64.38]) - USER PRIVS 523 at mod_auth.c:701
server1 (64.81.64.38[64.81.64.38]) - RELINQUISH PRIVS at mod_auth.c:705
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"setpwent" to module mod_auth_file
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"setpwent" to module mod_auth_unix
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"setgrent" to module mod_auth_file
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"setgrent" to module mod_auth_unix
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"getpwent" to module mod_auth_file
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"getpwent" to module mod_auth_unix
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"getgrent" to module mod_auth_file
server1 (64.81.64.38[64.81.64.38]) - dispatching auth request
"getgrent" to module mod_auth_unix
server1 (64.81.64.38[64.81.64.38]) - Preparing to chroot() the
environment, path = '/buzzlabs'
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS at mod_auth.c:62
server1 (64.81.64.38[64.81.64.38]) - FS: using system chroot()
server1 (64.81.64.38[64.81.64.38]) - RELINQUISH PRIVS at mod_auth.c:69
server1 (64.81.64.38[64.81.64.38]) - Environment successfully chroot()
ed.
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS at mod_auth.c:1246
server1 (64.81.64.38[64.81.64.38]) - SETUP PRIVS at mod_auth.c:1253

server1 (64.81.64.38[64.81.64.38]) - FS: using system chdir()
server1 (64.81.64.38[64.81.64.38]) - in dir_check_full(): path = '/',
fullpath = '/buzzl/'.
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()
server1 (64.81.64.38[64.81.64.38]) - FS: using system open()
server1 (64.81.64.38[64.81.64.38]) - dispatching POST_CMD command
'PASS (hidden)' to mod_cap
server1 (64.81.64.38[64.81.64.38]) - mod_cap/1.0: capabilities '=
cap_chown,cap_net_bind_service+ep'
server1 (64.81.64.38[64.81.64.38]) - dispatching POST_CMD command
'PASS (hidden)' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching POST_CMD command
'PASS (hidden)' to mod_ls
server1 (64.81.64.38[64.81.64.38]) - dispatching POST_CMD command
'PASS (hidden)' to mod_auth
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS: ID switching disabled
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD command
'PASS (hidden)' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'SYST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'SYST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'SYST'
to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD command
'SYST' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'FEAT' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'FEAT' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'FEAT'
to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD command
'FEAT' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'PWD' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'PWD' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'PWD' to
mod_core
server1 - scrubbing scoreboard
server1 - ROOT PRIVS at mod_core.c:194
server1 - RELINQUISH PRIVS at mod_core.c:201
server1 - ROOT PRIVS at mod_core.c:223
server1 - RELINQUISH PRIVS at mod_core.c:251
server1 - FS: using system lstat()
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'PWD' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'PWD' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'PWD' to
mod_core
server1 (64.81.64.38[64.81.64.38]) - in dir_check_full(): path = '/',
fullpath = '/home/grayowlimages/'.
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()
server1 (64.81.64.38[64.81.64.38]) - FS: using system stat()


server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'LIST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching PRE_CMD command
'LIST' to mod_core
server1 (64.81.64.38[64.81.64.38]) - dispatching CMD command 'LIST'
to mod_ls
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS: ID switching disabled
server1 (64.81.64.38[64.81.64.38]) - ROOT PRIVS: ID switching disabled
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD_ERR command
'LIST' to mod_log
server1 (64.81.64.38[64.81.64.38]) - dispatching LOG_CMD_ERR command
'LIST' to mod_ls



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html