[Bug 972845] Re: after upgrade to precise, service did not start
Eric's fix works for me. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
I am experiencing this problem in Ubuntu 12.04 Desktop (package: tftpd-5.2-1ubuntu1). The tftpd daemon does not start when the computer starts up, even though the tftpd-hpa job starts. As far as I can tell, the problem is that the tftpd service is starting before the network is properly configured. The problem seemed to go away when I changed the line start on runlevel [2345] in /etc/init/tftpd-hpa.conf to start on (local-filesystems and net-device-up IFACE!=lo) However, I am not an expert with Upstart and this may not necessarily be the best way to fix the problem. Here is part of the system log. Note: there are 2 ethernet interfaces on the computer, and NetworkManager is being used: Sep 18 11:06:31 server NetworkManager[952]: info (eth1): now managed Sep 18 11:06:31 server NetworkManager[952]: info (eth1): device state change: unmanaged - unavailable ( reason 'managed') [10 20 2] Sep 18 11:06:31 server NetworkManager[952]: info (eth1): bringing up device. Sep 18 11:06:31 server kernel: [ 19.320069] e1000e :00:19.0: irq 49 for MSI/MSI-X Sep 18 11:06:31 server kernel: [ 19.320257] ADDRCONF(NETDEV_UP): eth0: link is not ready Sep 18 11:06:31 server kernel: [ 19.320555] ADDRCONF(NETDEV_UP): eth0: link is not ready Sep 18 11:06:31 server acpid: starting up with proc fs Sep 18 11:06:31 server cron[1063]: (CRON) INFO (pidfile fd = 3) Sep 18 11:06:31 server acpid: 35 rules loaded Sep 18 11:06:31 server acpid: waiting for events: event logging is off Sep 18 11:06:31 server NetworkManager[952]: info (eth1): preparing device. Sep 18 11:06:31 server NetworkManager[952]: info (eth1): deactivating device (reason 'managed') [2] Sep 18 11:06:31 server kernel: [ 19.337830] ADDRCONF(NETDEV_UP): eth1: link is not ready Sep 18 11:06:31 server kernel: [ 19.338129] ADDRCONF(NETDEV_UP): eth1: link is not ready Sep 18 11:06:31 server in.tftpd[1065]: cannot resolve local IPv4 bind address: 0.0.0.0, Name or service no t known Sep 18 11:06:31 server kernel: [ 19.343687] init: tftpd-hpa main process (1065) terminated with status 6 6 Sep 18 11:06:31 server kernel: [ 19.343706] init: tftpd-hpa main process ended, respawning -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
Actuall problem is tftpd-hpa trying start before any interface have IP address, so if you look closely at syslog you will find such messages. cannot resolve local IPv4 bind address: 0.0.0.0, Name or service not known. So only workaround so far is change /etc/init/tftpd-hpa.conf to add sleep 10 before it start, but for me this breake upstart script somewhat thus it hang durring shutdown. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
Nikolay has spotted the problem, same here... terra in.tftpd[1397]: cannot resolve local IPv4 bind address: 0.0.0.0, Name or service not known I though upstart was supposed to have a dependencies system that prevents things like this. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
There some works been done before bug 522509, maybe related -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
** Changed in: tftp-hpa (Ubuntu) Status: Incomplete = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
Hi Jon, thanks for taking the time to file this report. Can you look for a /var/log/upstart/tftpd-hpa.log file, and attach it? Also examine the file /etc/default/tftpd-hpa and be sure that there is a setting for TFTP_DIRECTORY, and that the directory is on a filesystem that will be mounted automatically (so, not one that is marked as 'nowait' in /etc/fstab). ** Changed in: tftp-hpa (Ubuntu) Importance: Undecided = Medium ** Changed in: tftp-hpa (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
This service is not starting correctly at boot every time. A restart will fix it. jonsmirl@terra:~$ sudo service tftpd-hpa restart tftpd-hpa stop/waiting tftpd-hpa start/running, process 4178 jonsmirl@terra:~$ This is probably the problem I experienced on upgrade. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 972845] Re: after upgrade to precise, service did not start
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/972845 Title: after upgrade to precise, service did not start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/972845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs