LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   proftpd: proftpd startup failed (http://www.linuxquestions.org/questions/linux-newbie-8/proftpd-proftpd-startup-failed-191619/)

tumana 06-09-2004 02:48 PM

proftpd: proftpd startup failed
 
I am running Mandrake 10.0 after very recently having purchased it. Mandrake 9.2 seamed to have worked with this issue, but 10 is giving me some problems.

I installed Mandrake 10 for the first time yesterday. One of the several problems is that I can't seem to configure my ProFTP daemon. I've edited the /etc/proftpd.conf file, checked my folder permissions, I even installed Webmin to see if their user interface might point something out I forgot with the text editor.

After making configuration changes, I tried restarting the proftpd service using
Code:

service -f proftpd
but I got the following error:
Code:

Shutting down proftpd:                                          [FAILED]
Starting proftpd:  - getaddrinfo 'delta2' error: Name or service not known
 - error: unable to determine IP address of 'delta2'
 - error: no valid servers configured
 - Fatal: error processing configuration file '/etc/proftpd.conf'
                                                                [FAILED]

I know I have an IP address because I can surf the web and ifconfig tells me I have one. I'm also obviously logged on as root.

I get the same stuff in my boot.log file
Code:

Jun  9 13:56:34 delta2 proftpd:  - getaddrinfo 'delta2' error: Name or service not known
Jun  9 13:56:34 delta2 proftpd:  - error: unable to determine IP address of 'delta2'
Jun  9 13:56:34 delta2 proftpd:  - error: no valid servers configured
Jun  9 13:56:34 delta2 proftpd:  - Fatal: error processing configuration file '/etc/proftpd.conf'
Jun  9 13:56:34 delta2 proftpd: proftpd startup failed

Can someone please help? Thanks in advance.

ian

Donboy 06-09-2004 03:24 PM

Might help seeing your config file. Also, you may want to be sure the config file is in unix format and not Windows format. You can check by doing...

Code:

vi -b /etc/proftpd.conf
and see if there are any ^M characters showing up at the end of each line.

tumana 06-09-2004 04:04 PM

First off, thanks for the reply.

I tried opening proftpd.conf in binary mode and there were no ^M characters. Here is the config file:

Code:

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "Delta2 FTP Server"
ServerType                      standalone
DefaultServer                  on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart              on

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                          022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 10

# Set the user and group under which the server will run.
User                            nobody
Group                          nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite                on
</Directory>

# Needed for NIS.

PersistentPasswd              off

# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
DefaultRoot /var/ftp/pub testuser
<Global>
DeleteAbortedStores on
HiddenStor on
RootLogin off
DisplayGoAway ""Too many concurrent connections.""
MaxLoginAttempts 3
UseFtpUsers on
</Global>

The only thing that bugs me are these lines:
Code:

# Set the user and group under which the server will run.
User                            nobody
Group                          nogroup

There is no user/group called nobody/nogroup. I remember not having to set a special user/group with my last installation (9.2), so I didn't touch these lines. I left them as they were.

Thanks,
ian

Donboy 06-09-2004 04:41 PM

Yeah, you'll need to make those. Mine were already made when I installed, so I can see where that's easy to overlook... but yeah, I think you really need them. But I don't know if that's really your problem.. the errors you got seem to suggest that the OS doesn't recognize the service name.

tumana 06-09-2004 04:43 PM

Should I just create them like a create a normal user? Should they have more permissions than the normal users?

ian

tumana 06-09-2004 05:28 PM

Well, I went to create a user and group that matched the proftpd.conf file and they already exist! Not that I can see them, but the Mandrake user interface told me a user with that name already exists.

I guess that's not my problem.

ian

Donboy 06-09-2004 06:16 PM

What's the contents of your /etc/hosts file? You must have your hostname associated with the IP address you're using for this machine.

tumana 06-10-2004 02:14 AM

Ha! You're kidding me! The only thing in there is
Code:

127.0.0.1                  localhost
Should I put
Code:

my_ip_address        my_hostname
I'll go ahead and try it. Hope this works.

ian

tumana 06-10-2004 02:39 AM

Code:

Shutting down proftpd:                                [  OK  ]
Starting proftpd:                                    [  OK  ]

You are a genius!!! It's people like you that make this community work. I afferoed you, by the way.

You have a great day!
ian

Donboy 06-10-2004 06:25 AM

No problem. Glad it worked. Thanks very much!

enzo24 05-11-2009 07:17 AM

Thanks for the tip ! It did the job for me !

bletro 06-04-2009 01:28 AM

Thanks Donboy!
Even though I had my FQDN in my hosts file it still didn't work, I had to fill in my short name. (Just a tip)

snokendrutt 10-16-2009 02:24 AM

Alternative TIP
 
Quote:

Originally Posted by bletro (Post 3562560)
Thanks Donboy!
Even though I had my FQDN in my hosts file it still didn't work, I had to fill in my short name. (Just a tip)

I used
Quote:

proftpd.conf
# Bind to Default Adress
DefaultAddress 192.168.0.1
SocketBindTight on
Worked nice for me... Not sure you need SocketBindTight

:cool:

godsoul 07-21-2010 10:47 PM

Your questions try this:

vi /etc/hosts

127.0.0.1 delta2

SuperBiBi 06-17-2012 11:06 AM

thanks too much
 
in /etc/hosts add this:

<your-ip-address> <server-name>

thanks too much, it saves my time.


All times are GMT -5. The time now is 10:45 PM.