|
Home > Archive > Unix administration > June 2005 > tftp server zero-ed files sizes ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
tftp server zero-ed files sizes ?
|
|
|
| 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 zeroed byte.
Weird behavior that I couldn't seem to google for: anyone had a fix or know what's wrong ?
Thanks.
| |
| Doug Freyburger 2005-06-21, 5: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 byte.
What command lines? This appears to be pilot error.
| |
|
| 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 and 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 after a put command)
I'll capture and post a complete log tomorrow for anyone who could take a look.
Thanks for your assistance.
| |
|
|
|
|
|