Proftpd not starting after reboot

hpman28

Verified User
Joined
Aug 11, 2006
Messages
15
Hi.

I installed a few updates, but didnt touched proftpd (1.3.0)

I did a reboot and the proftpd procces isn't starting.

After trying in ssh to run it, i get:
Code:
 - IPv4 getaddrinfo '' error: hostname nor servname provided, or not known
 - warning: unable to determine IP address of ''
 - error: no valid servers configured
 - Fatal: error processing configuration file '/etc/proftpd.conf'

I read here that it's because wrong hostnames in /etc/hosts.

It's a new server, and 1 of the lines in /etc/hosts are linking to a domain that is working on the old server.

this is the /etc/hosts file:
Code:
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain
80.179.xxx.xxx          server.xxxxx.co.il

the xxx are something real... :rolleyes:

I need to transfer backups by ftp from the old server to the new one, so i need ftp somehow... Can i just add a command that proftpd will ignore errors in /etc/hosts?
 
Do you have a hostname? Is it served by DNS? If not, it needs to be set up in your /etc/hosts file.

Jeff
 
I got a hostname, but until the server is not fully installed, the hostname is redirecting to another ip by dns.

I also get a directadmin message
Code:
This is e-mail notification to warn you that your hostname is setup improperly on your system.

Should i contact the guy that installed the server in the farm?

Cant i just remove the last line from /etc/hosts untill the server is working?
 
Solved...

I just ran hostname.sh with the ip.

How can i add that command to startup scripts?

It's freebsd 6, the startup dir is /etc/rc.d

Can u give my a small script that uses hostname.sh? Im not so linux user...
 
Back
Top