[opensuse] vsftpd failed to start
I have opensuse 12.3 and ubuntu 13.04 and runnning Xvnc and X11vnc to log on each other, then thought an easiest way to move files around between systems was to run FTP server (vsftpd), which I did on both machines. But it's running fine on Ubuntu machine while it failed to start on OpenSuSE machine. What I did was.. - installed vsftpd via software manager in Yast(GUI) - enabled it in xinetd (GUI) - then tried running manually with "/etc/init.d/vsftpd start" But in systemctl, it shows as "failed" and not running. Can someone tell me what might be the cause of this failure? suse123:/etc/init.d # /etc/init.d/vsftpd start redirecting to systemctl start vsftpd suse123:/etc/init.d # ps -ef | grep ftpd root 6022 5976 0 20:36 pts/3 00:00:00 grep --color=auto ftpd suse123:/etc/init.d # systemctl | grep ftpd vsftpd.service loaded failed failed Vsftpd ftp daemon Thanks, Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Toshi Esumi wrote:
I have opensuse 12.3 and ubuntu 13.04 and runnning Xvnc and X11vnc to log on each other, then thought an easiest way to move files around between systems was to run FTP server (vsftpd), which I did on both machines. But it's running fine on Ubuntu machine while it failed to start on OpenSuSE machine. What I did was.. - installed vsftpd via software manager in Yast(GUI) - enabled it in xinetd (GUI) - then tried running manually with "/etc/init.d/vsftpd start" But in systemctl, it shows as "failed" and not running. Can someone tell me what might be the cause of this failure?
suse123:/etc/init.d # /etc/init.d/vsftpd start redirecting to systemctl start vsftpd suse123:/etc/init.d # ps -ef | grep ftpd root 6022 5976 0 20:36 pts/3 00:00:00 grep --color=auto ftpd suse123:/etc/init.d # systemctl | grep ftpd vsftpd.service loaded failed failed Vsftpd ftp daemon
Please start by posting output from: systemctl status vsftpd -- Per Jessen, Zürich (11.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 2013-10-02 at 08:11 +0200, Per Jessen wrote:
Please start by posting output from:
systemctl status vsftpd
Here you go: suse123:/home/toshi # systemctl status vsftpd vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled) Active: failed (Result: exit-code) since Tue, 2013-10-01 20:35:32 PDT; 2h 40min ago Process: 6012 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2) CGroup: name=systemd:/system/vsftpd.service Oct 01 20:35:32 suse123.toshi-home systemd[1]: Started Vsftpd ftp daemon. Oct 01 20:35:32 suse123.toshi-home systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT Oct 01 20:35:32 suse123.toshi-home systemd[1]: Unit vsftpd.service entered failed state Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Toshi Esumi wrote:
On Wed, 2013-10-02 at 08:11 +0200, Per Jessen wrote:
Please start by posting output from:
systemctl status vsftpd
Here you go: suse123:/home/toshi # systemctl status vsftpd vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled) Active: failed (Result: exit-code) since Tue, 2013-10-01 20:35:32 PDT; 2h 40min ago Process: 6012 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2) CGroup: name=systemd:/system/vsftpd.service
Oct 01 20:35:32 suse123.toshi-home systemd[1]: Started Vsftpd ftp daemon. Oct 01 20:35:32 suse123.toshi-home systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT Oct 01 20:35:32 suse123.toshi-home systemd[1]: Unit vsftpd.service entered failed state
I think this is an indication that there is something wrong in your config file /etc/vsftpd.conf. If you post it (without the comments), I can compare with mine, if you want. -- Per Jessen, Zürich (11.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 2013-10-02 at 08:58 +0200, Per Jessen wrote:
I think this is an indication that there is something wrong in your config file /etc/vsftpd.conf. If you post it (without the comments), I can compare with mine, if you want.
Ok, this is the content of /etc/vsftpd.conf without comment lines: write_enable=NO dirmessage_enable=YES nopriv_user=ftpsecure local_enable=YES anonymous_enable=YES anon_world_readable_only=YES syslog_enable=YES connect_from_port_20=YES ascii_upload_enable=YES pam_service_name=vsftpd listen=NO listen_ipv6=YES ssl_enable=NO pasv_min_port=30000 pasv_max_port=30100 Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Toshi Esumi wrote:
On Wed, 2013-10-02 at 08:58 +0200, Per Jessen wrote:
I think this is an indication that there is something wrong in your config file /etc/vsftpd.conf. If you post it (without the comments), I can compare with mine, if you want.
Ok, this is the content of /etc/vsftpd.conf without comment lines: write_enable=NO dirmessage_enable=YES nopriv_user=ftpsecure local_enable=YES anonymous_enable=YES anon_world_readable_only=YES syslog_enable=YES connect_from_port_20=YES ascii_upload_enable=YES pam_service_name=vsftpd listen=NO listen_ipv6=YES ssl_enable=NO pasv_min_port=30000 pasv_max_port=30100
I suggest you remove "listen=NO". -- Per Jessen, Zürich (13.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 2013-10-02 at 20:12 +0200, Per Jessen wrote
I suggest you remove "listen=NO".
First I checked Ubuntu's /etc/vsftpd.conf, which is working for my ipv4 network. It has: listen=YES for ipv4 then listen_ipv6 is commented. So I copied the same way but the result was the same: suse123:/etc # systemctl start vsftpd suse123:/etc # systemctl status vsftpd vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled) Active: failed (Result: exit-code) since Wed, 2013-10-02 20:08:55 PDT; 13s ago Process: 6008 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2) CGroup: name=systemd:/system/vsftpd.service Oct 02 20:08:55 suse123.toshi-home systemd[1]: Starting Vsftpd ftp daemon... Oct 02 20:08:55 suse123.toshi-home systemd[1]: Started Vsftpd ftp daemon. Oct 02 20:08:55 suse123.toshi-home systemd[1]: vsftpd.service: main process exited, code=exited, status=2/INVALIDARGUMENT Oct 02 20:08:55 suse123.toshi-home systemd[1]: Unit vsftpd.service entered failed state Then I tried combinations between "listen" and "listen_ipv6" directives w/ a) YES, b) NO, and c)(none), means commented, almost exhaustively. But always ended up with the same "failed" status. At this point, I'm thinking the problem is somewhere else. As long as vsftpd is running on one of two machines I can move miles around either way so I'm going to keep using vsftpd running on Ubuntu machine. It's just annoying that I can't run the same thing on OpenSuSE with its default setting but that's one of reasons I have two machines with different distributions to save my time. I might try it again when 13.1 has been released. Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Oct 3, 2013 at 10:26 AM, Toshi Esumi <suse_email2@toshiesumi.com> wrote:
Then I tried combinations between "listen" and "listen_ipv6" directives w/ a) YES, b) NO, and c)(none), means commented, almost exhaustively. But always ended up with the same "failed" status.
At this point, I'm thinking the problem is somewhere else.
As long as vsftpd is running on one of two machines I can move miles around either way so I'm going to keep using vsftpd running on Ubuntu machine. It's just annoying that I can't run the same thing on OpenSuSE with its default setting but that's one of reasons I have two machines with different distributions to save my time. I might try it again when 13.1 has been released.
Toshi
Hi, You can only enable the listen for ipv4. If you want to enable ftp service for both ipv4 and ipv6 you should run 2 copies of vsftpd with different config file. You said that your run vsftpd from xinetd, how if you run it through system services, well sort off. Use yast system services to enable it instead of through xinetd. Also check your SuSEfirewall2 configuration if you use it, don't forget to allow vsftpd port. regards, -- medwinz http://about.me/medwinz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2013-10-03 at 11:19 +0700, medwinz wrote
Hi,
You can only enable the listen for ipv4. If you want to enable ftp service for both ipv4 and ipv6 you should run 2 copies of vsftpd with different config file.
Yes. That's what I've learned from the descriptions of those directives in comment lines in the conf file. I never tired both "YES". Or since I don't have ipv6 network here, I just want to make it with ipv4 only. I tried only "listen_ipv6=NO" and none(comment out) for the directive.
You said that your run vsftpd from xinetd, how if you run it through system services, well sort off. Use yast system services to enable it instead of through xinetd. Also check your SuSEfirewall2 configuration if you use it, don't forget to allow vsftpd port.
I haven't even tried rebooting the machine to use xinetd yet, although I set it up to run when it boots up. At this moment, even manual start with "systemctl" always failes with "status=2/INVALIDARGUMENT". Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
medwinz wrote:
On Thu, Oct 3, 2013 at 10:26 AM, Toshi Esumi <suse_email2@toshiesumi.com> wrote:
Then I tried combinations between "listen" and "listen_ipv6" directives w/ a) YES, b) NO, and c)(none), means commented, almost exhaustively. But always ended up with the same "failed" status.
At this point, I'm thinking the problem is somewhere else.
As long as vsftpd is running on one of two machines I can move miles around either way so I'm going to keep using vsftpd running on Ubuntu machine. It's just annoying that I can't run the same thing on OpenSuSE with its default setting but that's one of reasons I have two machines with different distributions to save my time. I might try it again when 13.1 has been released.
Toshi
Hi,
You can only enable the listen for ipv4. If you want to enable ftp service for both ipv4 and ipv6 you should run 2 copies of vsftpd with different config file.
I'm sorry, but that is misinformation. To run a vsftpd that listens on ipv4 _and_ ipv6, you use "listen_ipv6=yes". -- Per Jessen, Zürich (9.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
medwinz wrote:
On Thu, Oct 3, 2013 at 10:26 AM, Toshi Esumi <suse_email2@toshiesumi.com> wrote:
Then I tried combinations between "listen" and "listen_ipv6" directives w/ a) YES, b) NO, and c)(none), means commented, almost exhaustively. But always ended up with the same "failed" status.
At this point, I'm thinking the problem is somewhere else.
As long as vsftpd is running on one of two machines I can move miles around either way so I'm going to keep using vsftpd running on Ubuntu machine. It's just annoying that I can't run the same thing on OpenSuSE with its default setting but that's one of reasons I have two machines with different distributions to save my time. I might try it again when 13.1 has been released.
Toshi
Hi,
You can only enable the listen for ipv4. If you want to enable ftp service for both ipv4 and ipv6 you should run 2 copies of vsftpd with different config file.
I'm sorry, but that is misinformation. To run a vsftpd that listens on ipv4 _and_ ipv6, you use "listen_ipv6=yes".
Slight correction: to have vsftpd listen ipv4 _and_ ipv6, you use: listen=no listen_ipv6=yes If you onhly want ipv4, I believe this ought to work: listen=yes listen_ipv6=no -- Per Jessen, Zürich (9.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Oct 3, 2013 at 12:55 PM, Per Jessen <per@computer.org> wrote:
Per Jessen wrote:
I'm sorry, but that is misinformation. To run a vsftpd that listens on ipv4 _and_ ipv6, you use "listen_ipv6=yes".
Slight correction: to have vsftpd listen ipv4 _and_ ipv6, you use:
listen=no listen_ipv6=yes
If you onhly want ipv4, I believe this ought to work:
listen=yes listen_ipv6=no
-- Per Jessen, Zürich (9.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland.
Hi Per, Yes you right and I take back my explanation to avoid misinformation. Per, it run on ipv4 and ipv6 with "listen_ipv6=yes", but try check it with "netstat -tan" and see the port state on ipv4 port 21. Anyway if it run why bother with listen :-) Esumi san are you sure that your firewall doesn't block your ftp port? -- medwinz http://about.me/medwinz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
medwinz wrote:
On Thu, Oct 3, 2013 at 12:55 PM, Per Jessen <per@computer.org> wrote:
Per Jessen wrote:
I'm sorry, but that is misinformation. To run a vsftpd that listens on ipv4 _and_ ipv6, you use "listen_ipv6=yes".
Slight correction: to have vsftpd listen ipv4 _and_ ipv6, you use:
listen=no listen_ipv6=yes
If you onhly want ipv4, I believe this ought to work:
listen=yes listen_ipv6=no
-- Per Jessen, Zürich (9.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland.
Hi Per,
Yes you right and I take back my explanation to avoid misinformation.
Hi Edwin, I know you just went by the comments in the sample config file, but they're wrong :-(
Per, it run on ipv4 and ipv6 with "listen_ipv6=yes", but try check it with "netstat -tan" and see the port state on ipv4 port 21.
It's listening on :::21, that's sufficient. Apache does the same on port 80 and 443. -- Per Jessen, Zürich (10.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2013-10-03 at 13:54 +0700, medwinz wrote:
Esumi san are you sure that your firewall doesn't block your ftp port?
In my understanding, firewall doesn't cause any server applications to fail to start. But outside access not to work. Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Toshi Esumi wrote:
On Wed, 2013-10-02 at 20:12 +0200, Per Jessen wrote
I suggest you remove "listen=NO".
First I checked Ubuntu's /etc/vsftpd.conf, which is working for my ipv4 network. It has: listen=YES for ipv4 then listen_ipv6 is commented.
That ought to work.
So I copied the same way but the result was the same:
Hmm. If it's of any help to you, this is my working config: write_enable=YES dirmessage_enable=YES nopriv_user=ftpsecure ftpd_banner=Welcome to the Hostsuisse FTP service hide_ids=YES local_enable=YES local_umask=022 chroot_local_user=YES anonymous_enable=NO anon_world_readable_only=YES syslog_enable=YES connect_from_port_20=YES ascii_upload_enable=YES pam_service_name=vsftpd listen=NO listen_ipv6=YES ssl_enable=NO pasv_min_port=30000 pasv_max_port=30100 -- Per Jessen, Zürich (9.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2013-10-03 at 08:08 +0200, Per Jessen wrote:
Hmm.
If it's of any help to you, this is my working config:
write_enable=YES dirmessage_enable=YES nopriv_user=ftpsecure ftpd_banner=Welcome to the Hostsuisse FTP service hide_ids=YES local_enable=YES local_umask=022 chroot_local_user=YES anonymous_enable=NO anon_world_readable_only=YES syslog_enable=YES connect_from_port_20=YES ascii_upload_enable=YES pam_service_name=vsftpd listen=NO listen_ipv6=YES ssl_enable=NO pasv_min_port=30000 pasv_max_port=30100
I think I found the core problem and removed the issue. It now runs with systemctl manually. Actually medwinz's suggestion helped me finding it. When I run netstat -tpan I saw somebody is already listening to port 21. But it didn't show me what it was. Then googled a little and found "lsof -i". When I run it, I saw pure-ftpd was somehow listening to it, which I tried in the past then disabled at xinetd. I removed the software completely then stopped seeing it in lsof any more. Now systemctl can start vsftpd. I still need to figure out xinetd issues I had problems in the past, including pure-ftpd. But that's a separate issue from the subject of this thread. Thank you for your help, both Per and medwinz! I've learned something new. Toshi e Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
medwinz
-
Per Jessen
-
Toshi Esumi