iPXE discussion forum

Full Version: Failing to download via http 1 out of 5 times.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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"?
(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”."?
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.
(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?
Which HTTP server are you using?
(2015-12-15 20:38)danberk Wrote: [ -> ]Which HTTP server are you using?

Apache on Centos 7
Reference URL's