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
Maybe the DNS does not work correct on the user's router because i already use DHCP and did not have any problems ???
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
Fixed. See http://freenas.svn.sourceforge.net/viewvc/freenas?view=rev&revision=4287 and http://freenas.svn.sourceforge.net/viewvc/freenas?view=rev&revision=4285
Regards
Volker
Sorry but No Fix on 0.69.1 Kwisatz Haderach (revision 4287)
See attachment.
Regards,
Dan
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
Dan,
maybe it has something todo with this:
http://apps.sourceforge.net/phpbb/freenas/viewtopic.php?f=47&t=882&st=0&sk=t&sd=a&sid=3ea9d935cc77f073a096577af8f7bff8&start=10#p3713
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.