logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: [SOLVED] Download are blocked at 124Mb - Server APACHE only
Author
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Tue 27 Nov '12 15:43    Post subject: [SOLVED] Download are blocked at 124Mb - Server APACHE only Reply with quote

Solution -> reverting back to apache v.2.2.22.
The issue doesn't occur with this version.


Original problem :
---

Hello everyone.

I came here in hope to find out a solution about my disturbing and troubling issue :
for whatever reasons, all downloads from my Apache Server are blocked at 124Mb exactly (never less, never more, regardless the time)
in the case where the user has a normal speed (5Mbps - 400/500Kb/s).


I own the server (german hoster). It's not a virtual machine.
It runs my own MS Windows Server 2008 R2 64 bits license.
It has :
- 32Gb of RAM,
- 1Gbps (no limit if I use less than 250Mb/s 24H/7),
- 6TB HDD,
- INTEL core i7 3770

Yes, it's that awesome '^^


Anyway.
I use WAMP (wampserver) 2.2 64bits with last version of apache (win32, from here : 2.4.3). PHP & MySQL are never used, but present.

My server is only running with :
- .htaccess
- .htpasswd
- header.html


That's it, that's all !

Basically, I use the .htaccess to protect my server and to do user authentification (with .htpasswd).
Sor far, so good.
The header.html is only use to put some nice CSS and a few details (title, etc...).
So it's rather simple, nothing complicate.


So why the problem ?
As I said, it only occures when normal bandwith.
At home, I have Optic Fiber access (FTTLA) that delivers a nice and steady 100Mbps speed, so, when everything is fine, I can download at 10Mb/s (sometimes less, sometimes more).
In that precise case, my download don't get block. Even if my speed goes a bit down (7Mb/s), it works. I didn't try to find at what speed it will stops ...

The files avalaible to download are very huge (from 500Mb to 20Gb).


Some facts and leads I could not confirm :
- at home, with my optic fiber access, if I switch to Wi-Fi, (my modem delivers a crappy 10-12Mbps), all downloads fail at 124Mb... all !
But this happens with ethernet as well for my users ! Regardless the ISP !
- when installing previous version of apache (2.2.22) the problem didn't occur, but I lost the authentification system and the server couldn't load my icons.
Too much of a bother to check where it's wrong, apache 2.2.22 being a bit old ...
And the issue occures either with 2.4.2 or 2.4.3
- it seems the authentification from the .htaccess may cause a timeout. But it wouldn't make sense as the download blocks ALWAYS at 124Mb, regardless the speed and the amount of time spent.
- if I stop the download at 123Mb (right before where it would stop) and then resume it just after, it will go beyond 124Mb but ... it will stops once it has download 124Mb again ... as it would only download that much and nothing else.
- access.log and apache_error.log show nothing wrond. No error, no failure.
On the server end, the method GET looks to work fine, and on the user end, the internet browser says download is over so you can't resume from it ...


Any idea at all ?


Many thanks in advance !


Last edited by Mackovich on Wed 28 Nov '12 14:35; edited 2 times in total
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Tue 27 Nov '12 16:00    Post subject: Reply with quote

You can try disable memory mapping --> EnableMMAP Off.

Also worth to try to disable -->SendFileSupport .

And set --> AcceptFilter http none
Back to top
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Tue 27 Nov '12 18:17    Post subject: Reply with quote

Thank you for your answer.

I will try your ideas.

However, where can I set AcceptFilter ?

EDIT:

I have just tried with the two first options.
They are set in the global scope (not in a <directory> scope) as they were given in the original file after installation.
By the way, both of them were not set as they were commented with a "#". Does it not mean the same as setting them to off ?

Also, I have yet to try the third one, but I do not know how.

Perhaps do you need me to provide you with my httpd.conf and .htaccess files ?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Tue 27 Nov '12 19:38    Post subject: Reply with quote

Add global:

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off
Back to top
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Tue 27 Nov '12 23:30    Post subject: Reply with quote

I am sorry to say that it didn't work.

I added the followings and restarted all services (apache included)

AcceptFilter http none
AcceptFilter https none


It still doesn't work.

This is getting weirder and weirder.

