TFTP: Error code 1: File not found

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.

Share