LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2018, 08:44 AM   #1
bupthebroker
LQ Newbie
 
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
tftp transfer fails with "Transfer timed out." exception


Hi,
i am trying to run a tftp server on my Mint 17.2 but there are a few problems:

1) cat /etc/xinetd.d/tftp
Code:
service tftp
{
protocol        = udp
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}
now GET works but PUT gives an error: "Error code 2: Access violation" (for new files, if a file with the same name already exists then its okay)

2) cat /etc/xinetd.d/tftp
Code:
service tftp
{
protocol        = udp
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -c /tftpboot
disable         = no
}
now GET and PUT both time out with the following message: "Transfer timed out."

What could be the problem and how to resolve? I also tried the -s and -v args but no luck.

Thanks!
 
Old 05-10-2018, 02:47 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Hello and welcome to LQ.

Not sure if a command line tftp is wrong when it refuses to create a file. Seems that is a long ago issue. Could be some other program would work but a lot of times one must create a file first with touch.

It may be that you have to issue the -c argument in the tftp statement ?? Check with man tftp for your version of tftp to be sure of the correct arguments/switches.
 
Old 05-11-2018, 04:09 AM   #3
bupthebroker
LQ Newbie
 
Registered: May 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,
i also read that some people have been struggling with it. The problem is that i do not know which application in the build calls this and cannot change the tftp statement itself. Neither do i know which files to create beforehand with touch. I will take any known workaround if someone knows of one.
 
Old 05-11-2018, 10:13 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think you have to explain that last post a bit more. You're saying, some unknown application uses tftp? You don't know what this application is sending or receiving via tftp? But you tried tftp manually and reported the results here?

It looks like the permissions on the server might be incorrectly set. tftpboot should have 777 permissions (rwxrwxrwx).
 
Old 05-15-2018, 02:33 PM   #5
bupthebroker
LQ Newbie
 
Registered: May 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,
777 is set.

These are the results of my manual tftp tests indeed. In the real workflow i get the same errors. I cannot change the tftp statement itself there since this is inside some legacy binary somehow part of a huge procedure. I can play around with permissions and config files but so far no luck.

Could someone please confirm that it is indeed possible to create files with tftp with the -c option in the /etc/xinetd.d/tftp file?
 
  


Reply



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
TFTP: Transfer timed out. ramseyrt Linux - Networking 4 03-29-2013 05:56 AM
DVD automount fails with "CDROM not ready yet" and "unaligned transfer" erica Linux - Hardware 1 12-14-2009 07:59 PM
TFTP not working , Transfer timed out SinghJJ Linux - General 1 08-19-2009 11:14 AM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
Data transfer online is slow "at times" or "stops at times" Balarabay1 SUSE / openSUSE 14 04-30-2006 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 AM.

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