# Imaging - Debug

<div id="bkmrk-1.-r%C3%A9cup%C3%A9ration-du-b">1. Boot Recovery</div><div id="bkmrk-passer-le-tftp-en-ve">  
Set tftp to verbose mode:  
In /etc/default/tftpd-hpa, add -v to the TFTP_OPTIONS parameter and restart the tftpd-hpa service  
In the tftp logs (/var/log/syslog or journalctl --unit tftpd-hpa --follow), look for these lines:</div>```
in.tftpd[491332]: RRQ from 10.104.108.113 filename bootloader-uefi64/ipxe.efi
in.tftpd[491333]: RRQ from 10.104.108.113 filename bootloader-uefi64/autoexec.ipxe
```

<div id="bkmrk-si-ces-lignes-n%27exis">If these lines do not exist, it is a DHCP issue  
  
To debug TFTP, capture the frames:</div>```
tcpdump -s 0 host <CLIENT_IP> and udp
```

<div id="bkmrk-pour-tester-une-conn">To test a TFTP connection: </div>```
tftp <SERVER_IP> get bootloader-uefi64/ipxe.efi
```

<div id="bkmrk-2.-r%C3%A9cup%C3%A9ration-du-m">  
2. Retrieving the boot menu  
In the Apache logs, locate this line:</div>```
"GET /mmc/imaging/bootmenu.php?mac=54:bf:64:5c:77:25&uuid=4c4c4544-0057-3210-8053-c4c04f4b5132&srv=10.104.1.20 HTTP/1.1" 200 3717 "-" "iPXE/1.21.1+ (gdd35
)"
```

<div id="bkmrk-si-elle-n%27existe-pas">If it does not exist, there is an access issue with the Apache server  
  
3. Davos Recovery  
In the Apache logs, look for these lines:</div>```
"GET /downloads/davos/ipxe.png HTTP/1.1" 404 489 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/vmlinuz HTTP/1.1" 200 15403668 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/initrd.img HTTP/1.1" 200 64921280 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/fs.squashfs HTTP/1.1" 200 1041178859 "-" "Wget"
```

<div id="bkmrk-si-elles-n%27existent-">If they do not exist, this is an access issue with the Apache server  
  
  
Once these steps have been verified, refer to "Debugging Davos"</div><div id="bkmrk-"></div><div id="bkmrk-lors-de-l%27arriv%C3%A9-sur">If you cannot find the save option when you reach the PXE menu, check the following lines in the tftpd-hpa logs:</div><div id="bkmrk-dans-les-logs-de-tft">In the tftp logs (/var/log/syslog or journalctl --unit tftpd-hpa --follow), look for these lines:</div>```
in.tftpd[357001]: tftp: client does not accept options
```

If this line appears, restart your tftpd-hpa service

```
systemctl restart tftpd-hpa
```

If the problem persists, check for a phantom tftpd-hpa service and restart your server. Then restart the tftpd-hpa service again.