PDA

View Full Version : tftp server test fail


papunizer
8th February 2006, 08:12
Hi,

I'm stuck at the tftp server test. I'm clueless on what to do to solve this. Can someone advise me on how to solve this?

[root@imageserver root]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer
# protocol. The tftp protocol is often used to boot diskless
# workstations, download configuration files to network-aware printers,
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s y -r blksize
disable = no
}
[root@imageserver root]# tftp
tftp> connect
(to) localhost
tftp> status
Connected to localhost.localdomain.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> quit
[root@imageserver root]# si_mkbootserver
This script may modify the following files:
/etc/services
/etc/inetd.conf
/etc/xinetd.d/tftp
You should already have a kernel and ramdisk to use.
Do you wish to continue (y/[n])? y
Ok, continuing...
Where should tftpd serve files from ([/tftpboot]? y
Checking for a tftp server... found.
Checking if tftp server is H. Peter Anvin's tftp server... yup - right on!
Checking for a running inetd... Not found.
Checking for a running xinetd... 3864.
Looking for update-inetd... not found.
/etc/xinetd.d/tftp does not already exist, so not backing it up.
Sending SIGUSR2 to xinetd...
done.
Looking for a tftp client... found.
Checking for loopback interface... up.
Does tftp server work... no.
I couldn't tftp a test file from localhost
tftp server test failed.
[root@imageserver root]#

falko
8th February 2006, 11:35
Did you run this as root?
Please post the output of ls -la /etc/xinetd.d/tftp

papunizer
9th February 2006, 04:26
I tried creating a file in the /tftpboot directory to test a tftp transfer but it didnt work and now si_mkbootserver gives another output which also fails the test. By the way, i'm running on Red Hat 9. Please Advise.

[root@imageserver root]# ls -la /etc/xinetd.d/tftp
-rw-r--r-- 1 root root 606 Feb 9 10:19 /etc/xinetd.d/tftp

[root@imageserver root]# si_mkbootserver
This script may modify the following files:
/etc/services
/etc/inetd.conf
/etc/xinetd.d/tftp
You should already have a kernel and ramdisk to use.
Do you wish to continue (y/[n])? y
Ok, continuing...
Where should tftpd serve files from ([/tftpboot]? y
Checking for a tftp server... found.
Checking if tftp server is H. Peter Anvin's tftp server... yup - right on!
Checking for a running inetd... Not found.
Checking for a running xinetd... 3869.
Looking for update-inetd... not found.
/etc/xinetd.d/tftp does not already exist, so not backing it up.
Sending SIGUSR2 to xinetd...
done.
Looking for a tftp client... found.
Checking for loopback interface... up.
Does tftp server work... couldn't tell.
Unable to come up with an unused filename
tftp server test failed.

papunizer
13th February 2006, 10:42
yup i ran it as root...

falko
13th February 2006, 23:35
Please post the output of netstat -tap

papunizer
14th February 2006, 05:29
forgot to mention that i'm running on red hat 9


[root@imageserver root]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 *:32768 *:* LISTEN
3756/
tcp 0 0 localhost.localdo:32769 *:* LISTEN
3877/xinetd
tcp 0 0 *:rsync *:* LISTEN
3794/rsync
tcp 0 0 localhost.localdoma:783 *:* LISTEN
3927/spamd -d -c -a
tcp 0 0 *:sunrpc *:* LISTEN
3737/
tcp 0 0 *:x11 *:* LISTEN
4180/X
tcp 0 0 *:ssh *:* LISTEN
3862/sshd
tcp 0 0 localhost.localdoma:ipp *:* LISTEN
4535/cupsd
tcp 0 0 localhost.localdom:smtp *:* LISTEN
3903/
tcp 0 0 localhost.localdo:48970 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48971 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48968 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48969 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48962 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48963 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48960 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48961 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48966 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48967 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48964 localhost.localdoma:ipp TIME_WAIT
-
tcp 0 0 localhost.localdo:48965 localhost.localdoma:ipp TIME_WAIT
-
[root@imageserver root]#

falko
14th February 2006, 10:08
I don't see FTP running. Maybe that causes your problem.

papunizer
15th February 2006, 11:45
i started the ftp service but it still says the same thing.. anything else i could try? please advise...

falko
15th February 2006, 21:45
What exactly did you do to start FTP?

crichell
2nd August 2006, 22:14
I'm having the same problem:

sudo mkbootserver
This script may modify the following files:
/etc/services
/etc/inetd.conf
/etc/xinetd.d/tftp
You should already have a kernel and ramdisk to use.
Do you wish to continue (y/[n])? y
Ok, continuing...
Where should tftpd serve files from ([/tftpboot]?
Checking for a tftp server... found.
Checking if tftp server is H. Peter Anvin's tftp server... yup - right on!
Checking for a running inetd... 3687.
Checking for a running xinetd... Not found.
Looking for update-inetd... found.
Updating inetd.conf... done.
Sending a SIGHUP to inetd (pid 3687)... done.
Looking for a tftp client... found.
Checking for loopback interface... up.
Does tftp server work... no.
I couldn't tftp a test file from localhost
tftp server test failed.

sudo netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:rsync *:* LISTEN 3719/rsync
tcp 0 0 *:ftp *:* LISTEN 3687/inetd
tcp6 0 0 *:rsync *:* LISTEN 3719/rsync
tcp6 0 0 *:ssh *:* LISTEN 3713/sshd
tcp6 0 0 ::ffff:10.120.150.2:ssh ::ffff:10.120.150:39732 ESTABLISHED3839/sshd: imaging


Running Ubuntu Dapper 6.06
SystemImager 3.2.3-3

Any suggestions? Thanks

falko
3rd August 2006, 17:14
Is /sbin/mkbootserver a plain text file? Can you search for the area that contains the string I couldn't tftp a test file from localhost? Does it look like this?

diff "./`basename $TMPFILE`" "$TMPFILE" 1> /dev/null 2> /dev/null
if [ $? -ne 0 ]; then
echo "no."
echo "I couldn't tftp a test file from localhost"
rm -f $TMPFILE
return 1
fi

crichell
3rd August 2006, 18:20
Yes it does - is Ubuntu located at /usr/sbin/mkbootserver

diff "./`basename $TMPFILE`" "$TMPFILE" 1> /dev/null 2> /dev/null
if [ $? -ne 0 ]; then
echo "no."
echo "I couldn't tftp a test file from localhost"
rm -f $TMPFILE
return 1
fi

crichell
3rd August 2006, 23:29
the problem was fixed by:

sudo apt-get install libstdc++2.10-glibc2.2

Reboot, run script and it's cool

bond_fedora
28th January 2008, 05:11
Hi, I having exactly the same issue, that is tftp server is running in my case but I am unable to run the configuration script. Please help me with the solution if one exists. Thank you

falko
29th January 2008, 20:04
Any errors in the logs?

jscan1
20th June 2008, 18:49
I am having the same issue here.
What logs do i check?
(newbie!)

falko
21st June 2008, 11:32
The log files are in /var/log. I'd check all log files there.