LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2015, 03:38 PM   #1
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Rep: Reputation: Disabled
tftp server not function in linux 5.5 on PXE boot


Hi All,

I am trying to find a solution to fix my tftp server issue on PXE boot

While trying to PXE boot the system my PXE boot failed with below error and netstat -an | fgrep -w 69 gives empty output.

Any thoughts why /usr/sbin/in.tftpd is not executable ?


/var/log/messages

15/1/25@12:44:45: DEBUG: 20472 {handle_includedir} Reading included configuration file: /etc/xinetd.d/tcpmux-server [file=/etc/xinetd.d/tcpmux-server] [line=13]
15/1/25@12:44:45: DEBUG: 20472 {handle_includedir} Reading included configuration file: /etc/xinetd.d/tftp [file=/etc/xinetd.d/tftp] [line=68]
15/1/25@12:44:45: ERROR: 20472 {server_parser} Server /usr/sbin/in.tftpd is not executable [file=/etc/xinetd.d/tftp] [line=12]
15/1/25@12:44:45: ERROR: 20472 {identify_attribute} Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/tftp] [line=12]
15/1/25@12:44:45: DEBUG: 20472 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-dgram [file=/etc/xinetd.d/time-dgram] [line=18]
15/1/25@12:44:45: DEBUG: 20472 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-stream [file=/etc/xinetd.d/time-stream] [line=67]

config:

# 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 /nobackup/tftpboot -v -B 8192
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}



debug :


xinetd -d
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/backupsshd [file=/etc/xinetd.conf] [line=49]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen-dgram [file=/etc/xinetd.d/chargen-dgram] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen-stream [file=/etc/xinetd.d/chargen-stream] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/cvs [file=/etc/xinetd.d/cvs] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime-dgram [file=/etc/xinetd.d/daytime-dgram] [line=19]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime-stream [file=/etc/xinetd.d/daytime-stream] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/discard-dgram [file=/etc/xinetd.d/discard-dgram] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/discard-stream [file=/etc/xinetd.d/discard-stream] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo-dgram [file=/etc/xinetd.d/echo-dgram] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo-stream [file=/etc/xinetd.d/echo-stream] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/eklogin [file=/etc/xinetd.d/eklogin] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/ekrb5-telnet [file=/etc/xinetd.d/ekrb5-telnet] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/gssftp [file=/etc/xinetd.d/gssftp] [line=14]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/klogin [file=/etc/xinetd.d/klogin] [line=14]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/krb5-telnet [file=/etc/xinetd.d/krb5-telnet] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/kshell [file=/etc/xinetd.d/kshell] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/rmcp [file=/etc/xinetd.d/rmcp] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/rsync [file=/etc/xinetd.d/rsync] [line=34]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/tcpmux-server [file=/etc/xinetd.d/tcpmux-server] [line=13]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/tftp [file=/etc/xinetd.d/tftp] [line=68]
15/1/25@13:13:48: ERROR: 21103 {server_parser} Server /usr/sbin/in.tftpd is not executable [file=/etc/xinetd.d/tftp] [line=12]
15/1/25@13:13:48: ERROR: 21103 {identify_attribute} Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/tftp] [line=12]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-dgram [file=/etc/xinetd.d/time-dgram] [line=18]
15/1/25@13:13:48: DEBUG: 21103 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-stream [file=/etc/xinetd.d/time-stream] [line=67]
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing chargen
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing chargen
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing cvspserver
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing daytime
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing daytime
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing discard
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing discard
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing echo
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing echo
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing eklogin
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing telnet
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing ftp
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing klogin
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing telnet
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing kshell
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing asf-rmcp
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing asf-secure-rmcp
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing rsync
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing tcpmux
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing time
15/1/25@13:13:48: DEBUG: 21103 {remove_disabled_services} removing time
15/1/25@13:13:48: ERROR: 21103 {fix_server_argv} Must specify a server in tftp
Service defaults
Instances = 50
Groups = yes
umask = 2
CPS = max conn:50 wait:10
PER_SOURCE = 10
Bind = All addresses.
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = daemon, level = info
Log_on_success flags = HOST DURATION EXIT PID
Log_on_failure flags = HOST

Service configuration: backupsshd
id = backupsshd
flags = IPv4
type = UNLISTED
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 1022
wait = no
user = 0
Groups = yes
umask = 2
PER_SOURCE = 10
Bind = All addresses.
Server = /usr/sbin/sshd
Server argv = sshd -i
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = daemon, level = info
Log_on_success flags = HOST DURATION EXIT PID
Log_on_failure flags = HOST

15/1/25@13:13:48: ERROR: 21103 {activate_normal} bind failed (Address already in use (errno = 98)). service = backupsshd
15/1/25@13:13:48: ERROR: 21103 {cnf_start_services} Service backupsshd failed to start and is deactivated.
15/1/25@13:13:48: DEBUG: 21103 {cnf_start_services} mask_max = 0, services_started = 0
15/1/25@13:13:48: CRITICAL: 21103 {init_services} no services. Exiting...
 
