vsftpd quits when there's no working internet connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vsftpd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vsftpd
on our server i noticed, that randomly, vsftpd wasn't running. i thought it is not being started correctly on boot.
but then i noticed, that after restarting it, and it was working well, then when our internet connection dropped. and during this and after, vsftp daemon wasn't running anymore (locally).
then i tested it and as it turned out, when there is no active internet connection, the vsftp daemon quits pretty soon after it's being started.
i configured it to handle passive mode transfers too (even if i prefer active mode), and i'm reading my wan side ip from a dyndns account. i suspect this may have something to do with this unexpected quitting of the daemon. if it can not reach the dyndns domain, it somehow quits or crashes. however, it shouldn't have to. this ftp server is mainly for internal use, it should keep working locall even if there's no active internet connection.
i have reproduced this as follows:
1, /etc/init.d/vsftpd start
2, ps -ef | grep ftp: vsftpd was running
3, unplug the modem cable from the router (btw, the local network is on a switch, and the switch is on the router)
4, ps -ef | grep ftp: vsftpd wasn't running anymore
5, /etc/init.d/vsftpd start
6, ps -ef | grep ftp: vsftpd was running again
7, wait a few seconds
8, ps -ef | grep ftp: vsftpd was not running
9, replug the modem cable to the router
10, /etc/init.d/vsftpd start
11, ps -ef | grep ftp: vsftpd was running again
there is no log message in /var/log/syslog, /var/log/
i am on ubuntu 7.04, 32 bit generic kernel. vsftpd is installed from the default repository using synaptic.
/etc/vsftpd.conf:
listen=YES
#listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002
anon_upload_
#anon_mkdir_
dirmessage_
xferlog_enable=YES
connect_
#chown_uploads=YES
#chown_
#xferlog_
#xferlog_
idle_session_
data_connection
#nopriv_
#async_
#ascii_
ascii_download_
ftpd_banner=Welcome to .... FTP service.
#deny_email_
#banned_
chroot_
chroot_
chroot_
#ls_recurse_
secure_
pam_service_
rsa_cert_
rsa_private_
userlist_enable=YES
userlist_deny=NO
pasv_enable=YES
pasv_promiscuou
pasv_min_port=25025
pasv_max_port=25099
pasv_addr_
pasv_address=
max_per_ip=10
hide_ids=YES
use_localtime=YES
max_login_fails=3
delay_failed_
I am not able to reproduce this using the karmic vsftpd version.
Regards
chuck