Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

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