Click to See Complete Forum and Search --> : FTP Server problem
dsgdevil
12-20-2003, 08:13 PM
Hi everyone, I've just upgraded my computer from Red Hat 8 to 9 and now I'm trying to install the ProFTPD server. The installation went fine. However, when I try to start it with:
# service proftpd start
it gives me this reply:
Starting proftpd: [ OK ]
The reply says the server started but when i try to access it, it coudnt connect.When I restart the server, the message says:
Shutting down proftpd: [FAILED]
Starting proftpd: [ OK ]
It seems that the server never started, but the message said it did. I then tried the vsftpd but the same thing happens. Is there anything I'm doing wrong? What can I do to get it the server to work?
posterboy
12-21-2003, 08:36 AM
I'm no longer running pro-ftpd, but i did for a long time. It will start just fine from the command line. Try to manually start it, and see if it's really running. If that works, then the issue lies within the start-up scripts. I use vsftpd, now, and it works fine. RH9 has a GUI, redhat-config-services, that "knows about" vsftpd and added mine to the run level n/p. Maybe?
HTH, Ray
It's been a while since I ran proftpd, but maybe both ftp daemons are running in inet.d mode. I think this is the default for proftpd. Basically, (if you're not familiar with this) inet.d is a "super daemon" that will run in place of several others. When one of the services that it covers is called, it will start up that particular service. This allows one daemon to run when these services are not being used in place of several, reducing the amount of resources needed. Check your config file.
My second thought is that you might need to modify your hosts.allow file.
dsgdevil
12-21-2003, 08:45 PM
Well, i've tried several other ftp daemons and the same thing happens. For some reason, the FTP services were not able to start.
posterboy
12-22-2003, 06:24 AM
Do a pgrep for "ftp" and see if it's really running.
Daedrus
12-22-2003, 11:09 AM
Check vsftpd status. I had a problem with this, I got an error about "vsftpd dead but subsys locked." I found a file in /var/locked/subsys called vsftpd. I removed this file and FTP worked. Still haven't found what this is or why it was there, but this was just a test server for me. You might want to look into it.
posterboy
12-22-2003, 06:30 PM
Yeah, there's a utility named "lslk" that lists every lockfile on the machine. Man, that thing has saved me a ton of time looking for crazy things.