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]#
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.
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]#
i started the ftp service but it still says the same thing.. anything else i could try? please advise...
I'm having the same problem: Code: 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. [B]Does tftp server work... no. I couldn't tftp a test file from localhost tftp server test failed.[/B] Code: 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
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? Code: 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
Yes it does - is Ubuntu located at /usr/sbin/mkbootserver Code: 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
the problem was fixed by: Code: sudo apt-get install libstdc++2.10-glibc2.2 Reboot, run script and it's cool
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