Discussion:
TFTP Timeout
Andrea Iacopini
2004-10-23 15:55:12 UTC
Permalink
Guys,
configured FAI (I presume correct but anyway..) i receivede this message
from my fai-clients
PXE-E32: TFTP open timeout.

Any Ideas?

A.
========================================================================
Andrea Iacopini,
IT Architect & PreSales Engineer,
Networking and Security Business Unit

Step - Web Engineering
Via Stanislao Cannizzaro, 51 - 00156 Roma, Italy

aiacopini at steponweb.it
Mobile + 39 335 77.82.381
Tel. +39 06 40.80.19.92, Fax. +39 06 40.90021
========================================================================
Valued IEEE Member,
Member NO: 41412812
Real hackers don't die, just their TTL expires. [Unknown]
malk
2004-10-23 16:24:31 UTC
Permalink
Are you using a TFTP server that supports TSIZE ?? This assumes you're using
pxelinux from H. Peter Anvin's syslinux project.

Stock debian TFTP server doesn't support TSIZE (sarge anyway).

Grab tftp-hpa from http://www.kernel.org/pub/software/network/tftp

and build and install it -- in my situation I needed to modify
/etc/inetd.conf so tftpd would get run as root instead of nobody --
no worries as tftp-hpa takes care of ditching root capabilities when
appropriate but it initially needs to run as root when forked from inetd.

You can confirm you have TSIZE issues by looking at /var/log/daemon.log
and you'll see tftpd complaining about not supporting TSIZE when pxe
tries to grab the kernel.

Best of luck,

-Eric Malkowski
Post by Andrea Iacopini
Guys,
configured FAI (I presume correct but anyway..) i receivede this message
from my fai-clients
PXE-E32: TFTP open timeout.
Any Ideas?
A.
========================================================================
Andrea Iacopini,
IT Architect & PreSales Engineer,
Networking and Security Business Unit
Step - Web Engineering
Via Stanislao Cannizzaro, 51 - 00156 Roma, Italy
aiacopini at steponweb.it
Mobile + 39 335 77.82.381
Tel. +39 06 40.80.19.92, Fax. +39 06 40.90021
========================================================================
Valued IEEE Member,
Member NO: 41412812
Real hackers don't die, just their TTL expires. [Unknown]
Tapio Lehtonen
2004-10-24 04:22:39 UTC
Permalink
Post by malk
Are you using a TFTP server that supports TSIZE ?? This assumes you're using
pxelinux from H. Peter Anvin's syslinux project.
Stock debian TFTP server doesn't support TSIZE (sarge anyway).
Grab tftp-hpa from http://www.kernel.org/pub/software/network/tftp
Does this mean that stock Debian can not be used as FAI server? Surely
FAI can run on Debian server and install Debian clients?
--
Tapio Lehtonen
Tapio.Lehtonen at IKI.FI
GPG public key from http://www.iki.fi/Tapio.Lehtonen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20041024/86af6c97/attachment.bin
Geert Stappers
2004-10-24 08:04:20 UTC
Permalink
Post by Tapio Lehtonen
Post by malk
Are you using a TFTP server that supports TSIZE ?? This assumes you're using
pxelinux from H. Peter Anvin's syslinux project.
Stock debian TFTP server doesn't support TSIZE (sarge anyway).
Grab tftp-hpa from http://www.kernel.org/pub/software/network/tftp
Does this mean that stock Debian can not be used as FAI server?
It does mean that you have to `apt-get install tftpd-hpa`
Post by Tapio Lehtonen
Surely FAI can run on Debian server and install Debian clients?
Yes, but only after the proper setup (as allways with computers ;- )


Geert Stappers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20041024/850ddba1/attachment.bin
Andrea Iacopini
2004-10-27 12:00:49 UTC
Permalink
Guys,
my headache with tftp still continue.
Again with TFTP, when my fai client tries to download kernel via tftp I have
PXE-E32: TFTP open timeout error.
My inetd.conf, regarding to tftp is:

tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -r
blksize -s /boot/fai -u fai

Anyway when I run ps -edaf on my fai server I can't see tftp daemon running:
I know that tftp daemon is invoked from inetd when it needs,
again monitoring my fai server when my fai clients tries to boot I can't
see nothing

aracne:/# while true; do ps -edaf | grep tftp; sleep 5; done;
root 320 224 0 15:55 pts/0 00:00:00 grep tftp
root 335 224 0 15:55 pts/0 00:00:00 grep tftp

