PDA

View Full Version : Proftpd not starting after reboot


hpman28
08-11-2006, 03:47 PM
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:
- 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:

::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?

jlasman
08-11-2006, 09:26 PM
Do you have a hostname? Is it served by DNS? If not, it needs to be set up in your /etc/hosts file.

Jeff

hpman28
08-11-2006, 10:59 PM
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
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?

hpman28
08-11-2006, 11:16 PM
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...