Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just been dealing with a problem whereby http requests are being aborted, seemingly at random.

On any particular page in the website, when you opened a page, a number of the assets (img, css, etc) failed to load. If you refreshed, the page may work fine, the same set of assets may fail to load or different assets may fail to load.

The net tab in firefox was returning 'Aborted' in the HTTP status code column for the failed assets, even tho in the case of images, the image previews were still working.

There was nothing in any of the apache logs about the requests that failed, however since it seemed to point to an apache issue, we restarted apache. The first time we tried, it made no difference but about 10 minutes later, in the absence of a better solution we tried again. Bizarrely, the problem disappeared immeadiately.

So now the site seems to be running fine again but its rather unsettling, both the intermittent nature of the problem and the lack of an explanation for its resolution.

Has anyone seen anything like this before and if so did you find out the reason behind it?

Many Thanks

share|improve this question

closed as off-topic by kce, mdpc, Ladadadada, cole, EEAA Dec 16 '13 at 0:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – kce, mdpc, cole, EEAA
If this question can be reworded to fit the rules in the help center, please edit the question.

Can you provide some relevant log entries. i.e. find an example of an aborted request, and paste the access_log and the error_log related to that point, also look for the similar log entry in the /var/log/messages file. You might do well to install either firebug or use chrome and use the developer tools so you can provide a client view of the aborted request. – Tom H May 24 '12 at 13:43
Really in these general cases where there is little to go on, you would be best to provide the mother-lode of information including distribution, kernel, hosting platform, VM settings, httpd modules, iptables etc. – Tom H May 24 '12 at 13:47
Aborted is also the status when a plugin like adblock blocks something. If it ever happens again, make sure to disable all the plugins in the browser and see if you can reproduce it. – kormoc Jan 29 '13 at 0:28
Are your files served directly by Apache or through some application, for example Wordpress? – Mxx Mar 3 '13 at 9:34

Do you have any load balancers, or servers that may have the same dns entry? It sounds like the browser hits a different server every once in a while.

share|improve this answer
There's no load balancing going on but the idea that it is requesting from the wrong server occassionally is worth investigating as the site has been moved to a different server recently. The only thing is I can't see how this would account for the problem disappearing when we restarted apache. I will investigate. Thanks for the suggestion – Adam Phillips Feb 18 '11 at 20:45

Do you have any mod/application/hardware that limits the number of concurrent connections per user? In my case I was using mod_limitipconn with too low of a number for concurrent client connections which would cause random assets to fail loading on pages, especially pages with a lot of images.

share|improve this answer
Not that I know of but I will investigate that as well. Thanks for the suggestion – Adam Phillips Feb 18 '11 at 20:47

We've had this issue when we were using a self-signed cert and let a load balancer handle the SSL. When accessing the site in non-SSL the random Aborted requests would go away.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.