You may get the below error code when attempting to transfer files with TFTP.
Error code 1: File not found
If you do get this error the issue is likely that the file does not exist on the server you are trying to place the file on using TFTP. If you are on a linux server you can just touch the file name on the TFTP server before transferring the actual file via TFTP.
TFTP: Trivial File Transfer Protocol
Below is an example of a failed file transfer attempt with TFTP followed by a successful file transfer using TFTP.
- [root@centos-server ~]# tftp -v 192.168.1.251 -c put test-tftp-file
- Connected to 192.168.1.251 (192.168.1.251), port 69
- putting test-tftp-file to 192.168.1.251:test-tftp-file [netascii]
- Error code 1: File not found
Now after creating the file on the remote TFTP server this is what a TFTP transfer would look like.
- [root@narfonix ~]# tftp -v 192.168.1.251 -c put test-tftp-file
- Connected to 192.168.1.251 (192.168.1.251), port 69
- putting test-tftp-file to 192.168.1.251:test-tftp-file [netascii]
- Sent 14 bytes in 0.0 seconds [5442 bit/s]
If the file does exist on the remote server and you are getting this error make sure you double check your spelling. If that still does not work make sure you you follow the same capitalization as the remote file.
Similarly, I get file not found trying to tftp download cisco ios to my router. Problem is I am in ROMMON mode and can’t “touch” the flash directory to make a file name c2600-etc.bin
Two tftp servers fale the same way to deliver the ios.
bkucera: If you specify the type of router, type of TFTP server, specific command you are using on the router,etc. then I can hopefully help to provide a solution.
Hi alex,
i am getting tftp error: file not found while booting the client my dhcp is on windows server 2003 and tftp server is on fedora 10.
pls help me..
krishna
check the /etc/xinetd.d/tftp file..
change:
server_args = -s /tftpboot
to:
server_args = -c -s /tftpboot
“-c” allows the creation of new files.
Hello Nick,
Great addition. Thanks for adding.
Hi Nick,
i am getting tftp error: file not found while booting the client my dhcp is on windows server 2003 and tftp server is on fedora 10.
pls help me..
krishna
hello krishana,
You are going to need to provide more details. What do you mean your DHCP is on Windows Server 2003? What specifically are you trying to do? Are you attempting to push a file to the TFTP server? Pull a file from the TFTP server? What you are saying above doesn’t provide near enough information to assist with.
Hi alex,
I had setup tftp server on fedora 10 machine, which needs to pull image from a client, which has its address on dhcp service provided by windows server 2003.
Can you post your TFTP server configuration? Is TFTP serving files from /tftpboot? What was the file permissions and path of the file you are trying to pull? Is the client you are pulling the file from a Linux machine or Windows? Again the more complete you can be the easier this is going to be to help with. Currently you are giving little bits with each post. Post other things like the command you are using in an attempt to connect to the “client” computer. Post any logged error messages. If you port scan the “client” do you see it listening on the proper TFTP port?
Hi alex,
i installed fog(fogproject.org) software on fedora 10 machine and which is a cloning software, and i had setup this fedora 10 machine as tftp server and i am PXE booting the client(windows) to load its image to tftp server. here windows 2003 server is serving the dhcp service to the client and i had configured the tftp server ipaddress and bootfile name(pxelinux.0) on dhcp scope. i am getting an error while booting the client as TFTP ERROR: FILE NOT FOUND
MY /tftpboot directory has pxelinux.0 file with 777 permission.
GREAT. totally forgot about this. THX
on solaris if you want to write to a file you need 2 conditions to be met:
a) file already exists
b) file is world writeable (ie. chmod 777 it)
Hello nik,
Thanks for the info relating to Solaris.
Thanks.
Alex
I am working in state bank network…am trying to load ios wia tftp dndld but am geeting an error
tftp error r could not open requested file
i given ios in root directory ..cross over cable used….given the ips correctly
can any one help me
Hello Naseem,
What does working on a state bank network have to do with anything? Without specific details of what the error is, what specific software you are using, etc. I don’t know that we can provide any useful information. What is the specific command you are using? What is the specific error? Any other specific details you can provide will assist with valuable feedback for your problem.
Thanks.
alex
hi
i use to windows 2003 server in error clint side TFTP 1 notplz help me
thankssss
paras
Hello PARAS,
Unfortunately it is impossible to help when the only information provided is similar to what you have provided above. If you want real help ask a specific question and note in detail what steps you have already taken.
Thanks.
alex
Hello,
I have a problem trying to update firmware of aastra 57i CT ip-phone on PBX in a flash.
Problem is tftp. service is not working on the pbx
Hello Nihm’ah,
Unfortunately TFTP on the PBX is outside the scope of this article. I have never used one of those PBX’s so I don’t even have any thoughts to provide. Good luck finding a solution.
Thanks.
alex
my phone has a fault TFTP FILE NOT FOUND I can do to reset the factory and installing a new file
Hello alan,
Unfortunately you would need to provide a lot more details than that to receive any sort of helpful response. This is also outside the scope of this article.
Thanks.
alex
first sorry for my english it’s bad. I have same error. and i resolve it by modified my tftp config file in xinet.d directory.
this is my config.
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /var/lib/tftpboot
disable = no
}
before i was using /tftpboot directory but it doesn’t work. so i replace it by /var/lib/tftpboot . IT’S WORKS.
don’t forget to changes permission and owner of tftpboot in /var/lib/tftpboot
Hello zelazny,
Your English is not bad at all… Thanks for taking the time to further expand on what we have in the article.
Thanks.
alex
Thanks for the trick. Couldn’t find anywhere else.
I found that the atftpd server i was running was not actually opening the folder i specfied – instead it went to the default config directory
check your default config:
$ cat /etc/default/atftpd
mine was set to /srv/tftp