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.

Recently my site (an https connection, running on an Amazon EC2 ubuntu apache2.2) has this issue where I need to load the page several times (3-4) before it will load normally without issue. It will then load normally as long as I keep loading pages regularly (every couple seconds). It will stall again if I don't load pages for a few minutes.

It has nothing to do with my application because I don't have this problem with the exact same app codebase on my Apache installation on my laptop.

The only things to my knowledge that I've changed is that I recently installed mod_spdy and then a few weeks later I installed mod_pagespeed, https://developers.google.com/speed/pagespeed/mod. However, I have since turned mod_pagespeed off by setting its pagespeed.conf to mod_pagespeed off. Unfortunately, that didn't solve the problem.

The line below is how every of last 10 lines of my error.log look:

# tail -f /var/log/apache2/error.log
...
[32728:32729:ERROR:mod_spdy.cc(162)] request->chunked == 1 in request GET / HTTP/1.1
[Sat Jun 02 04:50:08 2012] [warn] [client 50.136.93.153] [stream 5]   
[32728:32729:WARNING:http_to_spdy_filter.cc(113)] HttpToSpdyFilter is not the last filter 
in the chain: chunk

any thoughts? thank you, tim

share|improve this question
    
Perhaps an obvious comment but, what do those error.logs tell you? Open them up in your editor and check, or tail -f nameoffile and hit reload on the page and see what appears. –  igrigorik Jun 2 '12 at 4:59
    
@igrigorik the error message above is the one I get when I unsuccessfully refresh the page so mod_spdy appears to be my problem. I'm just not sure what to do about that. Suggestions? –  tim peterson Jun 2 '12 at 5:06
    
Oh. So that has nothing to do with mod_pagespeed.. instead, it looks like its your mod_spdy module. Check these links: code.google.com/p/mod-spdy/issues/detail?id=39, developers.google.com/speed/spdy/mod_spdy/php –  igrigorik Jun 2 '12 at 6:50
    
@igrigorik thanks for the links. It looks like to get mod_spdy to work i have to "disable mod_php as part of making the switch to mod_fcgid". That sounds scary. I'm worried about unforseen issues that will come with the mod_php->mod_fcgid switch. Do you know of any? Yes, my website is running PHP. –  tim peterson Jun 2 '12 at 14:43
    
No, sorry don't have any hands on experience with either of those. –  igrigorik Jun 3 '12 at 16:25
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.