tftpd package broken

Bug #105863 reported by hjkoch
10
Affects Status Importance Assigned to Milestone
netkit-tftp (Ubuntu)
Fix Released
Medium
Mackenzie Morgan

Bug Description

Binary package hint: tftpd

I'm using tftpd to make a kernel image available for an embedded device. The device uses the U-Boot bootloader, which is configured to load the kernel image from a server.
On the server, I run a tftp daemon under KUbuntu. With in.tftpd from the tftpd package, this doesn't work. Messages in syslog show that tftpd recognizes the request correctly, but then terminates the connection without any visible reason. Installing the package tftpd-hal instead of tftpd solves the problem.

After some googling, I found out that the problem is already known, but it seems nobody ever filed a bug report against that package, so here it is.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Thanks. Would you give us a link to the web page(s) where you found a description of this problem?

Which Ubuntu are you running?

Revision history for this message
hjkoch (hjk) wrote :

First I need to correct a typo: A "tftpd-hal" package doesn't exist, I meant tftpd-hpa.

I observed the bug under Kubuntu 6.06.1, but it seems to be a general problem of tftpd which can also be seen under other distributions. Problems are described e.g. here:

http://www.sigsegv.cx/diskless-2.html

and here (in German):

http://www.bsdforen.de/showthread.php?t=18129

Some postings I read suggest the problem is caused by tftpd trying to setup an IPv6 connection, which cannot be handled by U-Boot. I don't know if this is true or not. But several web pages I found say that tftpd-hpa is the only tftp server that is actually working in their application.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Thanks for the update. Confirming the bug.

Changed in netkit-tftp:
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Neeraj Gupta (ngupta44) wrote :

I have seen a problem with tftpd package as well. This is on 7.04 feisty.
The client makes a request with tsize = 0 but tftpd server reports tsize is missing.
Changed to tftpd-hpa and its fine.

Revision history for this message
lethargy (lethargy) wrote :

To work around the IPv6 connection bug, install xinetd or similar and set up tftpd as described here: http://www.davidsudjiman.info/?p=93

But instead alter udp to udp4 as below

service tftp
{
protocol = udp4
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

Changed in netkit-tftp:
importance: High → Medium
Revision history for this message
Akkana Peck (akkzilla) wrote :

Still not working in 10.04, three years later. If tftp only works with xinetd and doesn't work with openbsd-inetd, shouldn't its dependencies be adjusted accordingly? On Lucid, installing tftp installs openbsd-inetd which doesn't work at all.

Changed in netkit-tftp (Ubuntu):
assignee: nobody → Mackenzie Morgan (maco.m)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netkit-tftp - 0.17-17ubuntu2

---------------
netkit-tftp (0.17-17ubuntu2) maverick; urgency=low

  * debian/control:
    - Change dependency from openbsd-inetd to xinetd so correct
      size is reported (LP: #105863)
 -- Mackenzie Morgan <email address hidden> Fri, 20 Aug 2010 12:33:19 -0400

Changed in netkit-tftp (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Mackenzie Morgan (maco.m) wrote :

New version uploaded to Maverick with dependencies corrected as per Akk's note. Please test.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.