Sometimes when I try to login in proftp it closes connection as seen below: > ftp XYZ.AB.CD.3 Connected to XYZ.AB.CD.3. 220 ProFTPD 1.2.10 Server (OrganizationName FTP Server) [XYZ.AB.CD.3] User (XYZ.AB.CD.3:(none)): user Connection closed by remote host. It occurs once in one or two days. In /var/run/proftpd/ have some files, I've delete them and ... Yes! I can login again! ;) # ls -l /var/run/proftpd/ total 8 -rw-r--r-- 1 root root 2232 Dec 20 09:38 proftpd.delay -rw-r--r-- 1 root root 1492 Dec 20 12:04 proftpd.scoreboard srwxrwxrwx 1 root root 0 Dec 20 12:04 proftpd.sock Version of proftpd is: # proftpd --version - ProFTPD Version 1.2.10 This problem is only in this version of ProFTPD. I have no problems with the previous version (1.2.9 I think...). And after emerge -uvd wolrd it starts. I updated one gentoo box two weeks ago, and the problem occurs there. A discover that when delete these files in /var/run/proftpd/ everything is fine for about one day. Last week I update (emerge -uvd wolrd) another gentoo box and problem occurs there too :) Reproducible: Sometimes Steps to Reproduce: 1.ftp some.host.tld 2.And if you recieve "Connection closed by remote host." (or similar) after typing username then you've already reproduced the problem :) 3. Actual Results: What happened after you performed the steps above? "Connection closed by remote host." happened... Expected Results: I think it will be nice if I can type password too, and if it is possible to log in proftpd server. :) # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-hardened-r9 i686) ================================================================= System uname: 2.6.7-hardened-r9 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks nodoc sandbox sfperms strict" GENTOO_MIRRORS="http://217.79.32.3:8888" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm arts avi berkdb bitmap-fonts crypt cups encode foomaticdb fortran gdbm gif gnome gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses oggvorbis opengl oss pam png python quicktime readline sdl svga tcpd x86 xml2 xmms xv zlib" --------- # emerge -pv proftpd These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-ftp/proftpd-1.2.10-r1 -debug -hardened -ipv6 -ldap +mysql* +pam -postgres (-selinux) -shaper -softquota -ssl +tcpd* 0 kB ========= # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r3 i686) ================================================================= System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="bitmap-fonts f77 fbcon fortran gdbm gif jpeg libg++ libwww mad maildir ncurses pam png python readline x86 zlib" --------- emerge -pv proftpd These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-ftp/proftpd-1.2.10-r1 -debug -hardened -ipv6 -ldap -mysql +pam -postgres (-selinux) -shaper -softquota -ssl -tcpd 0 kB
I'm seeing this same behaviour. Vitals: emerge info Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.28-gentoo-r5 i686) ================================================================= System uname: 2.4.28-gentoo-r5 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 mmx ncurses perl python sse"
The only file that I need to delete to make it work again is /var/run/proftpd/proftpd.delay - and restart the server. The file is recreated after restart, and the server works again for a little while - less than 12 hours, since I fixed it last night and it was broken again this morning. I have no idea what the file is for. Its contents are binary.
Workaround: a little digging found that the file I was deleting was a part of the delay engine. Adding "DelayEngine off" to my conf file has made the problem go away.
Eric, I am facing this same problem this very moment. Where exactly did you add DelayEngine off? wherever I put it, mod_delay still tries to look for the Delay Table. Pointing it at /dev/null still has it looking for /var/run/proftpd/whatever , which it definatey should not be doing since DelayEngine is off! Using 1.2.10-r1.
This is likely related to this bug: http://bugs.proftpd.org/show_bug.cgi?id=2540 I had to edit the 1.2.10-r2 ebuild to not attempt to build mod_delay to get around the problem. Disabling mod_delay according to the instructions will not work.
Can you please look at my notes at http://bugs.gentoo.org/show_bug.cgi?id=75072#c11 and try the ebuild i provided to see if it works ok.
Well, all seems ok now with 1.2.10-r3 with no mod_delay in portage, i'm closing this.