tftp server zero-ed files sizes ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > tftp server zero-ed files sizes ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    tftp server zero-ed files sizes ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-05 10:53 PM

Hi, I have a weird problem with tftp looking for some pointers:
Running : 2.4.21-27.0.1.EL   Linux
/etc/xinetd.d/tftp content:
service tftp
{
disable = no
socket_type             = dgram
protocol                = udp
wait                    = yes
user                    = root
server                  = /usr/sbin/in.tftpd
server_args             = -c -s /tftpboot
per_source              = 11
cps                     = 100 2
flags                   = IPv4
}
rpm -q tftp : tftp-0.40-1

When ever I try to tftp file to it, the file will last a few secs,
and then goes from what ever sizes it is to 0 bytes.
chkconfig --list showed only 1 instance of tftp: on

If I try to put the file twice:
tftp server
tftp> put a.file
tftp> put a.file
then the file will stick (some of the time)

If I tried to put multiple files: a, b ,c at the same time in order,
the content of a usually is from b, the content of b is from c, and c is zer
oed byte.

Weird behavior that I couldn't seem to google for: anyone had a fix or know 
what's wrong ?
Thanks.






[ Post a follow-up to this message ]



    Re: tftp server zero-ed files sizes ?  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-05 10:53 PM

unknown@shadow.homeunix.org wrote:
>
> When ever I try to tftp file to it, the file will last a few secs,
> and then goes from what ever sizes it is to 0 bytes.

What are the permissions on the directory /tftpboot?

> chkconfig --list showed only 1 instance of tftp: on
>
> If I try to put the file twice:
> tftp server
> tftp> put a.file
> tftp> put a.file
> then the file will stick (some of the time)

Some of the time?  TFTP uses UDP and it has no error correction
built in.  How is your network connection?  If it is over a
high latency link the line may be dropping packets.

> If I tried to put multiple files: a, b ,c at the same time in order,
> the content of a usually is from b, the content of b is from c, and c is zeroed by
te.

What command lines?  This appears to be pilot error.






[ Post a follow-up to this message ]



    Re: tftp server zero-ed files sizes ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-22-05 01:50 AM

Doug Freyburger <dfreybur@yahoo.com> wrote:
> unknown@shadow.homeunix.org wrote: 
>
> What are the permissions on the directory /tftpboot?

/tftpboot is chmod 777
 
>
> Some of the time?  TFTP uses UDP and it has no error correction
> built in.  How is your network connection?  If it is over a
> high latency link the line may be dropping packets.
>
some of the time...meaning that depend on how "fast" i put the file and have
 the
prompt back the file content might or might not stay.
The network link has no errors that I could find.
Files sizes doesn't appear to matter - 700 bytes to 33M - it will moved and 
showed
under ls -l for a few secs...and then files sizes goes back to zero.
It's almost as if the -c function doesn't work - yet if I pre-touch file.e a
nd then
put file.e, it will still goes to zero.
 
> What command lines?  This appears to be pilot error.
>
command lines I used as follow:
$ tftp server
tftp> put file.a
tftp> put file.b
tftp> put file.c
(there might be some reports back from the server as to how long it tooks af
ter a put command)

I'll capture and post a complete log tomorrow for anyone who could take a lo
ok.
Thanks for your assistance.





[ Post a follow-up to this message ]



    Re: tftp server zero-ed files sizes ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-22-05 10:57 PM

unknown@shadow.homeunix.org wrote:[vbcol=seagreen]
> Doug Freyburger <dfreybur@yahoo.com> wrote: 
http://lists.olug.org/pipermail/olu...May/005444.html
is essentially the same problem I am seeing..but no resolution ?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:47 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register