Menu

#493 (4276) FTP fail to start on DHCP

v0.69x
open
Volker
5
2012-10-28
2009-01-19
Dan Merschi
No

If IP set to DHCP proftpd fail to start:

freenas:~# /etc/rc.d/proftpd.sh start
Starting proftpd.
- warning: unable to determine IP address of 'freenas'
- error: no valid servers configured
- Fatal: error processing configuration file '/var/etc/proftpd.conf'

See:
https://apps.sourceforge.net/phpbb/freenas/viewtopic.php?f=47&t=708&p=3575#p3575
http://www.proftpd.org/docs/directives/linked/config_ref_DefaultAddress.html

Regards,
Dan

PS: In the same time don't forget about:
https://apps.sourceforge.net/phpbb/freenas/viewtopic.php?f=47&t=843#p3570

Discussion

  • Volker

    Volker - 2009-01-19

    Maybe the DNS does not work correct on the user's router because i already use DHCP and did not have any problems ???

     
  • Volker

    Volker - 2009-01-20

    Question: Why do I see the following when my proftpd starts up?

    getaddrinfo 'hostname' error: No address associated with hostname
    warning: unable to determine IP address of 'hostname'

    Answer: This error is ProFTPD's way of reporting that it was unsuccessful in resolving hostname to an IP address. Fixing this is a matter of configuring DNS for that hostname: properly set up an IP address for that DNS name in your DNS server, use a DNS name that has an IP address, or (as a quick fix/last resort) add that DNS name to your /etc/hosts file. The proper solution depends largely on the circumstances.

    See http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-DNS.html

     
  • Dan Merschi

    Dan Merschi - 2009-01-20

    Sorry but No Fix on 0.69.1 Kwisatz Haderach (revision 4287)
    See attachment.

    Regards,
    Dan

     
  • Dan Merschi

    Dan Merschi - 2009-01-20
     
  • Volker

    Volker - 2009-01-21

    Hi Dan,

    is it possible to ping 'freenas' from your NAS and from Windows/Linux PC?

    ping freenas (on NAS)

    ping freenas (on Windows/Linux PC)

    Are you using a VM for testing? Using real hardware i'm not able to reproduce this, but right at the moment i got the problem on my VM (VMWare player). But i think the problem is that DNS is not working correct in this scenario because i'm also not able to ping myself on the VM using the hostname.

    As workaround the user can add a host entry via WebGUI.

    Regards
    Volker

     
  • Ben Hochstrasser

    The culprit is the DHCP client which does not add its own address to the /etc/hosts file. DDNS is not implemented everywhere, and many internet routers just forward to the provider's DNS which couldn't care less about John Doe's FreeNAS box.
    So, the DHCP client should add/update its own name/address in the hosts file. Which also solves the problem with FTP.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.