View Full Version : [ubuntu] vsftpd will not start
MarioFromBelgium
June 23rd, 2008, 05:37 PM
When I start vsftp my ubuntu 8 returns OK but connecting to the service fails. When I stop the service it says it can't find any running.
I have paste the return for your info.
Does anybody have an idea?
------
administrator@server1:~$ sudo /etc/init.d/vsftpd start
* Starting FTP server: vsftpd [ OK ]
administrator@server1:~$ ftp localhost
ftp: connect: Connection refused
ftp> exit
administrator@server1:~$ sudo /etc/init.d/vsftpd stop
* Stopping FTP server: vsftpd No /usr/sbin/vsftpd found running; none killed.
------
RealPSL
June 23rd, 2008, 08:13 PM
Have you changed the default configuration file for vsftpd? If yes can we see it?
windependence
June 24th, 2008, 03:29 AM
After you start vsftp do the following command:
ps aux | grep vsftpd
Post the output here for us. I don't think the process is starting.
-Tim
MarioFromBelgium
June 24th, 2008, 03:36 PM
This is what I get for the ps command
--
administrator@server1:~$ sudo /etc/init.d/vsftpd start
* Starting FTP server: vsftpd [ OK ]
administrator@server1:~$ ps aux | grep vsftpd
1000 5005 0.0 0.2 3004 756 pts/0 R+ 21:33 0:00 grep vsftpd
--
actually at first I didn't alter the conf. file but since that didn't work I altered it a little bit. I will copy it in a new post immediately!
MarioFromBelgium
June 24th, 2008, 04:20 PM
Boys and girls,
this will probably look very stupid but since the conf file is larger than my terminal-window (I'm connacting from my portable through putty) I can't copy it.
I just decided to autoremove and install again vsftp so that I can be 100% surten that the conf file is not changed.
Again the same result :
--
root@server1:~# sudo /etc/init.d/vsftpd start
* Starting FTP server: vsftpd [ OK ]
root@server1:~# ps aux | grep vsftpd
root 5282 0.0 0.2 3004 760 pts/2 S+ 22:19 0:00 grep vsftpd
--
RealPSL
June 24th, 2008, 11:32 PM
Does anything get written to the log file /var/log/vsftpd.log?
windependence
June 25th, 2008, 02:27 AM
Looks like it's trying to start but I don't see any process ID so I can only conclude it did not start.
Like RealIPSL said, we should be looking at the log files.
-Tim
MarioFromBelgium
June 25th, 2008, 03:42 AM
Guys,
I will check this evening the log-files. (I'm at work now administering more than a few win-servers, my UBUNTU is at home)
Yesterday,late in the evening I decided again to remove vsftpd and install proftpd...guess what... no problems!!
I'm doing this as a hobby with the intention to(one day soon) introduce the first UBUNTU-server at work; So I'm doing this primarily to learn. Therefor, this evening, I will again instal vsftpd and see what happens, I will post you the log-files!
DSmidgy
June 12th, 2010, 05:15 PM
Hi,
in my case, the problem was in "ssl_enable=YES".
/var/log/syslog states:
server init: vsftpd main process (23493) terminated with status 1
server init: vsftpd main process ended, respawning
DSmidgy
June 13th, 2010, 08:57 AM
I found out, that the certificate does not exist:
/etc/ssl/private/vsftpd.pem
Fliegelflagel
July 25th, 2010, 06:19 PM
Try this:
sudo vsftpd
and look at what vsftpd tells about its problems. For example:
500 OOPS: SSL: cannot load RSA certificate
shows that it has problems reading the RSA certificate mentioned in the config file.
duceduc
August 6th, 2010, 05:25 AM
Hi,
in my case, the problem was in "ssl_enable=YES".
/var/log/syslog states:
server init: vsftpd main process (23493) terminated with status 1
server init: vsftpd main process ended, respawning
Thank you!!! That was the answer to my problem.
nucleuskore
February 9th, 2011, 02:38 PM
On my server I had the same error message of server respawning too quickly and status 1, and the server dying.
So I tried starting it by typing sudo vsftpd and got a message telling me that there was a problem with the boolean value of anonymous_enable
In my default vsftpd config file it was as follows:
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=YES
Now this is correct as I wanted anonymous read-only access, but is wasn't working. Even deleting the line, typing it again and restarting the server did not work. So I simply commented it out so that it now looked like this
# Allow anonymous FTP? (Disabled by default)
#anonymous_enable=YES
and my server is now working ! I tried to delete the files as an anonymous user and it wont allow me, just as I wanted it. This is insane.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.