So i decided to run tftp via in.tftp directly from command line.

aracne:/# dpkg -s tftpd-hpa
Package: tftpd-hpa
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 96
Maintainer: Oliver M. Bolzer <oliver at debian.org>
Source: tftp-hpa
Version: 0.28-2
Provides: tftpd
Depends: libc6 (>= 2.2.4-4), libwrap0
Conflicts: tftpd
Description: HPA's tftp server
This is a tftp server derived from OpenBSD tftp with some
extra options added. It is useful if you want to use the
PXE protocol which has some non-standard requirements for
tftp.

aracne:/# dpkg -L tftpd-hpa
/.
/usr
/usr/sbin
/usr/sbin/in.tftpd
/usr/share
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/in.tftpd.8.gz
/usr/share/doc
/usr/share/doc/tftpd-hpa
/usr/share/doc/tftpd-hpa/README
/usr/share/doc/tftpd-hpa/README.security
/usr/share/doc/tftpd-hpa/copyright
/usr/share/doc/tftpd-hpa/changelog.gz
/usr/share/doc/tftpd-hpa/changelog.Debian.gz
/usr/share/man/man8/tftpd.8.gz

and finally

aracne:/# in.tftpd &

in my messages i see

Oct 27 15:58:00 aracne in.tftpd[351]: recvfrom: Socket operation on
non-socket

What a shame!!

Please help...

Regards,

A.
Geert Stappers
2004-10-27 12:44:55 UTC
Permalink
Post by Andrea Iacopini
Guys,
my headache with tftp still continue.
Again with TFTP, when my fai client tries to download kernel via tftp I have
PXE-E32: TFTP open timeout error.
<snip/>
Post by Andrea Iacopini
and finally
aracne:/# in.tftpd &
in my messages i see
Oct 27 15:58:00 aracne in.tftpd[351]: recvfrom: Socket operation on
non-socket
What a shame!!
PEBKAC
Post by Andrea Iacopini
Please help...
tw66:~
#
tw66:~
# hostname
tw66
tw66:~
# in.tftpd &
[1] 4077
tw66:~
# tail -1 /var/log/syslog
Oct 27 14:25:38 tw66 tftpd[4077]: recvfrom: Socket operation on
non-socket
[1]+ Exit 1 in.tftpd
tw66:~
# grep tftp /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd
/usr/sbin/in.tftpd /boot
tw66:~
# ls /boot/silo.conf
/boot/silo.conf
tw66:~
# ls ./silo.conf
ls: ./silo.conf: No such file or directory
tw66:~
# tftp tw66
tftp> get silo.conf
Received 373 bytes in 0.1 seconds
tftp> quit
tw66:~
# ls ./silo.conf
./silo.conf
tw66:~
#


