Failing to download via http 1 out of 5 times. - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Failing to download via http 1 out of 5 times. (/showthread.php?tid=7878) |
Failing to download via http 1 out of 5 times. - silver310 - 2015-12-01 10:33 Hi, I've set up an iPXE server, all file downloads are done via http. The problem is that every 1 out of 5 times it'll fail to download the file, it'll show me an error "couldn't retrieve file" and reboot, if i try to boot it again it'll download the same file successfully (trying after 30 sec). I don't know if this is an iPXE issue or a problem with my server. I am running the latest version of iPXE on a Centos 7 server. How can I file out where this problem is coming from? Also, is it possible to return to the main menu after that kind of error? In my menu.ipxe file i have :some_entry kernel some_kernel initrd some_initrd.img boot || goto failed :failed echo Booting failed, returning to main-menu sleep 5 goto start where start is my main-menu, but this doesn't work, it just reboots. RE: Failing to download via http 1 out of 5 times. - SebastianRoth - 2015-12-01 16:10 Do you see the HTTP requests in your apache access log or possibly errors in apache error log when you see "couldn't retrieve file"? RE: Failing to download via http 1 out of 5 times. - silver310 - 2015-12-02 09:41 (2015-12-01 16:10)SebastianRoth Wrote: Do you see the HTTP requests in your apache access log or possibly errors in apache error log when you see "couldn't retrieve file"? When the download completes succesfully i see it in the logs, but when i get that error i don't see anything in the error log. following the error code i got to this page http://ipxe.org/err/420c60 what does "content type" mean in "If you have a custom webserver giving out files, then as of August 17, 2015 builds of iPXE, you need to give out the content type of “text/plain”."? RE: Failing to download via http 1 out of 5 times. - danberk - 2015-12-11 21:42 Hi! I put that in, I had a custom Apache Tomcat server serving files, and I was getting a error if I didnt set the content type manually. RE: Failing to download via http 1 out of 5 times. - silver310 - 2015-12-13 07:53 (2015-12-11 21:42)danberk Wrote: Hi! I put that in, I had a custom Apache Tomcat server serving files, and I was getting a error if I didnt set the content type manually. Where do i configure this? RE: Failing to download via http 1 out of 5 times. - danberk - 2015-12-15 20:38 Which HTTP server are you using? RE: Failing to download via http 1 out of 5 times. - silver310 - 2015-12-22 13:40 (2015-12-15 20:38)danberk Wrote: Which HTTP server are you using? Apache on Centos 7 |