Symptom
RP/0/RP0/CPU0:TOR6#copy tftp: harddisk:/
Wed Feb 8 06:03:37.596 PST
Address or name of remote host [172.22.161.220]?
Source filename [/tftp:]?testlog.txt
Destination filename [/harddisk://testlog.txt]?
Accessing tftp://172.22.161.220/testlog.txt
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] executing open( 172.22.161.220/testlog.txt, 0 ).
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0): allocated client block.
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0): pthread_mutex_init passed.
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0) Opening URL 172.22.161.220/testlog.txt
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0): server is 172.22.161.220:0
RP/0/RP0/CPU0:Feb 8 06:03:46.550 PST: tftp_fs[360]: [t11101] tftp_start: 0x7f8f24000cc0 local_vrf=default, res=Success
RP/0/RP0/CPU0:Feb 8 06:03:46.552 PST: tftp_fs[360]: TFTP: source interface is NULL
RP/0/RP0/CPU0:Feb 8 06:03:46.552 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0): Sending read request for testlog.txt to 172.22.161.220
RP/0/RP0/CPU0:Feb 8 06:04:36.584 PST: tftp_fs[360]: [t11101] TFTP (0x7f8f24000cc0): tftp client time out
Error: Copy failed with error 'Connection timed out'
This timeout was happening when we try to copy the same file which was already present on the TFTP Server. After this any subsequent file copies(even valid files) to the server was failing.
Conditions
configure tftp server and trigger a tftp copy of file from client to server. Condition to hit:
1) copy a file1 from client to server
2) copy file1 again from client to server -- TFTP server errors saying the file already exists.
3) copy file1 again from client to server -- The copy gets stuck and timesout .
After this any copy of valid file from client to server fails as no data is read from UDP queue.