Geert Stappers
Geert Stappers
2004-10-27 13:10:26 UTC
Permalink
Post by Geert Stappers
Post by Andrea Iacopini
Guys,
my headache with tftp still continue.
Again with TFTP, when my fai client tries to download kernel via tftp I have
PXE-E32: TFTP open timeout error.
<snip/>
Post by Andrea Iacopini
and finally
aracne:/# in.tftpd &
in my messages i see
Oct 27 15:58:00 aracne in.tftpd[351]: recvfrom: Socket operation on
non-socket
What a shame!!
PEBKAC
[1]
Post by Geert Stappers
Post by Andrea Iacopini
Please help...
tw66:~
#
tw66:~
# hostname
tw66
All of this happens on the same host, named 'tw66'
Post by Geert Stappers
tw66:~
# in.tftpd &
[1] 4077
tw66:~
# tail -1 /var/log/syslog
Oct 27 14:25:38 tw66 tftpd[4077]: recvfrom: Socket operation on
non-socket
[1]+ Exit 1 in.tftpd
Yes, that is the very same error as you got.
Post by Geert Stappers
tw66:~
# grep tftp /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd
/usr/sbin/in.tftpd /boot
Note the "/boot"
Post by Geert Stappers
tw66:~
# ls /boot/silo.conf
/boot/silo.conf
There is a /boot/silo.conf
Post by Geert Stappers
tw66:~
# ls ./silo.conf
ls: ./silo.conf: No such file or directory
There is no file silo.conf in the current directory
Post by Geert Stappers
tw66:~
# tftp tw66
tftp> get silo.conf
Received 373 bytes in 0.1 seconds
tftp> quit
Fetched the file silo.conf with a tftp client program
Post by Geert Stappers
tw66:~
# ls ./silo.conf
./silo.conf
Now there is a file silo.conf in the current directory
Post by Geert Stappers
tw66:~
#
Geert Stappers
[1] Problem Exists Between Keyboard And Chair.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20041027/f6d37815/attachment.bin
Andrea Iacopini
2004-10-27 13:13:49 UTC
Permalink
aracne:/# hostname
aracne
aracne:/# in.tftpd &
[1] 399
aracne:/# tail -1 /var/log/messages
Oct 27 17:11:16 aracne in.tftpd[399]: recvfrom: Socket operation on
non-socket
[1]+ Exit 74 in.tftpd
aracne:/# grep tftp /etc/inetd.conf
tftp dgram udp wait root /usr/sbin/tcpd
/usr/sbin/in.tftpd -r blksize -s /boot/fai
aracne:/# ls -la /boot/fai/
total 1992
drwxrwxrwx 3 fai nogroup 4096 Oct 27 17:05 .
drwxr-xr-x 3 root root 4096 Oct 15 12:18 ..
-rwxrwxrwx 1 fai nogroup 1005056 Oct 18 00:21 installimage
lrwxrwxrwx 1 fai nogroup 15 Oct 16 13:19 linux ->
vmlinuz-install
-rw-r--r-- 1 root root 0 Oct 27 17:07 merda
-rwxrwxrwx 1 fai nogroup 9952 Oct 18 00:21 pxelinux.0
drwxrwxrwx 2 fai nogroup 4096 Oct 23 20:05 pxelinux.cfg
-rw-r--r-- 1 fai nogroup 999030 Oct 17 23:58 vmlinuz-install
aracne:/# pwd
/
aracne:/# ls -la ./installimage
ls: ./installimage: No such file or directory
aracne:/# tftp aracne
tftp> get installimage
Received 1012504 bytes in 0.3 seconds
tftp> quit
aracne:/# ls -la ./installimage
-rw-r--r-- 1 root root 1005056 Oct 27 17:12 ./installimage
aracne:/#

IT Doesn't work again... :(

A.


----- Original Message -----
From: "Geert Stappers" <stappers at stappers.nl>
To: "Andrea Iacopini" <aiacopini at steponweb.it>; <linux-fai at uni-koeln.de>
Sent: Wednesday, October 27, 2004 2:44 PM
Subject: Re: TFTP Timeout
Post by Geert Stappers
Post by Andrea Iacopini
Guys,
my headache with tftp still continue.
Again with TFTP, when my fai client tries to download kernel via tftp I have
PXE-E32: TFTP open timeout error.
<snip/>
Post by Andrea Iacopini
and finally
aracne:/# in.tftpd &
in my messages i see
Oct 27 15:58:00 aracne in.tftpd[351]: recvfrom: Socket operation on
non-socket
What a shame!!
PEBKAC
Post by Andrea Iacopini
Please help...
tw66:~
#
tw66:~
# hostname
tw66
tw66:~
# in.tftpd &
[1] 4077
tw66:~
# tail -1 /var/log/syslog
Oct 27 14:25:38 tw66 tftpd[4077]: recvfrom: Socket operation on
non-socket
[1]+ Exit 1 in.tftpd
tw66:~
# grep tftp /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd
/usr/sbin/in.tftpd /boot
tw66:~
# ls /boot/silo.conf
/boot/silo.conf
tw66:~
# ls ./silo.conf
ls: ./silo.conf: No such file or directory
tw66:~
# tftp tw66
tftp> get silo.conf
Received 373 bytes in 0.1 seconds
tftp> quit
tw66:~
# ls ./silo.conf
./silo.conf
tw66:~
#
Geert Stappers
Holger Schurig
2004-10-27 13:58:35 UTC
Permalink
Post by Andrea Iacopini
aracne:/# in.tftpd &
[1] 399
aracne:/# tail -1 /var/log/messages
Oct 27 17:11:16 aracne in.tftpd[399]: recvfrom: Socket operation on
non-socket
[1]+ Exit 74 in.tftpd
aracne:/# grep tftp /etc/inetd.conf
tftp dgram udp wait root /usr/sbin/tcpd
When you enter in.tftp into /etc/inetd.conf, then you send a HUP to inetd
and let it call it. In this case, you don't call it manually.

Also, the tftp entry you grepped is without relevance. It calls tcpd, which
is from tcpwrappers. But it doesn't call in.tftpd in turn. So maybe you
uncomment that line.


