Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failing to download via http 1 out of 5 times.
2015-12-01, 10:33
Post: #1
Failing to download via http 1 out of 5 times.
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.
Find all posts by this user
Quote this message in a reply
2015-12-01, 16:10
Post: #2
RE: Failing to download via http 1 out of 5 times.
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"?
Find all posts by this user
Quote this message in a reply
2015-12-02, 09:41
Post: #3
RE: Failing to download via http 1 out of 5 times.
(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”."?
Find all posts by this user
Quote this message in a reply
2015-12-11, 21:42
Post: #4
RE: Failing to download via http 1 out of 5 times.
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.
Find all posts by this user
Quote this message in a reply
2015-12-13, 07:53
Post: #5
RE: Failing to download via http 1 out of 5 times.
(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?
Find all posts by this user
Quote this message in a reply
2015-12-15, 20:38
Post: #6
RE: Failing to download via http 1 out of 5 times.
Which HTTP server are you using?
Find all posts by this user
Quote this message in a reply
2015-12-22, 13:40
Post: #7
RE: Failing to download via http 1 out of 5 times.
(2015-12-15 20:38)danberk Wrote:  Which HTTP server are you using?

Apache on Centos 7
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)