TFTP: File Not Found
-
-
My guess it’s firewall…
iptables -L -n -v
-
@Sebastian-Roth said:
My guess it’s firewall…
iptables -L -n -v
root@FOG:~# iptables -L -n -v Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination
-
/var/log/syslog show the messages below.
Mar 24 07:52:26 FOG in.tftpd[29283]: tftp: client does not accept options Mar 24 08:03:59 FOG in.tftpd[29827]: tftp: client does not accept options Mar 24 08:09:01 FOG CRON[30159]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean) Mar 24 08:16:10 FOG in.tftpd[30432]: tftp: client does not accept options Mar 24 08:17:01 FOG CRON[30490]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Mar 24 08:39:01 FOG CRON[31690]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean) Mar 24 08:44:49 FOG in.tftpd[31921]: tftp: client does not accept options Mar 24 09:01:08 FOG kernel: [73741.076609] ip_tables: (C) 2000-2006 Netfilter Core Team Mar 24 09:09:01 FOG CRON[911]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean) Mar 24 09:17:01 FOG CRON[1629]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
I also checked the firewall
root@FOG:~# ufw status Status: inactive
-
@Scott-B said:
Mar 24 08:44:49 FOG in.tftpd[31921]: tftp: client does not accept options
You can safely ignore this. It’s just a notice and does not prevent the client from downloading binaries via TFTP! I guess this message in the log came up when you tried tftp from the server console, right?? Please try again from the server and remote and see when you get the message in the logs.
Other than that I am kind of lost with this. Have you double/triple checked the IP addresses? Are you able to ping both ways (client which you test tftp from and FOG server)??
-
@Sebastian-Roth said:
@Scott-B said:
Mar 24 08:44:49 FOG in.tftpd[31921]: tftp: client does not accept options
You can safely ignore this. It’s just a notice and does not prevent the client from downloading binaries via TFTP! I guess this message in the log came up when you tried tftp from the server console, right?? Please try again from the server and remote and see when you get the message in the logs.
Other than that I am kind of lost with this. Have you double/triple checked the IP addresses? Are you able to ping both ways (client which you test tftp from and FOG server)??
I was able to tftp a file from the console, I was trailing the syslog at the time and did not see the message again. I can ping both ways without issue.
-
@Scott-B The idea with troubleshooting when you don’t know what’s going on is just to start trying stuff. A lot of stuff. Write down notes about what you tried and if it worked or not. And while your doing all these ‘things’, your looking for messages and clues anywhere and everywhere.
Try a WOL.
Try an image capture
Try an image deploy
Try a snapin
Try pinging.
Try a packet capture while you try to do an image deploy.
Make sure the patch cable connections are snug on the server.
Try a new patch cable.
Is there a typo in your DHCP option 066 or 067 ???
Install FOG with DHCP, then take it off the network and connect it to just a mini-switch / hub, and then connect a target host to that and try imaging. Does it work? -
@Scott-B Wanna chat? See in the top right corner of this site…
-
Ok, we did a tcpdump session on the FOG server and we see that the TFTP request from the client as well as the first TFTP answer packet leaving the server (but probably never making it to the client). While ping is working!! So the only two things (more or less one really) I can think of is access rules on the switches or firewall rules on the VM host (test client is running on a VWware host)… definitely not a FOG issue.
-
With a lot of help from @Sebastian-Roth we did track down the issue. Someone must have been in our DHCP server and changed the case of the undionly.kpxe to all caps… thus not finding the file. Sometimes is those simple things you just don’t think to look for. Thanks again for your help Sebastian!
-
You are welcome! As well I learned to pay even more attention to what I see in the PCAP file. Would have saved us at least an hour or two… When testing with the command line client Scott didn’t know about the important
-i
option for Windowstftp
command line client as described here. When looking at the PCAP file Scott sent me I didn’t notice that it tried to request the file in ‘netascii’ mode instead of ‘binary’.So everything is working now and it was just the upper case filename option in the DHCP config…