Would you need my httpd.conf ?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Tue 27 Nov '12 23:49    Post subject: Reply with quote

You wrote:

At home, I have Optic Fiber access (FTTLA) that delivers a nice and steady 100Mbps speed, so, when everything is fine, I can download at 10Mb/s (sometimes less, sometimes more).
In that precise case, my download don't get block. Even if my speed goes a bit down (7Mb/s), it works.


It looks not an Apache issue, but possible. Hard to tell what causes it, network maybe. There must be somewhere a limit.

Steffen
Back to top
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Wed 28 Nov '12 0:07    Post subject: Reply with quote

That's the problem !

Just to clarify and point out what is certain and matters :
- it happens as soon as you download at less or equal to 1Mb/s (I'll try faster to find the treshold)
- it always stops at the same size : 124Mb
- no matter how long it needs to reach that size ;
- when you pause and resume, it will download the same size once again, as if the counter went back to 0
- the ISP doesn't matter ;
- either Wi-Fi or Ethernet, it doesn't matter.

Some IT Teacher from my school said it could be because of the MTU from my hoster.
I asked them via the support and they say they don't have anything with the MTU that would cause this. To prove it, they gave a download links that works the same way as apache (so it should be apache) and the problem never occured in all cases with that link !

And do not forget that this problem didn't occur when I switched back to Apache v.2.2.22 !
The only noticeable difference is that I didn't know how to change the httpd.conf so that it can use the authentification process I use with Apache v.2.4.x !

Could it be it ?
Back to top
abney317



Joined: 27 Nov 2012
Posts: 5

PostPosted: Wed 28 Nov '12 0:38    Post subject: Reply with quote

I had this exact same issue today. Downloads stopped when they hit 124mb.

I just changed the httpd.conf to have this line and that seems to have fixed the issue.

EnableSendfile On


Edit: Nevermind...
I just had another download stop at 124mb
So I still don't have a fix for this =/[/b]
Back to top
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Wed 28 Nov '12 9:16    Post subject: Reply with quote

Ah, so you too ?

"Glad" I am not alone out there.


What apache version do you have ?
If you have the last one (2.4.x), try 2.2.22 if it isn't too much to ask.
As I previously said, it worked with this version ! The download didn't block as usual. But since it's an older version of Apache, it doesn't work the same way as the recents versions ... since I lost the authentification process and the icons won't load (lol)


EDIT:
I tried with JDownloader v2 and it's ... funny !

In a nutshell, it downloaded the usual 124Mb then stopped, saying "Temporary inaccessible" and waited about 5mn (maybe the 5mn is part of JD's configuration).
Once the timer reached 0, it simply resumed the download where it stopped ! O_o
So it can work as a temporary solution while I look for a better one.

What this proves, once again, is that the download looks to be in blocks of 124Mb.
But what it is weirder is that with a fast access (like mine), this doesn't happen at all ...
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Wed 28 Nov '12 11:42    Post subject: Reply with quote

Be sure you have:

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off


Any virus scanner running ? Maybe you can try to run Apache without any other third party software installed.
Back to top
Mackovich



Joined: 27 Nov 2012
Posts: 6
Location: Paris

PostPosted: Wed 28 Nov '12 12:25    Post subject: Reply with quote

Yes, I am sure I put them ... and no virus scanner on the server.

The only software I use is WampServer 2.2E.

EDIT:

Anyeway, I managed to revert back to Apache v.2.2.22 and I also managed to keep all the features I wanted so I am fine for now.

I hope the bug won't appear again.


Many thanks for the help so far.
Back to top
abney317



Joined: 27 Nov 2012
Posts: 5

PostPosted: Thu 29 Nov '12 2:21    Post subject: Reply with quote

Yeah I was running Apache 2.2 before and it was all fine. I suppose I could compare the httpd.conf files and maybe find a difference.

I wouldn't exactly call this problem "solved" though... I'd like to know if this is a bug or there is a setting that just needs to be changed.
Back to top


Reply to topic   Topic: [SOLVED] Download are blocked at 124Mb - Server APACHE only View previous topic :: View next topic
Post new topic   Forum Index -> Apache