Please post you next message only after you read

man in.tftpd
man inetd
man inetd.conf

You should also read section 3.2 in the FAI manual, and do it as described there.


Whenever you do in.tftpd & you do something wrong. PERIOD.
Geert Stappers
2004-10-27 14:11:30 UTC
Permalink
On Wed, Oct 27, 2004 at 03:13:49PM +0200, Andrea Iacopini wrote:
<snip summary="demonstration of working TFTP server"/>
Post by Andrea Iacopini
IT Doesn't work again... :(
"IT" is the combination of a server and a client.
Meanwhile you known that the TFTP server works fine.
Post by Andrea Iacopini
A.
----- Original Message -----
From: "Geert Stappers" <stappers at stappers.nl>
To: "Andrea Iacopini" <aiacopini at steponweb.it>; <linux-fai at uni-koeln.de>
Sent: Wednesday, October 27, 2004 2:44 PM
Subject: Re: TFTP Timeout
Post by Andrea Iacopini
Guys,
my headache with tftp still continue.
<snip/>

Ooh, it is a top quoter.
When it[1] has shown, that it understands http://learn.to/quote
then it is ready for further education.


Geert Stappers
(currently cooling down)


[1] some live form
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20041027/ca0e166b/attachment.bin
Holger Schurig
2004-10-27 13:21:41 UTC
Permalink
Post by Andrea Iacopini
Oct 27 15:58:00 aracne in.tftpd[351]: recvfrom: Socket operation on
non-socket
in.tftpd is written so that it is normally run from inetd, via /etc/inetd.conf.

When you call in.tftpd from the command line, you have to add the -l command
line switch, as "man in.tftpd" will tell you:

OPTIONS
-l Run the server in standalone (listen) mode, rather than run from inetd. ...


When called via inetd, the stdin is not a terminal, but a socket (the one that
inetd opened), so in.tftpd can do socket operations on stdin.

When you call it from commandline, without -l, then stdin is a tty. And tty's won't
allow socket operations.
malk
2004-10-27 14:43:04 UTC
Permalink
From everything I've read, it seems it's possible the machine
trying to pxeboot might not be contacting the right box for
tftp. Is your tftp server also your DHCP server? The pxeboot
box will contact the dhcp server to tftp the file down provided
the DHCP server has provided the pxelinux.0 file in the DHCP
offer/ack. (maybe theres a DHCP option you could use to
direct the client to a different tftp server, but in my
setup I just let my dhcp server also handle tftp)

Also -- make sure /etc/hosts.allow and hosts.deny doesn't
inhibit anything when tftp is called from inetd w/ tcpd
(tcp wrappers)

I also find it helpful when you sniff with ethereal and watch
for the TFTP read request and any negative responses from the
TFTP server. If you only see a TFTP read request and no
response or an ICMP port unreachable, then even though your
tftp seems to work w/ Geert's local tests below, it still
doesn't work over the network. Might be worthwhile doing
Geert's tests w/ two separate boxes to make sure it's really
working.

Sorry you haven't been able to figure this out.

-Eric Malkowski
--fOHHtNG4YXGJ0yqR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
<snip summary=3D"demonstration of working TFTP server"/>
Post by Andrea Iacopini
IT Doesn't work again... :(
"IT" is the combination of a server and a client.
Meanwhile you known that the TFTP server works fine.
Post by Andrea Iacopini
=20
A.
=20
=20
----- Original Message -----=20
From: "Geert Stappers" <stappers at stappers.nl>
To: "Andrea Iacopini" <aiacopini at steponweb.it>; <linux-fai at uni-koeln.de>
Sent: Wednesday, October 27, 2004 2:44 PM
Subject: Re: TFTP Timeout
=20
=20
Post by Andrea Iacopini
Guys,
my headache with tftp still continue.
<snip/>
Ooh, it is a top quoter.
When it[1] has shown, that it understands http://learn.to/quote
then it is ready for further education.
Geert Stappers
(currently cooling down)
[1] some live form
--fOHHtNG4YXGJ0yqR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBf6ySOSINbgwa/7sRArtoAJ4oQ/YrKf0PLJNLQ/zqPigSWwgoqwCfQES5
EJxlKWKvaX3WI8dkkPkpM8Q=
=Zp7E
-----END PGP SIGNATURE-----
--fOHHtNG4YXGJ0yqR--
Loading...