[Bug 522509] Re: [FFE] tftpd-hpa doesn't start on boot

Diego Morales morales at propus.com.br
Mon May 7 14:58:52 UTC 2012


Hello Allen,

As you may already know, the tftpd-hpa daemon is started on boot by the
upstart system, as configured in the file /etc/init/tftpd-hpa.conf.
This file contains a line beggining with "start on", which gives the
*condition* in which upstart will start the daemon (by running the
script that is defined in the same file).

The error message "cannot resolve local IPv4 bind address: 0.0.0.0, Name
or service not known" tells us that there is no configured IP address
when tftpd is started.

In my case, that happened  because of the NIC bonding (multiple physical
NICs configured as one logical NIC) configuration. The original "start
on" condition (on lucid) is "start on (filesystem and net-device-up
IFACE!=lo)". So when bondX gets up, that condition is satisfied, tftpd
starts, but all the physical interfaces which are part of bondX are not
ready yet, which gives the error, and makes tftpd exit. I changed the
condition (in a non-generic, not even good way)  so tftpd gets started
later. It worked

Do you use nic bonding  too?

I've just checked now that in Precise they changed the condition to
"start on runlevel [2345]". I guess that should work even with bonding,
don't remember if I tried that... Could it be another network
configuration problem in your setup, maybe?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/522509

Title:
  [FFE] tftpd-hpa doesn't start on boot

Status in “ltsp” package in Ubuntu:
  Fix Released
Status in “tftp-hpa” package in Ubuntu:
  Fix Released
Status in “ltsp” source package in Lucid:
  Fix Released
Status in “tftp-hpa” source package in Lucid:
  Fix Released

Bug description:
  Binary package hint: tftp-hpa

  tftpd-hpa version: 5.0-11ubuntu1

  tftpd-hpa doesn't start on boot for me:
  syslog.1:Feb 16 08:26:43 alkis in.tftpd[1399]: cannot resolve local IPv4 bind address: 0.0.0.0, Name or service not known

  But if I put a "sleep 30" on top of /etc/init.d/tftpd-hpa, then it does start.
  Maybe the network isn't ready when the script runs?
  Maybe it'd be better if tftpd-hpa was upstartified?

  I didn't change any of my settings, they're the defaults:
  # /etc/default/tftpd-hpa

  TFTP_USERNAME="tftp"
  TFTP_DIRECTORY="/var/lib/tftpboot"
  TFTP_ADDRESS="0.0.0.0:69"
  TFTP_OPTIONS="--secure"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/522509/+subscriptions




More information about the foundations-bugs mailing list