Old 01-27-2015, 02:53 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
What Linux distribution do you use?
 
Old 01-27-2015, 07:50 PM   #3
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
tftp server not function in linux 5.5 on PXE boot

Below is my distribution.

Linux version 2.6.18-194.8.1.el5 (mockbuild@x86-006.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jun 23 10:52:51 EDT 2010

Below is the error i am seeing from the var log messages:
xinetd[16763]: START: tftp pid=16811 from=1.x.x.x
in.tftpd[16811]: too many -s directories
xinetd[16763]: EXIT: tftp status=64 pid=16811 duration=0(sec)


config:

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = v -s /nobackup/tftpboot -4 -c -B 8192 --verbose
per_source = 11
cps = 100 2
flags = IPv4
}
 
Old 01-28-2015, 03:17 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
Let's fix tftp server starting issue at first.
1)Check whether tftp server is installed, rpm -q tftp-server
2)tftp is an xinetd-based service; start it with the following commands:
Run following commands
/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 tftp on
This command configures the tftp and xinetd services to immediately turned on and also configures them to start at boot time in runlevels 3, 4, and 5.
3)Restart xinetd or reboot the machine.
 
Old 01-29-2015, 10:41 AM   #5
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
tftp server not function in linux 5.5 on PXE boot

Hi ,

Requested steps are already done and still it is not working .Let me know on your further thoughts

rpm -q tftp-server
tftp-server-0.49-2.x86_64

chkconfig --list | grep tftp
tftp: on

chkconfig --list | grep xinetd
xinetd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd based services:
 
Old 01-29-2015, 02:32 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
Quote:
netstat -an | fgrep -w 69 gives empty output.
/usr/sbin/in.tftpd is not executable ?
If above description is true, the tftp-server package is wrong, tftp executeable file should be /usr/bin/tftp.
How do you install tftp-server, using yum or something else?
 
Old 01-30-2015, 12:44 AM   #7
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi ,

I can get output from netstat and i have used yum install tftp-server.

netstat -an | fgrep -w 69
udp 0 0 0.0.0.0:69 0.0.0.0:*
 
Old 01-30-2015, 02:12 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
Good. That means tftp server is up and running. Next thing make sure tftp server configuration is fine.
Install tftp client in another machine and download a file through tftp to make sure tftp server functionality is fine.
 
Old 01-30-2015, 07:09 PM   #9
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi ,

Hi ,

I tried copying the files but it complains about file not found though file exist.


Trying to connect to tftp server......
Connection to Server Established.
TFTP get operation failed:File not found

you could see the var/log/messages
in.tftpd[14826]: RRQ from x.x.x.x filename nobackup/tftpboot/test/abc.txt
sending NAK (1, File not found) to x.x.x.x


config:
# 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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -s /nobackup/tftpboot -4 -c -B 8192 --verbose
per_source = 11
cps = 100 2
flags = IPv4
 
Old 02-02-2015, 02:38 PM   #10
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
The tftp configuration has problem. Let's make pure TFTP server working at first. PXE boot request more configuration.
After installing, just open /etc/xinetd.d/tftp file using any text editor and make "disable = no".
Testing TFTP server.
 
Old 02-02-2015, 11:31 PM   #11
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
this is the configuration file i have and still seeing same issue.

{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -s /nobackup/tftpboot -4 -c -B 8192 --verbose
per_source = 11
cps = 100 2
flags = IPv4
}
 
Old 02-03-2015, 03:38 PM   #12
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
Your configuration include PXE configuration, more complicated. We need verify one by one.
Don't use this complicated configuration file at first.
After installing, just open /etc/xinetd.d/tftp file using any text editor and make "disable = no".
Copy a file into /tftpboot/ and download it.
 
Old 02-09-2015, 11:55 AM   #13
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi

I tried removing and keeping simple the config still the same error as file not found and also PXE boot failed PXE-E23: Client received TFTP error from server

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /nobackup/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
 
Old 02-09-2015, 03:33 PM   #14
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,861

Rep: Reputation: 162Reputation: 162
If using tftp client to retrieve a file, is it Ok?
For your TFTP server configuration, copy a file to /nobackup/tftpboot directory and then retrieve the file.
 
Old 02-09-2015, 11:03 PM   #15
henry1015
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi ,

I am trying to understand why there is tftp-client failure while PXE boot the system.I have created the tftpboot dir under nobackup and trying to get file from that dir.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to get pxe boot working, but fail when setting up tftp server nass Slackware 7 08-03-2012 04:38 AM
DOS - netboot (PXE booting) from Linux TFTP server Bhagyesh Linux - Newbie 1 12-04-2009 08:59 PM
HELP with Kickstart Fedora 10 NFS TFTP PXE boot server brendon_mitre Fedora 2 02-25-2009 09:53 AM
PXE Boot issues - TFTP? xiaodown Linux - Server 8 07-08-2008 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration