Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-03, 01:39 PM CST
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 409
linuxkonqueror
Thumbs up Proftpd refuses to start - F8 [SOLVED NOW]

[SOLVED] Hi all. I'm still on F8 on this particular machine. Hope to upgrade soon though.

Proftpd has been running OK until recently, when I tried to connect using my laptop.

All I get is the proftpd-socket file under /var/run/proftpd/

I cant' find any log files with error messages in them.

I have checked /var/log/messages - nothing in there either.

I have rebooted the machine after re-installing proftpd. Still it wont start

Is there any way to find out why proftpd has decided not to start any more please?

Last edited by CD-RW; 2009-11-08 at 02:11 PM CST.
Reply With Quote
  #2  
Old 2009-11-05, 09:25 AM CST
giulix's Avatar
giulix Online
Registered User
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 1,960
linuxfedorafirefox
su -c "proftpd -n"
__________________

2.6.31.5-127.fc12.i686.PAE on a
AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
ASUS M3A78-EM - 2x1024 DDR2/800 - EN9600GT
No O/C; SELINUX=disabled
Reply With Quote
  #3  
Old 2009-11-05, 03:34 PM CST
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 409
linuxkonqueror
[root@myhost cd-rw]# proftpd -n
- warning: unable to determine IP address of 'myhost'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd.conf'

That's looking good giulix.

I seem to remember editing /etc/hosts recently. When I saved the file I got a message about the file having hard links to it. I may have accidently detached those links. Could this be where the problem is?

The thing is, I don't know where the hard links were pointing from, to the hosts file.

Something to do with proftpd maybe?

Normally proftpd works out-of-the-box, with zero configuration from me
Reply With Quote
  #4  
Old 2009-11-06, 03:23 AM CST
giulix's Avatar
giulix Online
Registered User
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 1,960
linuxfedorafirefox
Just make sure you've got an entry in /etc/hosts that points to your NIC, as in the following example:
Code:
[giulix@itmif185 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
nnn.nnn.nnn.nnn	itmif185.xxxxx.xxxxx.xxxx.com	itmif185	localhost.localdomain	localhost
::1	localhost6.localdomain6	localhost6
where itmif185.xxxxx.xxxxx.xxxx.com is the FQDN of your FTP server and nnn.nnn.nnn.nnn is the IP address of your NIC
__________________

2.6.31.5-127.fc12.i686.PAE on a
AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
ASUS M3A78-EM - 2x1024 DDR2/800 - EN9600GT
No O/C; SELINUX=disabled
Reply With Quote
  #5  
Old 2009-11-06, 10:32 AM CST
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 409
linuxfedorafirefox
Thumbs up Sorted

Quote:
Originally Posted by giulix View Post
Just make sure you've got an entry in /etc/hosts that points to your NIC, as in the following example:
Code:
[giulix@itmif185 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
nnn.nnn.nnn.nnn    itmif185.xxxxx.xxxxx.xxxx.com    itmif185    localhost.localdomain    localhost
::1    localhost6.localdomain6    localhost6
where itmif185.xxxxx.xxxxx.xxxx.com is the FQDN of your FTP server and nnn.nnn.nnn.nnn is the IP address of your NIC
Sorted now thankyou giulix. The reason for proftpd throwing a wobbly and refusing to start was this:

My machine's actual domain name is just a synonym for the FQDN. This is to keep the name in the shell CLI short and sweet.

Recently I was setting-up some domain names for testing some name-based virtual-hosts locally on my machine. (I also noticed the mod-time for /etc/hosts was around the time proftpd last worked.)

So I decided to tidy-up the domain names and just use two different types of domain names.

I went from this:

Code:
# NIC IP-Address      Full-Qualified-Hostname  Short-Hostname  Really-Shortname
   nnn.nnn.nnn.nnn     www.myhost.net           myhost.net      myhost
To this:
Code:
# NIC  IP-Address     Full-Qualified-Hostname  Short-Hostname
   nnn.nnn.nnn.nnn     www.myhost.net           myhost.net
and the actual hostname for my machine is 'myhost'. So Proftpd must have been looking in /etc/hosts for a hostname called exactly 'myhost', and refused to start when it did not find that exact entry.

So adding the Really-Shortname entry back into /etc/hosts has fixed the problem, and I can now start proftpd again!

Thanks again for the pointer giulix.

BTW, I've never had to put my external static IP address into the /etc/hosts file before. However I do use a static IP address for the machine's NIC, which I configure manually, to match my routers internal gateway address - so my machine's NIC IP and the routers Gateway IP are on the same internal network.

Last edited by CD-RW; 2009-11-06 at 11:35 AM CST.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nm-applet refuses to start abensonox Networking 4 2007-11-12 11:23 AM CST
Samba refuses to start [FC5] marco75 Servers 2 2007-06-03 02:33 AM CDT
Firefox refuses to start KlaasP Software 1 2005-10-22 04:49 PM CDT
FVWM installs but refuses to start sgjanssens[old] Software 0 2005-10-15 01:01 AM CDT
cupsd refuses to start. akonstam@trinity.edu gmane.linux.redhat.fedora.general 4 2005-07-25 02:37 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:38 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET) created by NLP-er